diff for duplicates of <46A7AC09.2070502@ce.jp.nec.com> diff --git a/a/1.txt b/N1/1.txt index acddb53..bff25e7 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -14,3 +14,10 @@ something could be put in future. Thanks, -- Jun'ichi Nomura, NEC Corporation of America +-------------- next part -------------- +A non-text attachment was scrubbed... +Name: lvm2-use-dm_create_dir.patch +Type: text/x-patch +Size: 1275 bytes +Desc: not available +URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20070725/7c07d538/attachment.bin> diff --git a/a/2.hdr b/a/2.hdr deleted file mode 100644 index bcec289..0000000 --- a/a/2.hdr +++ /dev/null @@ -1,5 +0,0 @@ -Content-Type: text/x-patch; - name="lvm2-use-dm_create_dir.patch" -Content-Transfer-Encoding: 7bit -Content-Disposition: inline; - filename="lvm2-use-dm_create_dir.patch" diff --git a/a/2.txt b/a/2.txt deleted file mode 100644 index e409a6a..0000000 --- a/a/2.txt +++ /dev/null @@ -1,62 +0,0 @@ -Use dm_create_dir() instead of its own. - -Index: LVM2.work/lib/misc/lvm-file.c -=================================================================== ---- LVM2.work.orig/lib/misc/lvm-file.c -+++ LVM2.work/lib/misc/lvm-file.c -@@ -140,54 +140,9 @@ int dir_exists(const char *path) - return 1; - } - --static int _create_dir_recursive(const char *dir) --{ -- char *orig, *s; -- int rc; -- -- log_verbose("Creating directory \"%s\"", dir); -- /* Create parent directories */ -- orig = s = dm_strdup(dir); -- while ((s = strchr(s, '/')) != NULL) { -- *s = '\0'; -- if (*orig) { -- rc = mkdir(orig, 0777); -- if (rc < 0 && errno != EEXIST) { -- if (errno != EROFS) -- log_sys_error("mkdir", orig); -- dm_free(orig); -- return 0; -- } -- } -- *s++ = '/'; -- } -- dm_free(orig); -- -- /* Create final directory */ -- rc = mkdir(dir, 0777); -- if (rc < 0 && errno != EEXIST) { -- if (errno != EROFS) -- log_sys_error("mkdir", dir); -- return 0; -- } -- return 1; --} -- - int create_dir(const char *dir) - { -- struct stat info; -- -- if (!*dir) -- return 1; -- -- if (stat(dir, &info) < 0) -- return _create_dir_recursive(dir); -- -- if (S_ISDIR(info.st_mode)) -- return 1; -- -- log_error("Directory \"%s\" not found", dir); -- return 0; -+ return dm_create_dir(dir); - } - - int is_empty_dir(const char *dir) diff --git a/a/3.hdr b/a/3.hdr deleted file mode 100644 index 4b86001..0000000 --- a/a/3.hdr +++ /dev/null @@ -1,4 +0,0 @@ -Content-Type: text/plain; charset="us-ascii" -MIME-Version: 1.0 -Content-Transfer-Encoding: 7bit -Content-Disposition: inline diff --git a/a/3.txt b/a/3.txt deleted file mode 100644 index 8b13789..0000000 --- a/a/3.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/a/content_digest b/N1/content_digest index b9a7eb5..bbfd5c3 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,12 +1,10 @@ "ref\087wswplmgl.fsf@rho.meyering.net\0" "ref\046A7AB23.7050306@ce.jp.nec.com\0" "From\0Jun'ichi Nomura <j-nomura@ce.jp.nec.com>\0" - "Subject\0Re: [lvm-devel] new device-mapper required to build latest lvm from cvs\0" + "Subject\0new device-mapper required to build latest lvm from cvs\0" "Date\0Wed, 25 Jul 2007 16:01:13 -0400\0" - "To\0LVM2 development <lvm-devel@redhat.com>" - " jim@meyering.net\0" - "Cc\0device-mapper development <dm-devel@redhat.com>\0" - "\01:1\0" + "To\0lvm-devel@redhat.com\0" + "\00:1\0" "b\0" "> lvm_fclose() calls dm_fclose(), which cause the linker to\n" "> bring libdm-file.o in liblvm.a. Then there happens a conflict\n" @@ -23,73 +21,13 @@ "\n" "Thanks,\n" "-- \n" - Jun'ichi Nomura, NEC Corporation of America - "\01:2\0" - "fn\0lvm2-use-dm_create_dir.patch\0" - "b\0" - "Use dm_create_dir() instead of its own.\n" - "\n" - "Index: LVM2.work/lib/misc/lvm-file.c\n" - "===================================================================\n" - "--- LVM2.work.orig/lib/misc/lvm-file.c\n" - "+++ LVM2.work/lib/misc/lvm-file.c\n" - "@@ -140,54 +140,9 @@ int dir_exists(const char *path)\n" - " \treturn 1;\n" - " }\n" - " \n" - "-static int _create_dir_recursive(const char *dir)\n" - "-{\n" - "-\tchar *orig, *s;\n" - "-\tint rc;\n" - "-\n" - "-\tlog_verbose(\"Creating directory \\\"%s\\\"\", dir);\n" - "-\t/* Create parent directories */\n" - "-\torig = s = dm_strdup(dir);\n" - "-\twhile ((s = strchr(s, '/')) != NULL) {\n" - "-\t\t*s = '\\0';\n" - "-\t\tif (*orig) {\n" - "-\t\t\trc = mkdir(orig, 0777);\n" - "-\t\t\tif (rc < 0 && errno != EEXIST) {\n" - "-\t\t\t\tif (errno != EROFS)\n" - "-\t\t\t\t\tlog_sys_error(\"mkdir\", orig);\n" - "-\t\t\t\tdm_free(orig);\n" - "-\t\t\t\treturn 0;\n" - "-\t\t\t}\n" - "-\t\t}\n" - "-\t\t*s++ = '/';\n" - "-\t}\n" - "-\tdm_free(orig);\n" - "-\n" - "-\t/* Create final directory */\n" - "-\trc = mkdir(dir, 0777);\n" - "-\tif (rc < 0 && errno != EEXIST) {\n" - "-\t\tif (errno != EROFS)\n" - "-\t\t\tlog_sys_error(\"mkdir\", dir);\n" - "-\t\treturn 0;\n" - "-\t}\n" - "-\treturn 1;\n" - "-}\n" - "-\n" - " int create_dir(const char *dir)\n" - " {\n" - "-\tstruct stat info;\n" - "-\n" - "-\tif (!*dir)\n" - "-\t\treturn 1;\n" - "-\n" - "-\tif (stat(dir, &info) < 0)\n" - "-\t\treturn _create_dir_recursive(dir);\n" - "-\n" - "-\tif (S_ISDIR(info.st_mode))\n" - "-\t\treturn 1;\n" - "-\n" - "-\tlog_error(\"Directory \\\"%s\\\" not found\", dir);\n" - "-\treturn 0;\n" - "+\treturn dm_create_dir(dir);\n" - " }\n" - " \n" - int is_empty_dir(const char *dir) - "\01:3\0" - "b\0" + "Jun'ichi Nomura, NEC Corporation of America\n" + "-------------- next part --------------\n" + "A non-text attachment was scrubbed...\n" + "Name: lvm2-use-dm_create_dir.patch\n" + "Type: text/x-patch\n" + "Size: 1275 bytes\n" + "Desc: not available\n" + URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20070725/7c07d538/attachment.bin> -46e0d6871e2c695dc9ec72ee00be8d97da335a60e99deb5d284bff7bc233b5f5 +29a8c9ee76359b4bc796a8bd9d32181c7f4569493986ce513f68afd8e7a6effc
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.