From: meyering@sourceware.org
To: dm-cvs@sourceware.org, dm-devel@redhat.com
Subject: device-mapper ./WHATS_NEW lib/libdm-file.c
Date: 28 Jul 2007 10:27:35 -0000 [thread overview]
Message-ID: <20070728102735.12507.qmail@sourceware.org> (raw)
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;
}
reply other threads:[~2007-07-28 10:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070728102735.12507.qmail@sourceware.org \
--to=meyering@sourceware.org \
--cc=dm-cvs@sourceware.org \
--cc=dm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.