From: Vratislav Podzimek vpodzime@redhat.com
Striped LVs are essentially RAID0 LVs as far as all the calculations go. --- blivet/devicelibs/lvm.py | 2 +- blivet/devicelibs/raid.py | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/blivet/devicelibs/lvm.py b/blivet/devicelibs/lvm.py index e3e144a..f878291 100644 --- a/blivet/devicelibs/lvm.py +++ b/blivet/devicelibs/lvm.py @@ -49,7 +49,7 @@ LVM_THINP_MIN_CHUNK_SIZE = Size("64 KiB") LVM_THINP_MAX_CHUNK_SIZE = Size("1 GiB")
-raid_levels = raid.RAIDLevels(["raid0", "raid1", "linear"]) +raid_levels = raid.RAIDLevels(["linear", "striped", "raid1", "raid4", "raid5", "raid6", "raid10"])
ThPoolProfile = namedtuple("ThPoolProfile", ["name", "desc"]) KNOWN_THPOOL_PROFILES = (ThPoolProfile("thin-generic", N_("Generic")), diff --git a/blivet/devicelibs/raid.py b/blivet/devicelibs/raid.py index 54ebce6..f2853fa 100644 --- a/blivet/devicelibs/raid.py +++ b/blivet/devicelibs/raid.py @@ -422,8 +422,16 @@ def _pad(self, size, chunk_size): def _get_recommended_stride(self, member_count): return member_count * 16
+ +class Striped(RAID0): + """ subclass with canonical lvm name """ + name = 'striped' + names = [name] + RAID0 = RAID0() ALL_LEVELS.add_raid_level(RAID0) +Striped = Striped() +ALL_LEVELS.add_raid_level(Striped)
class RAID1(RAIDn): @@ -668,7 +676,7 @@ class Single(ErsatzRAID):
class Dup(RAIDLevel):
- """ A RAID level which expresses one way btrfs metadata may be distributed. + """ A RAID level which expresses one way btrfs metadata may be distriuted.
For this RAID level, duplication occurs within a single block device. """
anaconda-patches@lists.fedorahosted.org