1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Do not issue an error message when unable to remove .cache on read-only fs.

This commit is contained in:
Peter Rajnoha 2011-05-12 12:42:47 +00:00
parent 8dad498967
commit 5fb0c20297
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.86 -
=================================
Do not issue an error message when unable to remove .cache on read-only fs.
Avoid memlock size mismatch by preallocating stdio line buffers.
Reorganize lvconvert --repair code to allow reuse.
Rewrite vgreduce --removemissing --force leveraging shared lvconvert code.

View File

@ -108,7 +108,7 @@ int persistent_filter_load(struct dev_filter *f, struct config_tree **cft_out)
log_very_verbose("Obtaining device list from "
"udev. Removing obolete %s.",
pf->file);
if (unlink(pf->file) < 0)
if (unlink(pf->file) < 0 && errno != EROFS)
log_sys_error("unlink", pf->file);
}
return 1;