Re: Mount doesn't show subvol option for btrfs

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

 



[tom@localhost ~]$ mount | grep sda2
/dev/sda2 on / type btrfs (rw,relatime,ssd,space_cache)

[tom@localhost ~]$ cat /proc/self/mountinfo | grep sda2
19 0 0:17 /arch / rw,relatime shared:1 - btrfs /dev/sda2 rw,ssd,space_cache

[tom@localhost ~]$ findmnt /dev/sda2
TARGET SOURCE           FSTYPE OPTIONS
/      /dev/sda2[/arch] btrfs  rw,relatime,ssd,space_cache

It won't be shown as a mount option.

On 15 June 2015 at 19:28, Karel Zak <kzak@xxxxxxxxxx> wrote:
> On Sun, Jun 14, 2015 at 04:50:09PM -0400, james harvey wrote:
>> Not sure if this could be a linux-unionfs (btrfs) bug instead...
>>
>> On arch, /etc/fstab includes:
>>
>> /dev/sda1   /.snapshots   btrfs
>> rw,noatime,compress=lzo,ssd,discard,space_cache,subvol=.snapshots   0
>>  0
>>
>> But mount includes:
>>
>> /dev/sda1 on /.snapshots type btrfs
>> (rw,noatime,compress=lzo,ssd,discard,space_cache)
>>
>> The subvol option isn't reported in mount.
>
>
>  mount(8) uses /proc/self/mountinfo as source, do you see the subvol=
>  mount option there?
>
>  (well, I guess you have system without mtab and recent util-linux.)
>
>     Karel
>
> --
>  Karel Zak  <kzak@xxxxxxxxxx>
>  http://karelzak.blogspot.com
> --
> To unsubscribe from this list: send the line "unsubscribe util-linux" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux