From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760220AbYG3R3g (ORCPT ); Wed, 30 Jul 2008 13:29:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753947AbYG3R3Z (ORCPT ); Wed, 30 Jul 2008 13:29:25 -0400 Received: from ausc60pc101.us.dell.com ([143.166.85.206]:33560 "EHLO ausc60pc101.us.dell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753803AbYG3R3Y (ORCPT ); Wed, 30 Jul 2008 13:29:24 -0400 Date: Wed, 30 Jul 2008 12:29:22 -0500 From: Matt Domsch To: Jim Meyering Cc: "Martin K. Petersen" , James Bottomley , Matthew Wilcox , Ric Wheeler , linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Jeff Garzik Subject: Re: tools support for non-512 byte sector sizes Message-ID: <20080730172922.GA20191@auslistsprd01.us.dell.com> References: <488F524F.6020905@redhat.com> <20080729182611.GB24924@parisc-linux.org> <1217356645.6103.48.camel@localhost.localdomain> <20080730135147.GA4513@auslistsprd01.us.dell.com> <87zlnzb8ce.fsf@rho.meyering.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87zlnzb8ce.fsf@rho.meyering.net> User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 30, 2008 at 07:16:49PM +0200, Jim Meyering wrote: > Matt Domsch wrote: > > On Tue, Jul 29, 2008 at 02:48:31PM -0400, Martin K. Petersen wrote: > ... > >> Just yesterday I received a couple of prototype drives in the mail. > >> I'll ask the vendor whether they support 4KB and if so I'll give them > >> a whirl. > > > > I have access to disks with native 4KB sectors now too. Would > > Do they expose that sector size? > I.e., does ioctl(fd,BLKSSZGET,&ss) set ss to 4096? yes. > I'm interested because I'm preparing GNU Parted's partition table > manipulation code (not its FS code) for just that. > In particular, now I've heard two stories: > > - disk makers will eventually sell drives with >512-byte sectors yes > - some disk makers have sort of agreed not to do that, and > expect forever to hide the larger underlying sector size > behind a virtual 512 (of course, this imposes alignment > restrictions, but that's a smaller problem) yes, this is happening also. There will be 3 types of disks eventually: 1) those that report a 512-byte sector size, and are really a 512-byte size. This is nearly all disks today. 2) those that report a 512-byte sector size, but are really a 4096-byte size, and the drive does the conversions and read/modify/write. T10 and T13 are looking to add commands to expose this different underlying physical sector size so the OS could be aware of it. This is primarily being driven to mitigate any problems that may happen with "legacy" OSs that are not aware of the difference. 3) those that report a 4096-byte sector size, and are really a 4096-byte size. This seems ideal for aware OSs. Which of 2) or 3) hit the market in mass remains to be seen. I want Linux to be able to handle either painlessly. -- Matt Domsch Linux Technology Strategist, Dell Office of the CTO linux.dell.com & www.dell.com/linux