Re: Proposal: int (permission*)(struct dentry *, int)

From: Roman V. Shaposhnick (vugluskr@unicorn.math.spbu.ru)
Date: Tue May 16 2000 - 12:06:55 EST


On Tue, May 16, 2000 at 09:16:21AM -0700, G. Allen Morris III wrote:
> >>>"Roman V. Shaposhnick" said:
> >
> [...]
> >
> > From my point of view, the main problem of the knfsd is that it tries
> > to do the filesystem's job instead of querying it by something like:
> > dentry_to_fhandle
> > fhandle_to_dentry
>
> There are 3 different issues with this that I know of

  First of all, I would like to say that answers to your questions depend
on a filesystem type. And actually, that's why it is up to each filesystem
to "answer" on them via dentry_to_fhandle/fhandle_to_dentry specification.

  AFAIK a lot of "good" filesystems ( e.g. ext2, iso and some others )
are capable of providing dentry_to_fhandle/fhandle_to_dentry interface
the way, that:
 
> 1) Is there a unique way to describe a `file' with some `n' bit number.

  yes
 
> 2) Does fhandle alway point to the same `file' even after a reboot.

  yes.

> 3) a) Does fhandle point to the same `file' after that `file' is renamed.
> b) Is this true even after a reboot.

  depends on fs. but I guess yes.

Thanks,
Roman.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:11 EST