Bugzilla – Attachment 218286 Details for
Bug 394658
kpartx broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
multipath-tools-wrong-partition-offset
multipath-tools-kpartx-wrong-partition-offset (text/plain), 1.03 KB, created by
Hannes Reinecke
on 2008-05-27 12:09:18 UTC
(
hide
)
Description:
multipath-tools-wrong-partition-offset
Filename:
MIME Type:
Creator:
Hannes Reinecke
Created:
2008-05-27 12:09:18 UTC
Size:
1.03 KB
patch
obsolete
>commit 6d1bf23952e810ce41dd9f9d25e817eb56ecf93f >Author: Hannes Reinecke <hare@suse.de> >Date: Tue May 27 14:07:37 2008 +0200 > > kpartx: Fixup stacked device offset > > For stacked devices we should calculate the offset relative to > the enclosing partition, not the entire device. > > References: 394658 > Signed-off-by: Hannes Reinecke <hare@suse.de> > >diff --git a/kpartx/kpartx.c b/kpartx/kpartx.c >index 13d039d..68f17c8 100644 >--- a/kpartx/kpartx.c >+++ b/kpartx/kpartx.c >@@ -467,6 +467,7 @@ main(int argc, char **argv){ > d = c; > while (c) { > for (j = 0; j < n; j++) { >+ uint64_t start; > int k = slices[j].container - 1; > > if (slices[j].size == 0) >@@ -492,10 +493,11 @@ main(int argc, char **argv){ > } > strip_slash(partname); > >+ start = slices[j].start - slices[k].start; > if (safe_sprintf(params, "%d:%d %" PRIu64, > slices[k].major, > slices[k].minor, >- slices[j].start)) { >+ start)) { > fprintf(stderr, "params too small\n"); > exit(1); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 394658
: 218286