mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Avoid rmdir opendir error messsages when dir was already removed.
This commit is contained in:
parent
779b7713cf
commit
0aa8e5be94
@ -1,5 +1,6 @@
|
|||||||
Version 2.01.08 -
|
Version 2.01.08 -
|
||||||
================================
|
================================
|
||||||
|
Avoid rmdir opendir error messsages when dir was already removed.
|
||||||
Tighten signal handlers.
|
Tighten signal handlers.
|
||||||
Avoid some compiler warnings.
|
Avoid some compiler warnings.
|
||||||
Additional rename failure error message.
|
Additional rename failure error message.
|
||||||
|
@ -65,7 +65,7 @@ static int _rm_dir(const char *dev_dir, const char *vg_name)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_empty_dir(vg_path)) {
|
if (dir_exists(vg_path) && is_empty_dir(vg_path)) {
|
||||||
log_very_verbose("Removing directory %s", vg_path);
|
log_very_verbose("Removing directory %s", vg_path);
|
||||||
rmdir(vg_path);
|
rmdir(vg_path);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user