keepsan.c

Go to the documentation of this file.
00001 #include <stdint.h>
00002 #include <stdio.h>
00003 #include <gpxe/settings.h>
00004 #include <gpxe/dhcp.h>
00005 #include <gpxe/init.h>
00006 #include <gpxe/sanboot.h>
00007 #include <usr/autoboot.h>
00008 
00009 struct setting keep_san_setting __setting = {
00010         .name = "keep-san",
00011         .description = "Preserve SAN connection",
00012         .tag = DHCP_EB_KEEP_SAN,
00013         .type = &setting_type_int8,
00014 };
00015 
00016 int keep_san ( void ) {
00017         int keep_san;
00018 
00019         keep_san = fetch_intz_setting ( NULL, &keep_san_setting );
00020         if ( ! keep_san )
00021                 return 0;
00022 
00023         printf ( "Preserving connection to SAN disk\n" );
00024         shutdown_exit_flags |= SHUTDOWN_KEEP_DEVICES;
00025         return 1;
00026 }

Generated on Tue Apr 6 20:00:50 2010 for gPXE by  doxygen 1.5.7.1