From owner-svn-src-head@FreeBSD.ORG Tue Dec 7 14:01:57 2010 Return-Path: Delivered-To: svn-src-head@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43BA010656B2; Tue, 7 Dec 2010 14:01:57 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id D7EB48FC21; Tue, 7 Dec 2010 14:01:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id oB7DvpuP046774; Tue, 7 Dec 2010 06:57:51 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 07 Dec 2010 06:57:51 -0700 (MST) Message-Id: <20101207.065751.71135474.imp@bsdimp.com> To: ertr1013@student.uu.se From: Warner Losh In-Reply-To: <20101207121058.GA53449@owl.midgard.homeip.net> References: <20101207115106.GB68479@muon.cran.org.uk> <4CFE2110.8020108@freebsd.org> <20101207121058.GA53449@owl.midgard.homeip.net> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 07 Dec 2010 15:09:02 +0000 Cc: bruce@cran.org.uk, src-committers@FreeBSD.org, pjd@FreeBSD.org, jhb@FreeBSD.org, svn-src-all@FreeBSD.org, avg@FreeBSD.org, ivoras@FreeBSD.org, svn-src-head@FreeBSD.org, mav@FreeBSD.org Subject: Re: svn commit: r216230 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2010 14:01:57 -0000 From: Erik Trulsson Subject: Re: svn commit: r216230 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs Date: Tue, 7 Dec 2010 13:10:58 +0100 > On Tue, Dec 07, 2010 at 01:57:04PM +0200, Andriy Gapon wrote: > > on 07/12/2010 13:51 Bruce Cran said the following: > > > On Tue, Dec 07, 2010 at 01:31:27PM +0200, Alexander Motin wrote: > > >> Not necessary. Some places indeed may have some legacy requirements, > > >> for example, in theory MBR want partition to be aligned to "track > > >> boundary" (but I've seen many pre-formatted SD cards with MBR > > >> violating it to align partition to flash sector). Same time for BSD > > >> label I see no problem to align partitions any way we want. I also > > >> see no problems to make FAT cluster, UFS block/fragment, etc, to > > >> match some sizes. > > > > > >>From a new installation of Windows 7 and FreeBSD CURRENT: > > > > > > GEOM: ada0: partition 3 does not start on a track boundary. > > > GEOM: ada0: partition 3 does not end on a track boundary. > > > GEOM: ada0: partition 2 does not start on a track boundary. > > > GEOM: ada0: partition 2 does not end on a track bounary. > > > > > > Partition 2 is the reserved partition while 3 is an NTFS partition, both > > > created in the Windows setup application. > > > > > > Since Windows isn't bothering to align partitions do we still need to > > > warn about it? > > > > > > > No. > > And another reason is that modern drives do not actually report any CHS > > parameters, so I don't even know where we get them and how we (pretend to) know > > we track boundaries are. > > Modern drives do actually report CHS parameters. The values reported > rarely (if ever) have any relationship whatsoever to reality, but they > are reported. I guess the reason for them still being reported is to > satisfy old systems that do not undestand LBA and insist on getting CHS > parameters. And even if the CHS parameters are reported, they are molested at many layers so cannot be trusted at all. CF Cards will report one thing if attached via usb adapters and another thing if attached directly to a pata bus, for example. Sometimes this is software (cam lying), other times this is hardware (usb adapter lying). Warner