mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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
48ad31920d
commit
38f3949b25
@ -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…
Reference in New Issue
Block a user