]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
New testload grub-fstest command
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 23 Jun 2011 06:45:12 +0000 (08:45 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 23 Jun 2011 06:45:12 +0000 (08:45 +0200)
Makefile.util.def
util/grub-fstest.c

index 829b16facabf0f51096d5e7f4aa6dfd19030c239..1fcd9465e59578836b95d9999f09641a80596dfe 100644 (file)
@@ -34,6 +34,7 @@ library = {
   common_nodist = grub_script.tab.h;
 
   common = grub-core/commands/blocklist.c;
+  common = grub-core/commands/testload.c;
   common = grub-core/commands/extcmd.c;
   common = grub-core/commands/ls.c;
   common = grub-core/disk/dmraid_nvidia.c;
index f253a96f61cd1820f63df4c6497f37698a3ebeb2..c2c8b1148dd94f1ce586abed0e5cf49e3308cc12 100644 (file)
@@ -61,7 +61,8 @@ enum {
   CMD_CMP,
   CMD_HEX,
   CMD_CRC,
-  CMD_BLOCKLIST
+  CMD_BLOCKLIST,
+  CMD_TESTLOAD
 };
 
 #define BUF_SIZE  32256
@@ -359,6 +360,9 @@ fstest (int n, char **args)
     case CMD_BLOCKLIST:
       execute_command ("blocklist", n, args);
       grub_printf ("\n");
+    case CMD_TESTLOAD:
+      execute_command ("testload", n, args);
+      grub_printf ("\n");
     }
     
   for (i = 0; i < num_disks; i++)
@@ -520,6 +524,11 @@ argp_parser (int key, char *arg, struct argp_state *state)
          cmd = CMD_BLOCKLIST;
           nparm = 1;
        }
+      else if (!grub_strcmp (arg, "testload"))
+       {
+         cmd = CMD_TESTLOAD;
+          nparm = 1;
+       }
       else
        {
          fprintf (stderr, _("Invalid command %s.\n"), arg);