striped zpool support

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-12-05 21:17:24 +01:00
parent e5c63d9d41
commit fdfde32aa4
3 changed files with 412 additions and 256 deletions

View file

@ -60,6 +60,7 @@ execute_command (char *name, int n, char **args)
#define CMD_HEX 4
#define CMD_CRC 6
#define CMD_BLOCKLIST 7
#define CMD_ZFSINFO 8
#define BUF_SIZE 32256
@ -309,6 +310,9 @@ fstest (int n, char **args)
case CMD_LS:
execute_command ("ls", n, args);
break;
case CMD_ZFSINFO:
execute_command ("zfsinfo", n, args);
break;
case CMD_CP:
cmd_cp (args[0], args[1]);
break;
@ -454,6 +458,10 @@ argp_parser (int key, char *arg, struct argp_state *state)
{
cmd = CMD_LS;
}
else if (!grub_strcmp (arg, "zfsinfo"))
{
cmd = CMD_ZFSINFO;
}
else if (!grub_strcmp (arg, "cp"))
{
cmd = CMD_CP;