mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-26 14:04:15 +03:00
Don't log an error if we can't write the cache file because the FS is read-only.
Gets rid of that annoying error at shutdown.
This commit is contained in:
parent
778e846e96
commit
e4cdc051a9
@ -151,7 +151,8 @@ int persistent_filter_dump(struct dev_filter *f)
|
||||
|
||||
fp = fopen(pf->file, "w");
|
||||
if (!fp) {
|
||||
log_sys_error("fopen", pf->file);
|
||||
if (errno != EROFS)
|
||||
log_sys_error("fopen", pf->file);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user