Re: /sbin/mount and /proc/mounts difference

From: Urban Widmark (urban@teststation.com)
Date: Sun Nov 18 2001 - 08:17:44 EST


On Sun, 18 Nov 2001, Sven Vermeulen wrote:

> As you can see the notail-option of reiserfs isn't listed on /proc/mounts,
> but it is on "mount".
>
> Does this have any particular reason?

mount writes everything to /etc/mtab and displays that when asked.

The kernel doesn't ask the individual filesystem "drivers" if they have
some options they would like to list there. So for /proc it simply lists
the options the VFS knows about. Except for NFS that for some reson has
code there.

I don't know if there are any plans to change that. Wouldn't be difficult
to add something to super_operations.

fs/namespace.c:
        show_vfsmnt
        show_nfs_mount

If it is important to you, you could add a "show_reiserfs_mount" by
copying how things are done for nfs.

/Urban

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



This archive was generated by hypermail 2b29 : Fri Nov 23 2001 - 21:00:17 EST