]> err.no Git - util-linux/commit
partx: do not add nonexistent partitions
authorPhillip Susi <psusi@cfl.rr.com>
Wed, 31 Mar 2010 13:52:08 +0000 (15:52 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 31 Mar 2010 13:52:08 +0000 (15:52 +0200)
commitd6d9cc6ea158ef3b2525742ee3f80c4a3be8b049
treeee899b7d52e4b81a85a6f09f497e0c2083bcc0d4
parent11ba4182e6b48e088189729d68b4d0bc7a5e4619
partx: do not add nonexistent partitions

This simple patch fixes partx -a to not add nonexistent zero length
partitions for unused primary partition slots to to the kernel. This
makes partx conform to the usual kernel behavior.

Signed-off-by: Phillip Susi <psusi@cfl.rr.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
partx/partx.c