1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-22 06:50:52 +03:00

debug: remove stacktrace on regular path

Here _insert is expected to also fail, so just regular 'return 0'.
This commit is contained in:
Zdenek Kabelac 2020-09-26 14:52:27 +02:00
parent e8df503885
commit 03bddd7d41

View File

@ -1193,13 +1193,13 @@ static int _insert(const char *path, const struct stat *info,
}
if (rec && !_insert_dir(path))
return_0;
return 0;
} else { /* add a device */
if (!S_ISBLK(info->st_mode))
return 1;
if (!_insert_dev(path, info->st_rdev))
return_0;
return 0;
}
return 1;