Messages in this thread | | | Subject | Re: MS_NOUSER and rootfs | From | Thayne Harbaugh <> | Date | Fri, 07 Jan 2005 13:53:32 -0700 |
| |
On Fri, 2005-01-07 at 19:32 +0200, Denis Vlasenko wrote: > On Thursday 06 January 2005 17:08, Thayne Harbaugh wrote: > > What is the purpose of the MS_NOUSER flag serve and why is it set on > > rootfs? > > Was grep helpful?
No, it wasn't. There are (realling from memory) about six places that MS_NOUSER appears in the entire tree.
One is in fs.h file where it is defined.
One is in in ramfs/inode.c (?) where MS_NOUSER is set on rootfs for rootfs_get_sb()
One is in namespace.c in the graft_tree() function that prevents MS_BIND
Thrice in shmem.c - I have to admit I haven't read this very closely
One in libfs.c where there's a template for file systems that aren't supposed to be mountable
One in Documentation/filesystems/porting where it describes that it can be used in place of FS_NOMOUNT
There isn't a description as to what the intention is for MS_NOUSER and why it should be applied to rootfs. I'm looking for some education as to what it does so I can work out the details as to why it's used in graft_tree(), rootfs_get_sb() and shmem.c.
It appears that Al Viro wrote some of that and I'm hoping that he can find some time to reply (I'm sure he gets millions of emails about little details and it's hard to cut through them). Maybe there's someone else that understands that can give me an education or point me in the right direction.
Thanks for your response.
-- Thayne Harbaugh Linux Networx [unhandled content-type:application/pgp-signature] | |