Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 11 Dec 2001 12:27:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 11 Dec 2001 12:27:03 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:50183 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Tue, 11 Dec 2001 12:26:42 -0500 Date: Tue, 11 Dec 2001 09:26:09 -0800 (PST) From: Linus Torvalds To: GOTO Masanori cc: , , Subject: Re: [PATCH] direct IO breaks root filesystem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 Dec 2001, GOTO Masanori wrote: > I, however, found another problem. > Accessing with inode size unit (== 4096 byte) is ok, but if I accessed > with block size unit, generic_direct_IO() returns error. The reason > is that blocksize is designated as inode->i_blkbits, and its value is > not disk minimal block size (512), but inode's unit size (4096). That is not a bug, but a feature. We _always_ have to do the IO in "inode size" chunks, and if you want to change it, you have to change it at a higher level (ie you should set the blocksize with the "BLKBSZSET" ioctl.) Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/