]> git.sur5r.net Git - bacula/bacula/commitdiff
Add .volstatus command
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 20 Oct 2009 13:08:13 +0000 (13:08 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 20 Oct 2009 13:08:13 +0000 (13:08 +0000)
bacula/src/dird/ua_dotcmds.c

index b6ae1c38b9d29a714b6bcc514c5ce5866ee3d633..a0cd3e2fee3d8c9c2010a630a7d768535e623594 100644 (file)
@@ -94,6 +94,7 @@ static struct cmdstruct commands[] = { /* help */  /* can be used in runscript *
  { NT_(".sql"),        sql_cmd,          NULL,       false},
  { NT_(".status"),     dot_status_cmd,   NULL,       false},
  { NT_(".storage"),    storagecmd,       NULL,       true},
+ { NT_(".volstatus"),  volstatuscmd,     NULL,       true},
  { NT_(".bvfs_lsdirs"), dot_bvfs_lsdirs, NULL,       true},
  { NT_(".bvfs_lsfiles"),dot_bvfs_lsfiles,NULL,       true},
  { NT_(".bvfs_update"), dot_bvfs_update, NULL,       true},
@@ -701,6 +702,18 @@ static bool levelscmd(UAContext *ua, const char *cmd)
    return true;
 }
 
+static bool volstatuscmd(UAContext *ua, const char *cmd)
+{
+   ua->send_msg("Append\n");
+   ua->send_msg("Full\n");
+   ua->send_msg("Used\n");
+   ua->send_msg("Recycle\n");
+   ua->send_msg("Purged\n");
+   ua->send_msg("Cleaning\n");
+   ua->send_msg("Error\n");
+   return true;
+}
+
 /*
  * Return default values for a job
  */