From: Karel Zak Date: Thu, 6 Aug 2009 08:34:36 +0000 (+0200) Subject: partx: work properly with 512 sectors (dos PT) X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa2b1cb32e67d7257b319206ff1bc90a40a770de;p=util-linux partx: work properly with 512 sectors (dos PT) Signed-off-by: Karel Zak --- diff --git a/partx/dos.c b/partx/dos.c index ebc4ce0a..f962f376 100644 --- a/partx/dos.c +++ b/partx/dos.c @@ -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;