diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-10-14 18:16:49 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-10-14 23:34:11 +0200 |
commit | 8784211958ee0ea663171e186bd5217b1c7b52c7 (patch) | |
tree | 408cef73ec4672c0a8f10e5daba1e66bafc5075d /tools/pvscan.c | |
parent | ae92888a7baf3f1882168a6084eca23c9b85b998 (diff) | |
download | lvm2-8784211958ee0ea663171e186bd5217b1c7b52c7.tar.gz |
debug: reduce some debugging noise
Resolve event_activation configure option just once.
Do not print debug_devs about 'bad' filtering, when
actually filter already printed reason for skipping
Do not trace more then once about backup being disabled.
No debug when unlinked file does not exists in pvscan.
Diffstat (limited to 'tools/pvscan.c')
-rw-r--r-- | tools/pvscan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/pvscan.c b/tools/pvscan.c index 75a08d325..6ea7a77e5 100644 --- a/tools/pvscan.c +++ b/tools/pvscan.c @@ -271,7 +271,7 @@ static void _lookup_file_remove(char *vgname) log_debug("Unlink pvs_lookup: %s", path); - if (unlink(path)) + if (unlink(path) && (errno != ENOENT)) log_sys_debug("unlink", path); } @@ -292,7 +292,7 @@ void online_vg_file_remove(const char *vgname) log_debug("Unlink vg online: %s", path); - if (unlink(path)) + if (unlink(path) && (errno != ENOENT)) log_sys_debug("unlink", path); } @@ -332,7 +332,7 @@ static void _online_pvid_file_remove_devno(int major, int minor) if ((file_major == major) && (file_minor == minor)) { log_debug("Unlink pv online %s", path); - if (unlink(path)) + if (unlink(path) && (errno != ENOENT)) log_sys_debug("unlink", path); if (file_vgname[0]) { @@ -360,7 +360,7 @@ static void _online_files_remove(const char *dirpath) memset(path, 0, sizeof(path)); snprintf(path, sizeof(path), "%s/%s", dirpath, de->d_name); - if (unlink(path)) + if (unlink(path) && (errno != ENOENT)) log_sys_debug("unlink", path); } if (closedir(dir)) |