Skip to contentSkip to conversation

Highpoint-Tech Plugin 0.0.1 for EVMS 2.3.0

ANNOUNCE Wilfried Weissmann 1 participant 1 message Mar 14, 2004

lore
Share & tools
lore
#0 lore raw

hi,

...so here comes 0.0.1! i have changed the device manager id to 3 because of Kevin Corry suggested this and also added more pci-ids. you can override the id scan be setting "biosraid.ignore_pci_ids" to "1". but you still need the proper raid signatures on your disks to get a raid volume. basic read/write tests on a fat partition worked fine, but i cannot do more right now. the fan of my graphiccard is broken and i replaced the cooler with cpu heatsink and attached it with a string to the board. looks pretty crude!

Changelog:
* use new list API
* migrate to evms 2.3.0
* support for HPT 370, 370A, 302, 371, 375, 372N chipsets
* remove disk if it cannot be added the discover() output_list
* make all global variables static
* add boolean "biosraid.ignore_pci_ids" config option to optionally ignore the pci vendor and device ids of the ide controllers
* changed EVMS_DEVICE_MANAGER ID to 3

TODOs:
* access to the last sector (kernel 2.6 only)
* add mode raid levels
* create "whole disk" volume (currently only under .nodes)
* use sysfs for scanning
* more modular design to make it easier to add code for other controllers
* more testing

the next thing that i want to do is to implement the "whole disk" volume. it might be handy to have such a device for the grub bootloader and stuff. this also is a start for the last sector problem fix. the problem is that i should protect the sector #9 which contains the volume configuration. i do not think that it is possible to only write protect that sector but this would be a nice thing to do. the patch that applies against evms 2.3.0 is attached...

greetings,
wilfried

aclocal.m4 +14 -1
diff -Nurp evms-2.3.0/aclocal.m4 evms-2.3.0-bios/aclocal.m4
@@ -126,11 +126,16 @@ AC_ARG_ENABLE([rsct],
 			     [Disable the RSCT plugin]),
 	      [build_rsct="$enableval"],
 	      [build_rsct="yes"])
+ AC_ARG_ENABLE([bios],
+ 	      AC_HELP_STRING([--disable-bios],
+ 			     [Disable the BIOS plugin]),
+ 	      [build_bios="$enableval"],
+ 	      [build_bios="yes"])
 
 # Create the list of plugin directories to build. This is where each plugin
 # can specify its dependencies.
 plugin_dirs=""
-plugin_distdirs="bbr bbr_seg bsd csm disk dos drivelink ext2 gpt ha jfs lvm mac md multipath ogfs reiser replace rsct s390 snapshot swap xfs"
+plugin_distdirs="bbr bbr_seg bsd csm disk dos drivelink ext2 gpt ha jfs lvm mac md multipath ogfs reiser replace rsct s390 snapshot swap xfs bios"
 
 # BBR
 if test "$build_bbr" = "no"; then
@@ -340,6 +345,14 @@ else
 	AC_MSG_NOTICE([     building xfs])
 fi
 
+# bios
+if test "$build_bios" = "no"; then
+	AC_MSG_NOTICE([     not building bios ... disabled by user])
+else
+	plugin_dirs="$plugin_dirs bios"
+	AC_MSG_NOTICE([     building bios])
+fi
+
 AC_SUBST(plugin_dirs)
 AC_SUBST(plugin_distdirs)
 ])
configure +21 -2
diff -Nurp evms-2.3.0/configure evms-2.3.0-bios/configure
@@ -865,6 +865,7 @@ Optional Features:
   --disable-ogfs          Disable the OpenGFS FSIM
   --disable-reiser        Disable the ReiserFS FSIM
   --disable-xfs           Disable the XFS FSIM
+  --disable-bios          Disable the BIOS plugin
   --disable-swap          Disable the Swap FSIM
   --disable-replace       Disable the Replace plugin
   --disable-ha            Disable the HA plugin
@@ -10319,6 +10320,13 @@ if test "${enable_xfs+set}" = set; then
 else
   build_xfs="yes"
 fi;
+# Check whether --enable-bios or --disable-bios was given.
+if test "${enable_bios+set}" = set; then
+  enableval="$enable_bios"
+  build_bios="$enableval"
+else
+  build_bios="yes"
+fi;
 # Check whether --enable-swap or --disable-swap was given.
 if test "${enable_swap+set}" = set; then
   enableval="$enable_swap"
