https://bugzilla.novell.com/show_bug.cgi?id=764703
https://bugzilla.novell.com/show_bug.cgi?id=764703#c1
Thomas Fehr changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fehr@suse.com
--- Comment #1 from Thomas Fehr 2012-05-30 11:48:36 UTC ---
As said we use "@" as default subvolume name and have subvolumes for
the following directories:
"tmp", "opt", "srv", "var/crash", "var/spool", "var/log", "var/tmp"
So a "btrfs subvol list" of a root fs looks the following:
inst-sys:~ # btrfs subvol list /mnt/
ID 256 top level 5 path @
ID 259 top level 5 path @/tmp
ID 260 top level 5 path @/opt
ID 261 top level 5 path @/srv
ID 262 top level 5 path @/var/crash
ID 263 top level 5 path @/var/spool
ID 264 top level 5 path @/var/log
ID 265 top level 5 path @/var/run
ID 266 top level 5 path @/var/tmp
inst-sys:~ #
To create that we execute the following commands:
/sbin/mkfs.btrfs '/dev/sdc2'
/sbin/modprobe btrfs
/bin/mount -t btrfs -o subvolid=0 '/dev/sdc2' '/tmp/x'
/sbin/btrfs subvolume create /tmp/x/@
/sbin/btrfs subvolume list /tmp/x to determine subvol id of '@' (here 256)
/sbin/btrfs subvolume set-default 256 /tmp/x
/sbin/btrfs subvolume create /tmp/x/@/tmp
/sbin/btrfs subvolume create /tmp/x/@/opt
/sbin/btrfs subvolume create /tmp/x/@/srv
/sbin/btrfs subvolume create /tmp/x/@/var/crash
/sbin/btrfs subvolume create /tmp/x/@/var/spool
/sbin/btrfs subvolume create /tmp/x/@/var/log
/sbin/btrfs subvolume create /tmp/x/@/var/run
/sbin/btrfs subvolume create /tmp/x/@/var/tmp
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.