mirror of
git://sourceware.org/git/lvm2.git
synced 2025-10-28 15:33:16 +03:00
Add pv_dev_name() to access PV device name.
Patch by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
This commit is contained in:
@@ -1183,7 +1183,7 @@ static int _mda_setup(const struct format_type *fmt,
|
||||
|
||||
if (pe_end > disk_size) {
|
||||
log_error("Physical extents end beyond end of device %s!",
|
||||
dev_name(pv->dev));
|
||||
pv_dev_name(pv));
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1204,7 +1204,7 @@ static int _mda_setup(const struct format_type *fmt,
|
||||
/* Ensure it's not going to be bigger than the disk! */
|
||||
if (start1 + mda_size1 > disk_size) {
|
||||
log_warn("WARNING: metadata area fills disk leaving no "
|
||||
"space for data on %s.", dev_name(pv->dev));
|
||||
"space for data on %s.", pv_dev_name(pv));
|
||||
/* Leave some free space for rounding */
|
||||
/* Avoid empty data area as could cause tools problems */
|
||||
mda_size1 = disk_size - start1 - alignment * 2;
|
||||
@@ -1647,7 +1647,7 @@ static int _text_pv_setup(const struct format_type *fmt,
|
||||
vg->extent_size;
|
||||
if (pe_count > UINT32_MAX) {
|
||||
log_error("PV %s too large for extent size %s.",
|
||||
dev_name(pv->dev),
|
||||
pv_dev_name(pv),
|
||||
display_size(vg->cmd, (uint64_t) vg->extent_size));
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user