summaryrefslogtreecommitdiffstats
path: root/0022-RHBZ-557845-RHEL5-style-partitions.patch
diff options
context:
space:
mode:
Diffstat (limited to '0022-RHBZ-557845-RHEL5-style-partitions.patch')
-rw-r--r--0022-RHBZ-557845-RHEL5-style-partitions.patch8
1 files changed, 5 insertions, 3 deletions
diff --git a/0022-RHBZ-557845-RHEL5-style-partitions.patch b/0022-RHBZ-557845-RHEL5-style-partitions.patch
index 95488b8..8c87256 100644
--- a/0022-RHBZ-557845-RHEL5-style-partitions.patch
+++ b/0022-RHBZ-557845-RHEL5-style-partitions.patch
@@ -187,7 +187,7 @@ Index: multipath-tools/kpartx/kpartx.c
if (safe_sprintf(partname, "%s%s%d",
mapname, delim, j+1)) {
fprintf(stderr, "partname too small\n");
-@@ -493,70 +468,6 @@ main(int argc, char **argv){
+@@ -493,72 +468,6 @@ main(int argc, char **argv){
slices[j].minor, slices[j].size,
DM_TARGET, params);
}
@@ -236,11 +236,13 @@ Index: multipath-tools/kpartx/kpartx.c
- dm_addmap(op, partname, DM_TARGET, params,
- slices[j].size, uuid, j+1,
- buf.st_mode & 0777,
-- buf.st_uid, buf.st_gid);
+- buf.st_uid, buf.st_gid,
+- &cookie);
-
- if (op == DM_DEVICE_RELOAD)
- dm_simplecmd(DM_DEVICE_RESUME,
-- partname, 1);
+- partname, 1,
+- &cookie);
-
- dm_devn(partname, &slices[j].major,
- &slices[j].minor);