]> 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>
Wed, 20 Mar 2013 04:07:01 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:28:21 +0000 (16:28 +1100)
commitc347356e91b71bd51d7c50a449641fd45896da14
tree8ccd0a2742b7db95f49b5d313cef7ab5bcd3f6ad
parent4c6f936b9e3fe5305fbc826660878809e2d79fcb
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