]> 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>
Tue, 5 Nov 2013 05:55:20 +0000 (16:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:55:20 +0000 (16:55 +1100)
commit80263a5053752d61da10e1dce5b34fa1ff824d0b
tree42a457a57fd3a5f621e0333e4033fd5b8998a1bc
parente9f5c1d76be5cec29c32b145ac65b27c7e010f7b
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