mount command not honoring rootflags passed

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

 



Using btrfs as the root filesystem on my Ubuntu 9.10 powered laptop I discoverd that mount is not showing the actual passed rootflags= but shows what is put in the /etc/fstab.

First of all, I'm not sure if that is an intended behavior and if not, if it's a problem of mount or btrfs.

Example: 
Following Goffredo's example there's a subvolume called rootfs which is - surprisingly ;) - the root of the linux. The corresponding line in fstab is

$ cat /etc/fstab
[...]
# / was on /dev/sda3 during installation
UUID=<some-scary-UUID>   /   btrfs   subvol=rootfs   0   1

$ mount
[...]
/dev/sda3 on / type btrfs (rw,subvol=rootfs)

I create a snapshot of the rootfs called rootfs-snap-001 and create it in the / of the btrfs volume itself. Not modifying grub2, I just edit grub on the go. While booting I edit the /linux-kernel... entry and replace rootflags=subvol=rootfs with rootflags=subvol=rootfs-snap-001. That boots up just fine but the mount output still is

$ mount
[...]
/dev/sda3 on / type btrfs (rw,subvol=rootfs)

... and /etc/mtab is indeed

$ cat /etc/mtab
[...]
/dev/sda3 / btrfs rw,subvol=rootfs 0 0

shouldn't mount and /etc/mtab reflect the parameters in use?


Cheers,
Thomas--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux