linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Is it safe to mount subvolumes of already-mounted volumes (even with different options)?
@ 2014-07-16 22:18 Sebastian Ochmann
  2014-07-16 23:18 ` Chris Murphy
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Sebastian Ochmann @ 2014-07-16 22:18 UTC (permalink / raw)
  To: linux-btrfs

Hello,

I'm sharing a btrfs-formatted drive between multiple computers and each 
of the machines has a separate home directory on that drive. The root of 
the drive is mounted at /mnt/tray and the home directory for machine 
{hostname} is under /mnt/tray/Homes/{hostname}. Up until now, I have 
mounted /mnt/tray like a normal volume and then did an additional 
bind-mount of /mnt/tray/Homes/{hostname} to /home.

Now I have a new drive and wanted to do things a bit more advanced by 
creating subvolumes for each of the machines' home directories so that I 
can also do independent snapshotting. I guess I could use the bind-mount 
method like before but my question is if it is considered safe to do an 
additional, "regular" mount of one of the subvolumes to /home instead, like

mount /dev/sdxN /mnt/tray
mount -o subvol=/Homes/{hostname} /dev/sdxN /home

When I experimented with such additional mounts of subvolumes of 
already-mounted volumes, I noticed that the mount options of the 
additional subvolume mount might differ from the "original" mount. For 
instance, the root volume might be mounted with "noatime" while the 
subvolume mount may have "relatime".

So my questions are: Is mounting a subvolume of an already mounted 
volume considered safe and are there any combinations of possibly 
conflicting mount options one should be aware of (compression, 
autodefrag, cache clearing)? Is it advisable to use the same mount 
options for all mounts pointing to the same physical device?

Best regards,
Sebastian

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

end of thread, other threads:[~2014-07-17 15:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-16 22:18 Is it safe to mount subvolumes of already-mounted volumes (even with different options)? Sebastian Ochmann
2014-07-16 23:18 ` Chris Murphy
2014-07-17  7:58   ` Sebastian Ochmann
2014-07-17  8:48     ` Qu Wenruo
2014-07-17  3:27 ` Zhe Zhang
2014-07-17  8:41 ` Hugo Mills
2014-07-17 15:45   ` Duncan

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).