[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B9EED55.10201@kernel.org>
Date: Tue, 16 Mar 2010 11:30:45 +0900
From: Tejun Heo <tj@...nel.org>
To: Denys Vlasenko <vda.linux@...glemail.com>
CC: Arnd Bergmann <arnd@...db.de>,
"linux-ide@...r.kernel.org" <linux-ide@...r.kernel.org>,
lkml <linux-kernel@...r.kernel.org>,
Daniel Taylor <Daniel.Taylor@....com>,
Jeff Garzik <jeff@...zik.org>, Mark Lord <kernel@...savvy.com>,
tytso@....edu, "H. Peter Anvin" <hpa@...or.com>,
hirofumi@...l.parknet.co.jp,
Andrew Morton <akpm@...ux-foundation.org>,
Alan Cox <alan@...rguk.ukuu.org.uk>, irtiger@...il.com,
Matthew Wilcox <matthew@....cx>, aschnell@...e.de,
knikanth@...e.de, jdelvare@...e.de
Subject: Re: ATA 4 KiB sector issues.
Hello,
On 03/10/2010 06:14 PM, Denys Vlasenko wrote:
> 63s/255h is more or less "standard" now.
>
> Alignment issues can be solved by picking a good multiple of
> _heads_ or _cylinders_:
I've got a couple of comments stating that picking a good geometry
parameters can resolve the whole issue but I simply fail to see how it
could. We can pick any parameter we wish, but there is no reliable
way to communicate the custom geometry parameters to others.
Geometry is determined by two parameters sec/trk and heads/cyl. You
can punch in those numbers if the BIOS has a menu for it (many don't
these days). Or hope that BIOS can somehow figure it out from the
partition table which some BIOSs actually try to do. The problem is
that to determine the two parameters you need to equations matching
CHSs and LBAs and that's available iff the first partition ends before
CHS addressing limit according to the custom geometry, which usually
is not the case.
So, custom geometry is only useful to trick partitioners which align
using cylinders into using better alignments but doesn't help anything
for compatibility as no one can determine the used geometry reliably
after the partitioning is complete. With compatibility benefit gone,
there simply is no reason to stick to the cylinder abstraction at all.
Am I missing something?
Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists