From: Phillip Susi Date: Wed, 31 Mar 2010 13:52:08 +0000 (+0200) Subject: partx: do not add nonexistent partitions X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6d9cc6ea158ef3b2525742ee3f80c4a3be8b049;p=util-linux 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 Signed-off-by: Karel Zak --- diff --git a/partx/partx.c b/partx/partx.c index 16ea1fab..3d60bf69 100644 --- a/partx/partx.c +++ b/partx/partx.c @@ -295,6 +295,9 @@ main(int argc, char **argv){ } } for (j=0; j