]> 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, 22 May 2014 00:42:34 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:42:34 +0000 (10:42 +1000)
commit034a87f9423e2e4ef62fff0656575f3fc109793b
tree592e7ac4f34b403c6efc800f66b17572248cab00
parentb68384cd75e34b8ac8c180015e21beba0341547b
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