[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] FreeMiNT & MiNTlib patchset - add new support



On Wed, 2008-08-20 at 12:39 +0200, Frank Naumann wrote:
> Hello!
> 
> > Actually, now I remembered why I didn't do it this way.
> >
> > We add additional xfs_getxattr() call on every read/write/lseek/etc to
> > obtain the attributes to determine whether it's a directory or not,
> > which I'm not sure how much slowdown that can cause for normal
> > operations.
> >
> > By letting it hit the filesystem, that data is already known.
> 
> That's a good point. But I think, getxattr is an optimized routine inside 
> the xfs anyway.
> 
> Beside from that we can introduce a new flag to remember that the 
> FILEPTR is associated to a directory (f->flags). Or, if flags is not so 
> good, we can introduce a new struct member at the end of the FILEPTR (this 
> don't have side effects to the xfs).

I'll do some more work around this. For the other xfs_* calls such as
lseek,datime,ioctl etc, most of them are already dealt with as they
check for read-only status anyway. But I'll go through the others to
double check and write some test programs.

Alan.