[blivet:rhel7/master 00/10] Changes to the handling of filesystem labeling (v3)

mulhern amulhern at redhat.com
Thu Jan 9 18:54:55 UTC 2014


The first four patches listed below haven't changed, so I'm not sending them.

The most important thing is that I had to make the DeviceFormat.label setter
much
less restrictive than I had previously thought and compensate for that by
adding a few methods to the DeviceFormat interface that anaconda can make use
of when setting labels in the GUI.

This patch needs to go in before the associated anaconda patch, since it
provides some methods that patch uses.

mulhern (10):
  Add some simple tests for file formats.
  Changes to the handling of filesystem labeling (#1038590)
  Remove fsConfigFromFile (#1038590)
  More tests to check writing and reading labels (#1038590)
  Restore ability to write an empty label where possible (#1038590)
  Indicate whether the filesystem can label (#1038590)
  Add a labelFormatOK method to the DeviceFormat's interface (#1038590)
  Default to None to mean none, rather than empty string (#1038590)
  Add a test for labeling swap devices (#1038590)
  Move label setter and getter into DeviceFormat class (#1038590)

 blivet/devicelibs/swap.py       |   2 +-
 blivet/formats/__init__.py      |  57 +++++++++
 blivet/formats/fs.py            | 154 ++++++++++++-----------
 blivet/formats/fslabel.py       | 264 ++++++++++++++++++++++++++++++++++++++++
 blivet/formats/swap.py          |  13 ++
 tests/formats_test/__init__.py  |   0
 tests/formats_test/misc_test.py | 183 ++++++++++++++++++++++++++++
 7 files changed, 594 insertions(+), 79 deletions(-)
 create mode 100644 blivet/formats/fslabel.py
 create mode 100644 tests/formats_test/__init__.py
 create mode 100755 tests/formats_test/misc_test.py

-- 
1.8.3.1



More information about the anaconda-patches mailing list