[rhinstaller/blivet/pulls/33 f21-branch] Allow passing fractional MiB values to vgcreate -s option

vpodzime installerbot-noreply at redhat.com
Thu Mar 5 09:45:10 UTC 2015


>From ``man vgcreate`` (on my F21 machine):
```
   -s, --physicalextentsize PhysicalExtentSize[bBsSkKmMgGtTpPeE]
          Sets  the  physical extent size on physical volumes of this volume group. 
          A size suffix (k for kilobytes up to t for terabytes) is optional, megabytes
          is the default if no suffix is present. For LVM2 format, the value must be
          a power of 2 of at least 1 sector (where the sector size  is  the  largest 
          sector size  of the PVs currently used in the VG) or, if not a power of 2,
          at least 128KiB.  For the older LVM1 format, it must be a power of 2 of
          at least 8KiB. The default is 4 MiB.
```

So it's even more complicated. I guess the "multiple of 512 bytes" requirement is caused by drives usually having 512 B sectors these days. However, generally the 'b' suffix works as bytes (e.g. in libblockdev). However, using KiBs and "k" seems a little bit safer.
-- 
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/33


More information about the anaconda-patches mailing list