@@ -10351,7 +10359,7 @@ fi;
 # Create the list of plugin directories to build. This is where each plugin
 # can specify its dependencies.
 plugin_dirs=""
-plugin_distdirs="bbr bbr_seg bsd csm disk dos drivelink ext2 gpt ha jfs lvm mac md multipath ogfs reiser replace rsct s390 snapshot swap xfs"
+plugin_distdirs="bbr bbr_seg bsd csm disk dos drivelink ext2 gpt ha jfs lvm mac md multipath ogfs reiser replace rsct s390 snapshot swap xfs bios"
 
 # BBR
 if test "$build_bbr" = "no"; then
@@ -10619,6 +10627,16 @@ else
 echo "$as_me:      building xfs" >&6;}
 fi
 
+# BIOS
+if test "$build_bios" = "no"; then
+	{ echo "$as_me:$LINENO:      not building bios ... disabled by user" >&5
+echo "$as_me:      not building bios ... disabled by user" >&6;}
+else
+	plugin_dirs="$plugin_dirs bios"
+	{ echo "$as_me:$LINENO:      building bios" >&5
+echo "$as_me:      building bios" >&6;}
+fi
+
 
 
 
@@ -10724,7 +10742,7 @@ fi
 
 
 
-                                                                                                                                                                                                                                                                                                                                                                                  ac_config_files="$ac_config_files make.rules Makefile engine/Makefile engine/worker/Makefile plugins/Makefile plugins/bbr/Makefile plugins/bbr_seg/Makefile plugins/bsd/Makefile plugins/csm/Makefile plugins/disk/Makefile plugins/dos/Makefile plugins/drivelink/Makefile plugins/ext2/Makefile plugins/gpt/Makefile plugins/ha/Makefile plugins/jfs/Makefile plugins/lvm/Makefile plugins/mac/Makefile plugins/md/Makefile plugins/multipath/Makefile plugins/ogfs/Makefile plugins/reiser/Makefile plugins/replace/Makefile plugins/rsct/Makefile plugins/s390/Makefile plugins/snapshot/Makefile plugins/swap/Makefile plugins/xfs/Makefile ui/Makefile ui/cli/Makefile ui/gtk/Makefile ui/ncurses/Makefile ui/utils/Makefile include/Makefile doc/Makefile doc/man/Makefile tests/Makefile"
+                                                                                                                                                                                                                                                                                                                                                                                  ac_config_files="$ac_config_files make.rules Makefile engine/Makefile engine/worker/Makefile plugins/Makefile plugins/bbr/Makefile plugins/bbr_seg/Makefile plugins/bsd/Makefile plugins/csm/Makefile plugins/disk/Makefile plugins/dos/Makefile plugins/drivelink/Makefile plugins/ext2/Makefile plugins/gpt/Makefile plugins/ha/Makefile plugins/jfs/Makefile plugins/lvm/Makefile plugins/mac/Makefile plugins/md/Makefile plugins/multipath/Makefile plugins/ogfs/Makefile plugins/reiser/Makefile plugins/replace/Makefile plugins/rsct/Makefile plugins/s390/Makefile plugins/snapshot/Makefile plugins/swap/Makefile plugins/xfs/Makefile plugins/bios/Makefile ui/Makefile ui/cli/Makefile ui/gtk/Makefile ui/ncurses/Makefile ui/utils/Makefile include/Makefile doc/Makefile doc/man/Makefile tests/Makefile"
 
 
 cat >confcache <<\_ACEOF
@@ -11305,6 +11323,7 @@ do
   "plugins/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/snapshot/Makefile" ;;
   "plugins/swap/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/swap/Makefile" ;;
   "plugins/xfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/xfs/Makefile" ;;
+  "plugins/bios/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/bios/Makefile" ;;
   "ui/Makefile" ) CONFIG_FILES="$CONFIG_FILES ui/Makefile" ;;
   "ui/cli/Makefile" ) CONFIG_FILES="$CONFIG_FILES ui/cli/Makefile" ;;
   "ui/gtk/Makefile" ) CONFIG_FILES="$CONFIG_FILES ui/gtk/Makefile" ;;
plugins/bios/Makefile.in +52 -0

52 lines not on this page · raw message

plugins/bios/bios.c +1323 -0

1,323 lines not on this page · raw message

plugins/bios/bios.h +188 -0

188 lines not on this page · raw message