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

Urban Widmark (urban@teststation.com)
Sun, 18 Nov 2001 14:17:44 +0100 (CET)


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/