* Mount doesn't show subvol option for btrfs @ 2015-06-14 20:50 james harvey 2015-06-15 11:28 ` Karel Zak 0 siblings, 1 reply; 4+ messages in thread From: james harvey @ 2015-06-14 20:50 UTC (permalink / raw) To: util-linux 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. This happens on all of my btrfs mounts, not just .snapshots. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Mount doesn't show subvol option for btrfs 2015-06-14 20:50 Mount doesn't show subvol option for btrfs james harvey @ 2015-06-15 11:28 ` Karel Zak 2015-06-16 5:42 ` Tom Yan 0 siblings, 1 reply; 4+ messages in thread From: Karel Zak @ 2015-06-15 11:28 UTC (permalink / raw) To: james harvey; +Cc: util-linux 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@redhat.com> http://karelzak.blogspot.com ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Mount doesn't show subvol option for btrfs 2015-06-15 11:28 ` Karel Zak @ 2015-06-16 5:42 ` Tom Yan 2015-06-16 8:59 ` Karel Zak 0 siblings, 1 reply; 4+ messages in thread From: Tom Yan @ 2015-06-16 5:42 UTC (permalink / raw) To: Karel Zak; +Cc: james harvey, util-linux [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@redhat.com> 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@redhat.com> > http://karelzak.blogspot.com > -- > To unsubscribe from this list: send the line "unsubscribe util-linux" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Mount doesn't show subvol option for btrfs 2015-06-16 5:42 ` Tom Yan @ 2015-06-16 8:59 ` Karel Zak 0 siblings, 0 replies; 4+ messages in thread From: Karel Zak @ 2015-06-16 8:59 UTC (permalink / raw) To: Tom Yan; +Cc: james harvey, util-linux On Tue, Jun 16, 2015 at 01:42:54PM +0800, Tom Yan wrote: > [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. Ah, good point. Yes, the subvolume directory is interpreted as FS mount root, I forgot this btrfs feature. Karel -- Karel Zak <kzak@redhat.com> http://karelzak.blogspot.com ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-16 8:59 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-06-14 20:50 Mount doesn't show subvol option for btrfs james harvey 2015-06-15 11:28 ` Karel Zak 2015-06-16 5:42 ` Tom Yan 2015-06-16 8:59 ` Karel Zak
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox