[parted-devel] [PATCH 08/14] Exclude "md" devices from the block list.

Joel Granados Moreno jgranado at redhat.com
Fri Jun 5 12:14:15 UTC 2009


* libparted/arch/linux.c (_skip_entry) : Add "md" to the entries
  array so all devices of type "/dev/md#" get ignored.
---
 libparted/arch/linux.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index ae0f8fb..66fdd37 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -1994,6 +1994,7 @@ _skip_entry (const char *name)
 		{ ".",		sizeof (".") - 1	},
 		{ "..",		sizeof ("..") - 1	},
 		{ "dm-",	sizeof ("dm-") - 1	},
+		{ "md",		sizeof ("md") - 1	},
 		{ "loop",	sizeof ("loop") - 1	},
 		{ "ram",	sizeof ("ram") - 1	},
 		{ 0, 0 },
-- 
1.6.0.6




More information about the parted-devel mailing list