summaryrefslogtreecommitdiffstats
path: root/src/logicalfile
diff options
context:
space:
mode:
authorJan Synacek <jsynacek@redhat.com>2013-09-12 12:13:46 +0200
committerJan Synacek <jsynacek@redhat.com>2013-09-12 12:13:46 +0200
commitcfa3ea986239abdc4f4923bd7a415f6c342c0d66 (patch)
treeb1eb6fb3881638241d6cf16903d5dd8f2018a966 /src/logicalfile
parent8dbd4f1f39c66309806642532635de2a764fa738 (diff)
downloadopenlmi-providers-cfa3ea986239abdc4f4923bd7a415f6c342c0d66.tar.gz
openlmi-providers-cfa3ea986239abdc4f4923bd7a415f6c342c0d66.tar.xz
openlmi-providers-cfa3ea986239abdc4f4923bd7a415f6c342c0d66.zip
logicalfile: warn if udev context creation fails
Diffstat (limited to 'src/logicalfile')
-rw-r--r--src/logicalfile/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/logicalfile/file.c b/src/logicalfile/file.c
index e6968de..ca0d9f4 100644
--- a/src/logicalfile/file.c
+++ b/src/logicalfile/file.c
@@ -165,6 +165,7 @@ int get_fsname_from_stat(const struct stat *sb, char **fname)
if (!udev_ctx) {
udev_ctx = udev_new();
if (!udev_ctx) {
+ lmi_warn("Could not create udev context");
rc = -1;
goto err;
}