linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bind mounts on btrfs cause mountinfo confusion
@ 2017-07-17 21:47 Chris Murphy
  2017-07-18  7:24 ` Duncan
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Murphy @ 2017-07-17 21:47 UTC (permalink / raw)
  To: Btrfs BTRFS

libOSTree makes use of bind mounts during startup to support multiple
fs trees on any file system for the purpose of atomic updates and
rollback.

Example during boot:

Jul 17 15:18:42 frawhide.localdomain systemd[779]: var.mount:
Executing: /usr/bin/mount
/sysroot/ostree/deploy/fedora-workstation/var /var -o bind

cat /proc/self/mounts

/dev/sda6 /var btrfs
rw,relatime,ssd,space_cache,subvolid=5,subvol=/ostree/deploy/fedora-workstation/var
0 0

findmnt shows basically the same

─/var
/dev/sda6[/ostree/deploy/fedora-workstation/var]
│                                                btrfs
rw,relatime,ssd,space_cache,subvolid=5,subvol=/ostree/deploy/fedora-workstation


There is no such subvolume /ostree/deploy/fedora-workstation/var,
basically it seems like whatever is producing this mount information
(kernel code?) is just assuming a bind mount on Btrfs is a subvolume
without checking if that subvolume really exists, and if it's just an
ordinary directory being bind mounted, which is what's going on here.

I'd say it's confusing. But I don't know if it's a problem otherwise.




-- 
Chris Murphy

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-07-18 18:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-17 21:47 bind mounts on btrfs cause mountinfo confusion Chris Murphy
2017-07-18  7:24 ` Duncan
2017-07-18 18:57   ` Andrei Borzenkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).