mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Display a 'dev_size' of zero for missing devices in reports.
This commit is contained in:
parent
e83d1a26e6
commit
6f98b140a8
@ -1,13 +1,14 @@
|
||||
Version 2.02.44 -
|
||||
====================================
|
||||
Display a 'dev_size' of zero for missing devices in reports.
|
||||
Add pv_mda_size to pvs and vg_mda_size to vgs.
|
||||
Fix lvmdump /sys listing to include virtual devices directory.
|
||||
Add "--refresh" functionality to vgchange and vgmknodes.
|
||||
Check for maximal LV size when wiping device.
|
||||
Calculate mirror log size instead of using 1 extent.
|
||||
Check if requested major/minor pair is already used.
|
||||
Fix incorrect return value in help function.
|
||||
Fix vgrename using UUID in case there are VGs with the same name.
|
||||
Fix incorrect exit status from 'help <command>'.
|
||||
Fix vgrename using UUID if there are VGs with identical names.
|
||||
Fix segfault when invalid field given in reporting commands.
|
||||
Refactor init_lvm() for lvmcmdline and clvmd.
|
||||
Add liblvm interactive test infrastructure to build.
|
||||
|
@ -268,6 +268,9 @@ static int _dev_get_size_dev(const struct device *dev, uint64_t *size)
|
||||
|
||||
int dev_get_size(const struct device *dev, uint64_t *size)
|
||||
{
|
||||
if (!dev)
|
||||
return 0;
|
||||
|
||||
if ((dev->flags & DEV_REGULAR))
|
||||
return _dev_get_size_file(dev, size);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user