1
0
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:
Patrick Caulfield 2002-07-11 09:23:29 +00:00
parent 48ad31920d
commit 38f3949b25

View File

@ -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;
}