trivial doc patch for partitions
PATCH 1/1 trivial doc patch for partitions
It's slightly hard to see how these variables are used; this patch adds a short description.
I am planning to change rescan_partitions so that it allows you to change partitions on a disk that has active partitions, so long as the active partitions themselves are not changed. Would anyone object?
include/linux/fs.h +1 -0
@@ -354,6 +354,7 @@struct block_device * bd_contains;unsigned bd_block_size;struct hd_struct * bd_part; +/* number of times partitions within this device have been opened. */ unsigned bd_part_count;int bd_invalidated;struct gendisk * bd_disk;
include/linux/genhd.h +2 -1
@@ -82,7 +82,8 @@struct gendisk {int major;/* major number of driver */ int first_minor; -int minors; +int minors;/* maximum number of minors, =1 for +* disks that can't be partitioned. */ char disk_name[32 ];/* name of major driver */ struct hd_struct **part;/* [indexed by minor] */ struct block_device_operations *fops;
Signature · 1 line
Martin