Re: Remount root RO after the root dentry drops from the namespace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 18 Nov 2009, Karel Zak wrote:
>  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.

I think that's a bug.  I can see the reasoning behind it, but it's
wrong.  mount(8) should not guess whether the user wants to change the
per superblock flags or the per mount flags based on *how* the mount
was created.

Look:

  mount /dev/hda1 /mnt1; mount /dev/hda1 /mnt2

is completely equivalent to

  mount /dev/hda1 /mnt1; mount --bind /mnt1 /mnt2

Why should "mount -oremount" treat one differently than the other?

It would be much cleaner to have a mount option, say
--change-mnt-flags, that is equivalent to "--bind -oremount".

Thanks,
Miklos
--
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

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux