mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: do not issue 'Failed to create directory' message for failure in dm_create_dir
There are detailed messages inside _create_dir_recursive that dm_create_dir calls (except EROFS which where the message is not generated, like anywhere else in the code).
This commit is contained in:
parent
686acce23f
commit
eac0706761
@ -97,10 +97,8 @@ int dm_create_dir(const char *dir)
|
||||
if (stat(dir, &info) == 0 && S_ISDIR(info.st_mode))
|
||||
return 1;
|
||||
|
||||
if (!_create_dir_recursive(dir)) {
|
||||
log_error("Failed to create directory %s.", dir);
|
||||
return 0;
|
||||
}
|
||||
if (!_create_dir_recursive(dir))
|
||||
return_0;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user