]> git.karo-electronics.de Git - karo-tx-linux.git/commit
block: restore /proc/partitions to not display non-partitionable removable devices
authorJosh Hunt <johunt@akamai.com>
Thu, 7 Feb 2013 01:26:07 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:14 +0000 (16:46 +1100)
commit54211b61423eaa79c24806ef79cb10e2e6cacaae
tree5f84588ee986934b260202bc1f1b3b38e7e7f065
parent6b0d9c224ed8bc3212d2a31279a6ac9a5451142d
block: restore /proc/partitions to not display non-partitionable removable devices

We found with newer kernels we started seeing the cdrom device showing
up in /proc/partitions, but it was not there before.

Looking into this I found that commit d27769ec ("block: add
GENHD_FL_NO_PART_SCAN") introduces this change in behavior.  It's not
clear to me from the commit's changelog if this change was intentional or
not.  This comment still remains: /* Don't show non-partitionable
removeable devices or empty devices */ so I've decided to send a patch to
restore the behavior of not printing unpartitionable removable devices.

Signed-off-by: Josh Hunt <johunt@akamai.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
block/genhd.c