]> err.no Git - util-linux/commitdiff
partx: work properly with 512 sectors (dos PT)
authorKarel Zak <kzak@redhat.com>
Thu, 6 Aug 2009 08:34:36 +0000 (10:34 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 7 Sep 2009 10:07:07 +0000 (12:07 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
partx/dos.c

index ebc4ce0a762a7b9b4ec4ca8aaf0d709b04733a71..f962f3762ba88253ef3af1a116112126cbe5ec68 100644 (file)
@@ -44,7 +44,7 @@ read_extended_partition(int fd, struct partition *ep,
                if (++loopct > 100)
                        return n;
 
-               bp = getblock(fd, here);
+               bp = getblock(fd, here * ssf);  /* in 512 blocks */
                if (bp == NULL)
                        return n;