<div dir="ltr"><div><div>Applied, thanks<br><br></div>Christophe Varoqui<br></div><a href="http://www.opensvc.com">www.opensvc.com</a><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 9, 2014 at 5:24 PM, Phillip Susi <span dir="ltr"><<a href="mailto:psusi@ubuntu.com" target="_blank">psusi@ubuntu.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Extended partitions only get 2 sectors for 512 byte sector size,<br>
to allow LILO the 1024 bytes of room it needs.  Larger sector size<br>
disks already have room and so only use 1 sector.<br>
<br>
Signed-off-by: Phillip Susi <<a href="mailto:psusi@ubuntu.com">psusi@ubuntu.com</a>><br>
---<br>
 kpartx/dos.c | 8 ++++++--<br>
 1 file changed, 6 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/kpartx/dos.c b/kpartx/dos.c<br>
index 0e57f0e..90ad3bd 100644<br>
--- a/kpartx/dos.c<br>
+++ b/kpartx/dos.c<br>
@@ -101,8 +101,12 @@ read_dos_pt(int fd, struct slice all, struct slice *sp, int ns) {<br>
                        break;<br>
                }<br>
                if (is_extended(p.sys_type)) {<br>
-                       sp[i].size = sector_size_mul * 2; /* extended partitions only get two<br>
-                                          sectors mapped for LILO to install */<br>
+                       /* extended partitions only get one or<br>
+                          two sectors mapped for LILO to install,<br>
+                          whichever is needed to have 1kb of space */<br>
+                       if (sector_size_mul == 1)<br>
+                               sp[i].size = 2;<br>
+                       else sp[i].size = sector_size_mul;<br>
                        n += read_extended_partition(fd, &p, i, sp+n, ns-n);<br>
                }<br>
        }<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.9.1<br>
<br>
--<br>
dm-devel mailing list<br>
<a href="mailto:dm-devel@redhat.com">dm-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/dm-devel" target="_blank">https://www.redhat.com/mailman/listinfo/dm-devel</a><br>
</font></span></blockquote></div><br></div></div>