its possible that the fgamous 4K aling problem are the cause..

Can this patch be anaize and apllied for this problem? (and others
possible related about partition aling on large disk)

diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c
index b752d9b..1c7aee1 100644
--- a/fdisk/fdisk.c
+++ b/fdisk/fdisk.c
@@ -1080,11 +1080,15 @@ update_sector_offset(void)
                 *    device where the offset is quarter of of whole size
                 *    of the device).
                 */
-               unsigned long long x;
+               unsigned long long x = 0;

-               if (has_topology)
-                       x = alignment_offset ? alignment_offset : io_size;
-               else
+               if (has_topology) {
+                       if (alignment_offset)
+                               x = alignment_offset;
+                       else if (io_size > 2048 * 512)
+                               x = io_size;
+               }
+               if (x == 0)
                        x = grain = 2048 * 512;

                sector_offset = x / sector_size;




--
Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
Cofundador de Venenux;  debian based multimedia alike free only
zealots users (oh well, i try but..too many free guidelines buahhh)
http://shutendouji.net
creador de massenkoh linux; debian enhanchements for better up to date
support on stable brand, including non-free soft.



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to