All of lore.kernel.org
 help / color / mirror / Atom feed
* device-mapper ./WHATS_NEW lib/libdm-file.c
@ 2007-07-28 10:27 meyering
  0 siblings, 0 replies; only message in thread
From: meyering @ 2007-07-28 10:27 UTC (permalink / raw)
  To: dm-cvs, dm-devel

CVSROOT:	/cvs/dm
Module name:	device-mapper
Changes by:	meyering@sourceware.org	2007-07-28 10:27:34

Modified files:
	.              : WHATS_NEW 
	lib            : libdm-file.c 

Log message:
	Make the libdevmapper version of create_dir equivalent to the LVM2 one.
	(_create_dir_recursive): Refrain from logging a mkdir failure due to EROFS.
	Patch by Jun'ichi Nomura.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/WHATS_NEW.diff?cvsroot=dm&r1=1.194&r2=1.195
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/lib/libdm-file.c.diff?cvsroot=dm&r1=1.6&r2=1.7

--- device-mapper/WHATS_NEW	2007/07/28 10:23:01	1.194
+++ device-mapper/WHATS_NEW	2007/07/28 10:27:34	1.195
@@ -1,5 +1,6 @@
 Version 1.02.22 - 
 ================================
+  Don't log mkdir fail-with-EROFS, to make create_dir equiv to the one in LVM2
   Introduce and use log_sys_* macros from LVM2
   dm_fclose: new function
   libdevmapper, dmeventd: be paranoid about detecting write failure
--- device-mapper/lib/libdm-file.c	2007/07/28 10:23:01	1.6
+++ device-mapper/lib/libdm-file.c	2007/07/28 10:27:34	1.7
@@ -33,7 +33,8 @@
 		if (*orig) {
 			rc = mkdir(orig, 0777);
 			if (rc < 0 && errno != EEXIST) {
-				log_sys_error("mkdir", orig);
+				if (errno != EROFS)
+					log_sys_error("mkdir", orig);
 				goto out;
 			}
 		}
@@ -43,7 +44,8 @@
 	/* Create final directory */
 	rc = mkdir(dir, 0777);
 	if (rc < 0 && errno != EEXIST) {
-		log_sys_error("mkdir", orig);
+		if (errno != EROFS)
+			log_sys_error("mkdir", orig);
 		goto out;
 	}
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-28 10:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-28 10:27 device-mapper ./WHATS_NEW lib/libdm-file.c meyering

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.