linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* block device size in 2.5
@ 2002-10-03 10:34 Joe Thornber
  2002-10-03 10:46 ` Alexander Viro
  0 siblings, 1 reply; 4+ messages in thread
From: Joe Thornber @ 2002-10-03 10:34 UTC (permalink / raw)
  To: Linux Mailing List

Why is the total size of a block device held in struct gendisk rather
than struct block_device ?

Joe Thornber

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: block device size in 2.5
  2002-10-03 10:34 block device size in 2.5 Joe Thornber
@ 2002-10-03 10:46 ` Alexander Viro
  2002-10-03 10:56   ` Joe Thornber
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Viro @ 2002-10-03 10:46 UTC (permalink / raw)
  To: Joe Thornber; +Cc: Linux Mailing List



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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: block device size in 2.5
  2002-10-03 10:46 ` Alexander Viro
@ 2002-10-03 10:56   ` Joe Thornber
  2002-10-03 11:01     ` Alexander Viro
  0 siblings, 1 reply; 4+ messages in thread
From: Joe Thornber @ 2002-10-03 10:56 UTC (permalink / raw)
  To: Alexander Viro; +Cc: Linux Mailing List

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: block device size in 2.5
  2002-10-03 10:56   ` Joe Thornber
@ 2002-10-03 11:01     ` Alexander Viro
  0 siblings, 0 replies; 4+ messages in thread
From: Alexander Viro @ 2002-10-03 11:01 UTC (permalink / raw)
  To: Joe Thornber; +Cc: Linux Mailing List



On Thu, 3 Oct 2002, Joe Thornber wrote:

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

*shrug*  Probably we should change the name at some point.  struct gendisk
was the best starting point for creating such structure...


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-10-03 10:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-03 10:34 block device size in 2.5 Joe Thornber
2002-10-03 10:46 ` Alexander Viro
2002-10-03 10:56   ` Joe Thornber
2002-10-03 11:01     ` Alexander Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).