I'm running openSUSE Tumbleweed, and finding a strange behaviour when mounting btrfs subvolumes. I have two subvolumes on a btrfs filesystem: @media
and @migration
. I have my /etc/fstab
set up like this:
UUID=<UUID> /mnt/media btrfs subvol=/@media,noatime,noexec,nodev,nosuid 0 0
UUID=<UUID> /mnt/migration btrfs subvol=/@migration,noatime,noexec,nodev,nosuid 0 0
However, when I run mount -a
, I get the following:
/dev/sdb1 on /mnt/media type btrfs (rw,nosuid,nodev,noexec,noatime,space_cache=v2,subvolid=278,subvol=/@media)
/dev/sdb1 on /mnt/migration type btrfs (rw,relatime,space_cache=v2,subvolid=279,subvol=/@migration)
As you can see, the mount options nosuid,nodev,noexec,noatime
only appear to be applied to the first subvolume mounted. The second one has only relatime
.
When I try to remount the second subvolume, it appears properly:
:~> sudo mount -o remount,noatime /dev/sdb1 /mnt/migration
:~> mount | tail -n 2
/dev/sdb1 on /mnt/media type btrfs (rw,nosuid,nodev,noexec,noatime,space_cache=v2,subvolid=278,subvol=/@media)
/dev/sdb1 on /mnt/migration type btrfs (rw,noatime,space_cache=v2,subvolid=279,subvol=/@migration)
So my questions are:
- Do mount options on subsequent subvolumes matter? (i.e. is this just a visual bug?)
- Is there any way I can verify whether the mount options have actually taken effect?