From fa2b1cb32e67d7257b319206ff1bc90a40a770de Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 6 Aug 2009 10:34:36 +0200 Subject: [PATCH] partx: work properly with 512 sectors (dos PT) Signed-off-by: Karel Zak --- partx/dos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5