[PATCH 0/2] Additional BTRFS subvolume functionality

Gene Czarcinski gene at czarc.net
Mon Oct 14 13:32:57 UTC 2013


These two patches add functionality to improve the usability of
kickstart on Fedora and associated systems.

The first of these patches enables a subvolume to be specified which
will be added to /etc/fstab but otherwise not touched and certainly
not reformated although "reformatting" is not really meaningful
with BTRFS.  The parameter "--noformat" is expected on the btrfs
command to invoke this functionality.  The UUID of the subvolumes
parent (volume) is used to specify the device.

Currently, the pykickstart package treats --noformat and --useexisting
in a manner such the if either one is specified, both are set.  This needs
to change so that different meanings can be assigned for eack of these.  Nad
the leads to the second patch described below.

The second patch implements destruction and (re)creation of a BTRFS 
subvolume
(the BTRFS equivalent of reformatting).  As currently implemented it is a
slight hack which will only work for a BTRFS subvolume specifying the 
"/" mountpoint.
Once pykickstart is changed/updated, this hack can be removed and the 
functionaly
wull be available for any subvolume.

The intent is to mirror what is done for Logical Volumes where 
--noformat means to just
mount it and --useexisting means to reformat it.

This code was developed and tested (with update images) with both 
anaconda-19.30.13-1 and
anaconda-20-22-1.  The two submitted patches are for the latter.  if 
there is interest,
I can provide the Fedora 19 version (or even an update image).

Gene Czarcinski (2):
   support specifying existing BTRFS subvolumes with noformat
   add support for recreating a btrfs subvolume

  pyanaconda/kickstart.py | 21 ++++++++++++++++++++-
  1 file changed, 20 insertions(+), 1 deletion(-)

-- 
1.8.3.1



More information about the anaconda-patches mailing list