From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin K. Petersen" Subject: Re: [PATCH][RFC]ext4 on 4k-sector drives without read-modify-write support Date: Mon, 28 Feb 2011 09:58:55 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Cc: Ibragimov Rinat , linux-fsdevel@vger.kernel.org To: Jeff Moyer Return-path: Received: from rcsinet10.oracle.com ([148.87.113.121]:44668 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754196Ab1B1O7X (ORCPT ); Mon, 28 Feb 2011 09:59:23 -0500 In-Reply-To: (Jeff Moyer's message of "Mon, 28 Feb 2011 09:52:15 -0500") Sender: linux-fsdevel-owner@vger.kernel.org List-ID: >>>>> "Jeff" == Jeff Moyer writes: >> I have a proposal about 4k-sector hard drives support in fs drivers. >> Toshiba MK1231GAL is an 1.8" LIF IDE drive. It has 4096-byte physical >> and 512-byte logical sectors [1]. Unlike others drives with Advanced >> Format, it has not read-modify-write logic, so it can only operate >> with 4k blocks. Fortunately some filesystems in linux (I tested jfs, Jeff> Then it should report a logical block size of 4k. You have a Jeff> drive with broken firmware. Several vendors are contemplating something similar. I.e. keep the 512-byte addressing to avoid implementing support for 4KB logical blocks in the OS ATA stack. But the drive will reject I/Os that are not naturally aligned multiples of 4KB. I agree it's totally broken. But I suspect we'll be seeing more of these... :( -- Martin K. Petersen Oracle Linux Engineering