FW: [lvm-devel] [PATCH 1/3] use display_size function instead of hardcoding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Forwarded message from Daniel Mierswa <impulze@impulze.org> -----

We should use display_size everywhere for consistency reasons. Other
commands and places that print the stripe/PE size already do that.
This might break scripts that rely on the stripe/PE size being printed
in KByte in those circumstances.

----- End forwarded message -----

Specifically this changes the following:

  1) The 'PE Size' line of 'pvdisplay -v'.

  2) The 'Stripe size' line of a striped segment in 'lvdisplay --maps'.

With this patch, these lines will now be controlled by --units and --nosuffix
etc.

If you have scripts that parse this output, now would be a good time to
switch to the column-based output by adding --columns or using 'pvs -o
vg_extent_size' or 'lvs -o stripesize'.

-    Stripe size		64 KB
+    Stripe size		64.00 KB
 
-  PE Size (KByte)       4096
+  PE Size               4.00 MB
 
Alasdair

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux