From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Cox Subject: Re: Filesystem creation Date: Tue, 14 May 2002 00:52:31 +0100 (BST) Sender: linux-8086-owner@vger.kernel.org Message-ID: References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: from "Riley Williams" at May 13, 2002 06:42:23 PM List-Id: Content-Type: text/plain; charset="us-ascii" To: rhw@InfraDead.Org Cc: Harry Kalogirou , Linux-8086 > 2. How hard would it be to make mkfs take as its size parameter > the number reported by fdisk and calculate the size it needs > from that rather than expect the user to do the calculation > instead? That would break the expected but daft old Unix API > 3. How hard would it be to fix ELKS so the size doesn't need to > be specified, either by getting the block devices to update > the blk_sizes array or by whatever other means are required? > This way, the whole problem just vanishes. You can fill in the block sizes for each partition by reading the partition table. In the ELKS case I'd argue that mkfs ought to figure out the primary device, and do the partition table read itself simply because kernel space is precious and only mkfoo need to know