mirror of
git://sourceware.org/git/lvm2.git
synced 2025-04-01 18:50:41 +03:00
libdm: do not show holders missing error
On older system this may not be present, so skip this error message.
This commit is contained in:
parent
efd1dc6bd3
commit
3ac7f927e1
@ -1,5 +1,6 @@
|
||||
Version 1.02.83
|
||||
==================================
|
||||
Skip error message when holders are not present in sysfs.
|
||||
Use __linux__ instead of linux define to make libdevmapper.h C compliant.
|
||||
|
||||
Version 1.02.82 - 4th October 2013
|
||||
|
@ -1795,7 +1795,8 @@ int dm_device_has_holders(uint32_t major, uint32_t minor)
|
||||
}
|
||||
|
||||
if (stat(sysfs_path, &st)) {
|
||||
log_sys_error("stat", sysfs_path);
|
||||
if (errno != ENOENT)
|
||||
log_sys_error("stat", sysfs_path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user