fdisk: backport disk check from util-linux
authorLauri Kasanen <curaga@operamail.com>
Sat, 30 Apr 2011 19:31:05 +0000 (21:31 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 30 Apr 2011 19:31:05 +0000 (21:31 +0200)
commit9cfcc4d7a2b1dd9bdcda392aa43009b949c56c92
treea8e8bacadae5e62731d1dec106701d1dd207dac2
parentd1993f180cd4ba0992c559e7165ec4c220af4ca0
fdisk: backport disk check from util-linux

With the digit check devices like mmcblk0 were skipped,
but now with 0 allowed we're seeing a ton of loop devices listed
(loop0, loop10, loop20...) as well as ramzswap0,
all which should not be shown in fdisk -l.

function                                             old     new   delta
list_devs_in_proc_partititons                        157     238     +81

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/fdisk.c