1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

post-release

This commit is contained in:
Alasdair Kergon 2010-02-16 00:27:01 +00:00
parent 29b8138482
commit def0511361
7 changed files with 18 additions and 11 deletions

View File

@ -1 +1 @@
2.02.61(1)-cvs (2010-02-15)
2.02.62(1)-cvs (2010-02-15)

View File

@ -1 +1 @@
1.02.44-cvs (2010-02-15)
1.02.45-cvs (2010-02-15)

View File

@ -1,3 +1,6 @@
Version 2.02.62 -
====================================
Version 2.02.61 - 15th February 2010
====================================
Fix some consts and floating point gcc warnings.

View File

@ -1,3 +1,6 @@
Version 1.02.45 -
====================================
Version 1.02.44 - 15th February 2010
====================================
Add DM_UDEV_DISABLE_LIBRARY_FALLBACK udev flag to rely on udev only.

View File

@ -26,7 +26,7 @@
/* FIXME: have lib/report/report.c _disp function call lv_size()? */
uint64_t lvm_lv_get_size(const lv_t lv)
{
return SECTOR_SIZE*lv_size(lv);
return SECTOR_SIZE * lv_size(lv);
}
char *lvm_lv_get_uuid(const lv_t lv)
@ -112,7 +112,8 @@ lv_t lvm_vg_create_lv_linear(vg_t vg, const char *name, uint64_t size)
if (!vg_check_write_mode(vg))
return NULL;
memset(&lp, 0, sizeof(lp));
extents = extents_from_size(vg->cmd, size/SECTOR_SIZE, vg->extent_size);
extents = extents_from_size(vg->cmd, size / SECTOR_SIZE,
vg->extent_size);
_lv_set_default_params(&lp, vg, name, extents);
_lv_set_default_linear_params(vg->cmd, &lp);
if (!lv_create_single(vg, &lp))

View File

@ -45,17 +45,17 @@ uint64_t lvm_pv_get_mda_count(const pv_t pv)
uint64_t lvm_pv_get_dev_size(const pv_t pv)
{
return (uint64_t) SECTOR_SIZE*pv_dev_size(pv);
return (uint64_t) SECTOR_SIZE * pv_dev_size(pv);
}
uint64_t lvm_pv_get_size(const pv_t pv)
{
return (uint64_t) SECTOR_SIZE*pv_size_field(pv);
return (uint64_t) SECTOR_SIZE * pv_size_field(pv);
}
uint64_t lvm_pv_get_free(const pv_t pv)
{
return (uint64_t) SECTOR_SIZE*pv_free(pv);
return (uint64_t) SECTOR_SIZE * pv_free(pv);
}
int lvm_pv_resize(const pv_t pv, uint64_t new_size)

View File

@ -86,7 +86,7 @@ int lvm_vg_set_extent_size(vg_t vg, uint32_t new_size)
if (!vg_check_write_mode(vg))
return -1;
if (!vg_set_extent_size(vg, new_size/SECTOR_SIZE))
if (!vg_set_extent_size(vg, new_size / SECTOR_SIZE))
return -1;
return 0;
}
@ -256,17 +256,17 @@ uint64_t lvm_vg_is_partial(const vg_t vg)
/* FIXME: invalid handle? return INTMAX? */
uint64_t lvm_vg_get_size(const vg_t vg)
{
return SECTOR_SIZE*vg_size(vg);
return SECTOR_SIZE * vg_size(vg);
}
uint64_t lvm_vg_get_free_size(const vg_t vg)
{
return SECTOR_SIZE*vg_free(vg);
return SECTOR_SIZE * vg_free(vg);
}
uint64_t lvm_vg_get_extent_size(const vg_t vg)
{
return SECTOR_SIZE*vg_extent_size(vg);
return SECTOR_SIZE * vg_extent_size(vg);
}
uint64_t lvm_vg_get_extent_count(const vg_t vg)