On Wed, Nov 18, 2009 at 01:58:31PM +0100, Miklos Szeredi wrote: > On Wed, 18 Nov 2009, Daniel Drake wrote: > > > > if (flags & MS_BIND) > > err = change_mount_flags(path->mnt, flags); > > else > > err = do_remount_sb(sb, flags, data, 0); > > > > Note: the "flags" tested here are supplied from the argument of > mount(2), and are not flags stored in the mount. And btw, MS_BIND is > not stored in the mount at all, there's absolutely no difference > between a mount created with "--bind" and one without. The "flags" argument of mount(2) always contains MS_BIND for bind mounts (if you use standard mount(8) command and /etc/mtab) for -o remount. Karel -- Karel Zak <kzak@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html