1 From 8d443fe2c58e22166426438e6f6d5757934f7b31 Mon Sep 17 00:00:00 2001
2 From: Fabio M. Di Nitto <fdinitto@redhat.com>
3 Date: Tue, 13 Oct 2009 08:23:42 +0200
4 Subject: [PATCH 04/12] RH: fix kpartx
6 Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 :100644 100644 b61a81f... 103ed0a... M kpartx/kpartx.c
9 kpartx/kpartx.c | 6 ++++--
10 1 files changed, 4 insertions(+), 2 deletions(-)
12 diff --git a/kpartx/kpartx.c b/kpartx/kpartx.c
13 index b61a81f..103ed0a 100644
16 @@ -488,6 +488,7 @@ main(int argc, char **argv){
19 for (j = 0; j < n; j++) {
21 int k = slices[j].container - 1;
23 if (slices[j].size == 0)
24 @@ -498,7 +499,7 @@ main(int argc, char **argv){
27 /* Skip all simple slices */
29 + if (slices[j].container == 0)
32 /* Check container slice */
33 @@ -513,10 +514,11 @@ main(int argc, char **argv){
35 strip_slash(partname);
37 + start = slices[j].start - slices[k].start;
38 if (safe_sprintf(params, "%d:%d %" PRIu64,
43 fprintf(stderr, "params too small\n");