1
0
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:
Zdenek Kabelac 2013-10-17 11:12:02 +02:00
parent efd1dc6bd3
commit 3ac7f927e1
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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;
}