mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvm2api: fix size reporting
API is reporting all sizes as 64bit integers in bytes. Fix at those places, where sectors were returned to remain consistent.
This commit is contained in:
parent
83978cdec8
commit
9ec474f38a
@ -1,8 +1,9 @@
|
|||||||
Version 2.02.99 -
|
Version 2.02.99 -
|
||||||
===================================
|
===================================
|
||||||
|
Fix lvm2app to return all property sizes in bytes.
|
||||||
Recognize DM_DISABLE_UDEV environment variable for a complete fallback.
|
Recognize DM_DISABLE_UDEV environment variable for a complete fallback.
|
||||||
Do not verify udev operations if --noudevsync command option is used.
|
Do not verify udev operations if --noudevsync command option is used.
|
||||||
Fix lvm2api and return lvseg discards property as string.
|
Fix lvm2app and return lvseg discards property as string.
|
||||||
Allow forced vgcfgrestore of lvm2 metadata with thin volumes.
|
Allow forced vgcfgrestore of lvm2 metadata with thin volumes.
|
||||||
Recognise STEC skd devices in filter.
|
Recognise STEC skd devices in filter.
|
||||||
Recognise Violin Memory vtms devices in filter.
|
Recognise Violin Memory vtms devices in filter.
|
||||||
|
@ -183,7 +183,7 @@ GET_LV_NUM_PROPERTY_FN(seg_count, dm_list_size(&lv->segments))
|
|||||||
#define _seg_count_set _not_implemented_set
|
#define _seg_count_set _not_implemented_set
|
||||||
GET_LV_STR_PROPERTY_FN(origin, lv_origin_dup(lv->vg->vgmem, lv))
|
GET_LV_STR_PROPERTY_FN(origin, lv_origin_dup(lv->vg->vgmem, lv))
|
||||||
#define _origin_set _not_implemented_set
|
#define _origin_set _not_implemented_set
|
||||||
GET_LV_NUM_PROPERTY_FN(origin_size, lv_origin_size(lv))
|
GET_LV_NUM_PROPERTY_FN(origin_size, (SECTOR_SIZE * lv_origin_size(lv)))
|
||||||
#define _origin_size_set _not_implemented_set
|
#define _origin_size_set _not_implemented_set
|
||||||
GET_LV_NUM_PROPERTY_FN(snap_percent, _snap_percent(lv))
|
GET_LV_NUM_PROPERTY_FN(snap_percent, _snap_percent(lv))
|
||||||
#define _snap_percent_set _not_implemented_set
|
#define _snap_percent_set _not_implemented_set
|
||||||
@ -233,7 +233,7 @@ GET_VG_NUM_PROPERTY_FN(vg_free, (SECTOR_SIZE * vg_free(vg)))
|
|||||||
#define _vg_free_set _not_implemented_set
|
#define _vg_free_set _not_implemented_set
|
||||||
GET_VG_STR_PROPERTY_FN(vg_sysid, vg_system_id_dup(vg))
|
GET_VG_STR_PROPERTY_FN(vg_sysid, vg_system_id_dup(vg))
|
||||||
#define _vg_sysid_set _not_implemented_set
|
#define _vg_sysid_set _not_implemented_set
|
||||||
GET_VG_NUM_PROPERTY_FN(vg_extent_size, vg->extent_size)
|
GET_VG_NUM_PROPERTY_FN(vg_extent_size, (SECTOR_SIZE * vg->extent_size))
|
||||||
#define _vg_extent_size_set _not_implemented_set
|
#define _vg_extent_size_set _not_implemented_set
|
||||||
GET_VG_NUM_PROPERTY_FN(vg_extent_count, vg->extent_count)
|
GET_VG_NUM_PROPERTY_FN(vg_extent_count, vg->extent_count)
|
||||||
#define _vg_extent_count_set _not_implemented_set
|
#define _vg_extent_count_set _not_implemented_set
|
||||||
@ -269,17 +269,17 @@ GET_LVSEG_STR_PROPERTY_FN(segtype, lvseg_segtype_dup(lvseg->lv->vg->vgmem, lvseg
|
|||||||
#define _segtype_set _not_implemented_set
|
#define _segtype_set _not_implemented_set
|
||||||
GET_LVSEG_NUM_PROPERTY_FN(stripes, lvseg->area_count)
|
GET_LVSEG_NUM_PROPERTY_FN(stripes, lvseg->area_count)
|
||||||
#define _stripes_set _not_implemented_set
|
#define _stripes_set _not_implemented_set
|
||||||
GET_LVSEG_NUM_PROPERTY_FN(stripesize, lvseg->stripe_size)
|
GET_LVSEG_NUM_PROPERTY_FN(stripesize, (SECTOR_SIZE * lvseg->stripe_size))
|
||||||
#define _stripesize_set _not_implemented_set
|
#define _stripesize_set _not_implemented_set
|
||||||
GET_LVSEG_NUM_PROPERTY_FN(stripe_size, lvseg->stripe_size)
|
GET_LVSEG_NUM_PROPERTY_FN(stripe_size, (SECTOR_SIZE * lvseg->stripe_size))
|
||||||
#define _stripe_size_set _not_implemented_set
|
#define _stripe_size_set _not_implemented_set
|
||||||
GET_LVSEG_NUM_PROPERTY_FN(regionsize, lvseg->region_size)
|
GET_LVSEG_NUM_PROPERTY_FN(regionsize, (SECTOR_SIZE * lvseg->region_size))
|
||||||
#define _regionsize_set _not_implemented_set
|
#define _regionsize_set _not_implemented_set
|
||||||
GET_LVSEG_NUM_PROPERTY_FN(region_size, lvseg->region_size)
|
GET_LVSEG_NUM_PROPERTY_FN(region_size, (SECTOR_SIZE * lvseg->region_size))
|
||||||
#define _region_size_set _not_implemented_set
|
#define _region_size_set _not_implemented_set
|
||||||
GET_LVSEG_NUM_PROPERTY_FN(chunksize, lvseg_chunksize(lvseg))
|
GET_LVSEG_NUM_PROPERTY_FN(chunksize, (SECTOR_SIZE * lvseg_chunksize(lvseg)))
|
||||||
#define _chunksize_set _not_implemented_set
|
#define _chunksize_set _not_implemented_set
|
||||||
GET_LVSEG_NUM_PROPERTY_FN(chunk_size, lvseg_chunksize(lvseg))
|
GET_LVSEG_NUM_PROPERTY_FN(chunk_size, (SECTOR_SIZE * lvseg_chunksize(lvseg)))
|
||||||
#define _chunk_size_set _not_implemented_set
|
#define _chunk_size_set _not_implemented_set
|
||||||
GET_LVSEG_NUM_PROPERTY_FN(thin_count, dm_list_size(&lvseg->lv->segs_using_this_lv))
|
GET_LVSEG_NUM_PROPERTY_FN(thin_count, dm_list_size(&lvseg->lv->segs_using_this_lv))
|
||||||
#define _thin_count_set _not_implemented_set
|
#define _thin_count_set _not_implemented_set
|
||||||
@ -289,7 +289,7 @@ GET_LVSEG_NUM_PROPERTY_FN(transaction_id, lvseg->transaction_id)
|
|||||||
#define _transaction_id_set _not_implemented_set
|
#define _transaction_id_set _not_implemented_set
|
||||||
GET_LVSEG_STR_PROPERTY_FN(discards, lvseg_discards_dup(lvseg->lv->vg->vgmem, lvseg))
|
GET_LVSEG_STR_PROPERTY_FN(discards, lvseg_discards_dup(lvseg->lv->vg->vgmem, lvseg))
|
||||||
#define _discards_set _not_implemented_set
|
#define _discards_set _not_implemented_set
|
||||||
GET_LVSEG_NUM_PROPERTY_FN(seg_start, lvseg_start(lvseg))
|
GET_LVSEG_NUM_PROPERTY_FN(seg_start, (SECTOR_SIZE * lvseg_start(lvseg)))
|
||||||
#define _seg_start_set _not_implemented_set
|
#define _seg_start_set _not_implemented_set
|
||||||
GET_LVSEG_NUM_PROPERTY_FN(seg_start_pe, lvseg->le)
|
GET_LVSEG_NUM_PROPERTY_FN(seg_start_pe, lvseg->le)
|
||||||
#define _seg_start_pe_set _not_implemented_set
|
#define _seg_start_pe_set _not_implemented_set
|
||||||
@ -307,7 +307,7 @@ GET_LVSEG_STR_PROPERTY_FN(devices, lvseg_devices(lvseg->lv->vg->vgmem, lvseg))
|
|||||||
/* PVSEG */
|
/* PVSEG */
|
||||||
GET_PVSEG_NUM_PROPERTY_FN(pvseg_start, pvseg->pe)
|
GET_PVSEG_NUM_PROPERTY_FN(pvseg_start, pvseg->pe)
|
||||||
#define _pvseg_start_set _not_implemented_set
|
#define _pvseg_start_set _not_implemented_set
|
||||||
GET_PVSEG_NUM_PROPERTY_FN(pvseg_size, pvseg->len)
|
GET_PVSEG_NUM_PROPERTY_FN(pvseg_size, (SECTOR_SIZE * pvseg->len))
|
||||||
#define _pvseg_size_set _not_implemented_set
|
#define _pvseg_size_set _not_implemented_set
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user