Revision: 2695
http://ipcop.svn.sourceforge.net/ipcop/?rev=2695&view=rev
Author: gespinasse
Date: 2009-04-11 17:02:52 +0000 (Sat, 11 Apr 2009)
Log Message:
-----------
Do not report md devices as with a partition
Borrowed from track #195 ticket
Modified Paths:
--------------
ipcop/trunk/lfs/parted
Added Paths:
-----------
ipcop/trunk/src/patches/parted-1.8.8_no-md-partition.patch
Modified: ipcop/trunk/lfs/parted
===================================================================
--- ipcop/trunk/lfs/parted 2009-04-11 15:56:28 UTC (rev 2694)
+++ ipcop/trunk/lfs/parted 2009-04-11 17:02:52 UTC (rev 2695)
@@ -83,6 +83,7 @@
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && patch -Np1 -i
$(DIR_PATCHES)/$(THISAPP)_sparc-fix-raid.patch
+ cd $(DIR_APP) && patch -Np1 -i
$(DIR_PATCHES)/$(THISAPP)_no-md-partition.patch
# fs support is not used because it is not similary advanced as
e2fsprogs
# it may even been deprecated in futur versions
Added: ipcop/trunk/src/patches/parted-1.8.8_no-md-partition.patch
===================================================================
--- ipcop/trunk/src/patches/parted-1.8.8_no-md-partition.patch
(rev 0)
+++ ipcop/trunk/src/patches/parted-1.8.8_no-md-partition.patch 2009-04-11
17:02:52 UTC (rev 2695)
@@ -0,0 +1,23 @@
+following this advice
+http://parted.alioth.debian.org/cgi-bin/trac.cgi/ticket/195
+exclude md devices from the block list wich have a partition
+
+they are no more reported like they were before
+parted /dev/hda print devices
+/dev/hda (2625MB)
+/dev/hdc (6488MB)
+/dev/md0 (805MB)
+/dev/md1 (1818MB)
+
+parted /dev/md0 print
+Error: Can't have a partition outside the disk!
+--- parted-1.8.8/libparted/arch/linux.c.old 2007-08-09 20:47:57.000000000
+0200
++++ parted-1.8.8/libparted/arch/linux.c 2009-04-11 18:25:32.000000000
+0200
+@@ -1865,6 +1865,7 @@
+ { "..", sizeof ("..") - 1 },
+ { "dm-", sizeof ("dm-") - 1 },
+ { "loop", sizeof ("loop") - 1 },
++ { "md", sizeof ("md") - 1 },
+ { "ram", sizeof ("ram") - 1 },
+ { 0, 0 },
+ };
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn