mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-04 21:47:46 +03:00
Cleanup comment and some whitespace.
This commit is contained in:
parent
4257485ff2
commit
3bb0dc03af
@ -67,7 +67,7 @@ unsigned long set_pe_align(struct physical_volume *pv, unsigned long data_alignm
|
|||||||
|
|
||||||
if (data_alignment)
|
if (data_alignment)
|
||||||
pv->pe_align = data_alignment;
|
pv->pe_align = data_alignment;
|
||||||
else
|
else
|
||||||
pv->pe_align = MAX(65536UL, lvm_getpagesize()) >> SECTOR_SHIFT;
|
pv->pe_align = MAX(65536UL, lvm_getpagesize()) >> SECTOR_SHIFT;
|
||||||
|
|
||||||
if (!pv->dev)
|
if (!pv->dev)
|
||||||
@ -1292,18 +1292,19 @@ void fill_default_pvcreate_params(struct pvcreate_params *pp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* pvcreate_single() - initialize a device with PV label and metadata
|
* pvcreate_single() - initialize a device with PV label and metadata area
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* - pv_name: device path to initialize
|
* - pv_name: device path to initialize
|
||||||
* - handle: options to pass to pv_create; NULL indicates use defaults
|
* - pp: parameters to pass to pv_create; if NULL, use default values
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* NULL: error
|
* NULL: error
|
||||||
* struct physical_volume * (non-NULL): handle to physical volume created
|
* struct physical_volume * (non-NULL): handle to physical volume created
|
||||||
*/
|
*/
|
||||||
struct physical_volume * pvcreate_single(struct cmd_context *cmd, const char *pv_name,
|
struct physical_volume * pvcreate_single(struct cmd_context *cmd,
|
||||||
struct pvcreate_params *pp)
|
const char *pv_name,
|
||||||
|
struct pvcreate_params *pp)
|
||||||
{
|
{
|
||||||
void *pv;
|
void *pv;
|
||||||
struct device *dev;
|
struct device *dev;
|
||||||
|
@ -1021,7 +1021,7 @@ static int _create_pv_entry(struct dm_pool *mem, struct pv_list *pvl,
|
|||||||
new_pvl = pvl2;
|
new_pvl = pvl2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!new_pvl) {
|
if (!new_pvl) {
|
||||||
if (!(new_pvl = dm_pool_alloc(mem, sizeof(*new_pvl)))) {
|
if (!(new_pvl = dm_pool_alloc(mem, sizeof(*new_pvl)))) {
|
||||||
log_error("Unable to allocate physical volume list.");
|
log_error("Unable to allocate physical volume list.");
|
||||||
@ -1239,12 +1239,12 @@ int vg_refresh_visible(struct cmd_context *cmd, struct volume_group *vg)
|
|||||||
{
|
{
|
||||||
struct lv_list *lvl;
|
struct lv_list *lvl;
|
||||||
int r = 1;
|
int r = 1;
|
||||||
|
|
||||||
dm_list_iterate_items(lvl, &vg->lvs)
|
dm_list_iterate_items(lvl, &vg->lvs)
|
||||||
if (lv_is_visible(lvl->lv))
|
if (lv_is_visible(lvl->lv))
|
||||||
if (!lv_refresh(cmd, lvl->lv))
|
if (!lv_refresh(cmd, lvl->lv))
|
||||||
r = 0;
|
r = 0;
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user