Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* mounting arbitrary directories
@ 2010-11-28  3:19 C Anthony Risinger
  2010-11-28  4:22 ` [RFC-PATCH] " Calvin Walton
  0 siblings, 1 reply; 6+ messages in thread
From: C Anthony Risinger @ 2010-11-28  3:19 UTC (permalink / raw)
  To: linux-btrfs

i have read just recently and in the past that btrfs supports COW for
_any_ file/directory (this is reflinks, yes?), and today i
accidentally noticed that i can mount a directory as well (if it's in
the top level volume at least).

eg. if i have a "regular" directory (not a subvolume) in the top-level:

/__boot

i can mount it with:

mount -o subvol=__boot /dev/sda /mnt

is this supposed to be supported via the "subvol" mount option?
though it sounds like i've answered my own question, i ask because
playing around with this caused my kernel to oops for the first time
in a long, long time (on .35 but just about to upgrade to .36 in about
10 min).

i am working on an update to my initramfs hook that will utilize
extlinux, and this property to provide seamless kernel level system
rollbacks, and i want to make sure it's safe to do this.

also, is there a way to target an arbitrary directory?  does "subvol"
support paths yet, or maybe via "subvolid" somehow?  essentially i
just want to mount a directory inside a snapshot at /boot, so when
users upgrade there kernels, the images are visible to extlinux (which
cannot yet peek inside or use subvolumes, so it has to be a regular
directory in the top-level volume)

any insight is much appreciated.

C Anthony

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

end of thread, other threads:[~2010-12-03  9:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-28  3:19 mounting arbitrary directories C Anthony Risinger
2010-11-28  4:22 ` [RFC-PATCH] " Calvin Walton
2010-11-28  9:41   ` C Anthony Risinger
2010-11-28 10:07   ` C Anthony Risinger
2010-11-29 17:42     ` C Anthony Risinger
2010-12-03  9:41       ` C Anthony Risinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox