Free and total bytes are now properly returned as bytes by LVM2 as
requested. No longer multiply values.
Fix parameter order of 'create' command in usage output while at it.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
}
freebytes() {
- echo $((vg_free_count * vg_extent_size * 1024))
+ echo $((vg_free_count * vg_extent_size))
}
totalbytes() {
- echo $((vg_extent_count * vg_extent_size * 1024))
+ echo $((vg_extent_count * vg_extent_size))
}
existvol() {
total show total number of bytes
align show sector size in bytes
list [volname] list volumes
- create volname type size create new volume
- type: 'ro' or 'rw'
+ create volname size type create new volume
size: in bytes
+ type: 'ro' or 'rw'
remove volname delete volume
device volname show block device for mounting
size volname show size of volume