Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 3 Oct 2002 06:50:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 3 Oct 2002 06:50:54 -0400 Received: from cmailm1.svr.pol.co.uk ([195.92.193.18]:50694 "EHLO cmailm1.svr.pol.co.uk") by vger.kernel.org with ESMTP id ; Thu, 3 Oct 2002 06:50:53 -0400 Date: Thu, 3 Oct 2002 11:56:10 +0100 To: Alexander Viro Cc: Linux Mailing List Subject: Re: block device size in 2.5 Message-ID: <20021003105610.GA12071@fib011235813.fsnet.co.uk> References: <20021003103414.GA11966@fib011235813.fsnet.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i From: Joe Thornber Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 919 Lines: 25 On Thu, Oct 03, 2002 at 06:46:30AM -0400, Alexander Viro wrote: > > > On Thu, 3 Oct 2002, Joe Thornber wrote: > > > Why is the total size of a block device held in struct gendisk rather > > than struct block_device ? > > It is mirrored into bdev->bd_inode->i_size. However, struct block_device > is not persistent - persistent stuff lives in struct gendisk. Thanks. Is gendisk the right name for that structure now ? Since all block devices now have to use it. I've always avoided using gendisk before, arguing that dm produces block devices, not disks. I don't need partitions and I don't particularly want the devices to appear in /proc/partitions. Joe Thornber - 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/