Skip to contentSkip to conversation

LVM2 ./WHATS_NEW lib/filters/filter-persistent.c

PATCH [email protected] 1 participant 1 message May 12, 2011

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: prajnoha at sourceware.org 2011-05-12 12:42:48

Modified files:
. : WHATS_NEW
lib/filters : filter-persistent.c

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

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1988&r2=1.1989
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/filters/filter-persistent.c.diff?cvsroot=lvm2&r1=1.49&r2=1.50

WHATS_NEW +1 -0
@@ -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.
lib/filters/filter-persistent.c +1 -1
@@ -108,7 +108,7 @@
 			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;