Re: tools support for non-512 byte sector sizes

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Matt Domsch <Matt_Domsch@...>
Cc: Martin K. Petersen <martin.petersen@...>, James Bottomley <James.Bottomley@...>, Matthew Wilcox <matthew@...>, Ric Wheeler <rwheeler@...>, <linux-scsi@...>, <linux-ide@...>, <linux-kernel@...>, Jeff Garzik <jeff@...>
Date: Wednesday, July 30, 2008 - 1:16 pm

Matt Domsch <Matt_Domsch@dell.com> wrote:
...

Do they expose that sector size?
I.e., does ioctl(fd,BLKSSZGET,&ss) set ss to 4096?

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

  - 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)

Even if the latter is the case, we still have to deal with
optical and flash, both of which can already have larger sectors.


Speaking of O_DIRECT, both dd and shred (both in coreutils), use
O_DIRECT, so you could get _some_ coverage just by running shred
and experimenting with dd's oflag=direct and iflag=direct options.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: tools support for non-512 byte sector sizes, Matthew Wilcox, (Tue Jul 29, 2:26 pm)
Re: tools support for non-512 byte sector sizes, Jeff Garzik, (Tue Jul 29, 5:54 pm)
Re: tools support for non-512 byte sector sizes, Martin K. Petersen, (Tue Jul 29, 2:41 pm)
Re: tools support for non-512 byte sector sizes, James Bottomley, (Tue Jul 29, 2:37 pm)
Re: tools support for non-512 byte sector sizes, Vladislav Bolkhovitin, (Wed Jul 30, 1:51 am)
Re: tools support for non-512 byte sector sizes, Martin K. Petersen, (Tue Jul 29, 2:48 pm)
Re: tools support for non-512 byte sector sizes, Matt Domsch, (Wed Jul 30, 9:51 am)
Re: tools support for non-512 byte sector sizes, Matthew Wilcox, (Fri Aug 1, 12:11 pm)
Re: tools support for non-512 byte sector sizes, Matt Domsch, (Tue Aug 5, 12:57 pm)
Re: tools support for non-512 byte sector sizes, Matthew Wilcox, (Tue Aug 5, 12:54 pm)
Re: tools support for non-512 byte sector sizes, Matthew Wilcox, (Tue Aug 5, 12:57 pm)
Re: tools support for non-512 byte sector sizes, Jim Meyering, (Wed Jul 30, 1:16 pm)
Re: tools support for non-512 byte sector sizes, Matt Domsch, (Wed Jul 30, 1:29 pm)
Re: tools support for non-512 byte sector sizes, Pavel Machek, (Sat Aug 9, 9:21 am)
Re: tools support for non-512 byte sector sizes, Theodore Tso, (Wed Jul 30, 2:13 pm)
Re: tools support for non-512 byte sector sizes, Ric Wheeler, (Wed Jul 30, 2:28 pm)
Re: tools support for non-512 byte sector sizes, Theodore Tso, (Wed Jul 30, 2:45 pm)
Re: tools support for non-512 byte sector sizes, Alan Cox, (Wed Jul 30, 1:24 pm)
Re: tools support for non-512 byte sector sizes, Ric Wheeler, (Tue Jul 29, 2:54 pm)
Re: tools support for non-512 byte sector sizes, James Bottomley, (Tue Jul 29, 2:56 pm)
Re: tools support for non-512 byte sector sizes, FUJITA Tomonori, (Tue Jul 29, 7:41 pm)
Re: tools support for non-512 byte sector sizes, Matthew Wilcox, (Tue Jul 29, 2:42 pm)
Re: tools support for non-512 byte sector sizes, James Bottomley, (Tue Jul 29, 2:44 pm)
Re: tools support for non-512 byte sector sizes, Matthew Wilcox, (Tue Jul 29, 2:50 pm)
Re: tools support for non-512 byte sector sizes, James Bottomley, (Tue Jul 29, 3:00 pm)