mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 15:49:23 +00:00
New testload grub-fstest command
This commit is contained in:
1 parent
a5edbcb3a1
commit
77ba5392d0
2 files changed
+11
-1
No files matched your search
+10
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user