1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-16 23:33:16 +03:00

Suppress 'open failed' error messages during scanning.

This commit is contained in:
Alasdair Kergon
2005-03-03 21:54:35 +00:00
parent f3b0ea286a
commit aa70fe8b71
3 changed files with 6 additions and 2 deletions

View File

@@ -341,7 +341,10 @@ int dev_open_flags(struct device *dev, int flags, int direct, int quiet)
#endif
if ((dev->fd = open(name, flags, 0777)) < 0) {
log_sys_error("open", name);
if (quiet)
log_sys_debug("open", name);
else
log_sys_error("open", name);
return 0;
}