1
0
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:
Alasdair Kergon 2005-03-21 14:43:02 +00:00
parent 779b7713cf
commit 0aa8e5be94
2 changed files with 2 additions and 1 deletions

View File

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

View File

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