From d6d9cc6ea158ef3b2525742ee3f80c4a3be8b049 Mon Sep 17 00:00:00 2001 From: Phillip Susi Date: Wed, 31 Mar 2010 15:52:08 +0200 Subject: [PATCH] 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 --- partx/partx.c | 3 +++ 1 file changed, 3 insertions(+) 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