From: Eric Bollengier Date: Tue, 20 Oct 2009 13:08:13 +0000 (+0000) Subject: Add .volstatus command X-Git-Tag: Release-5.0.0~282^2~11^2^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=02b6ab2787a62fdd7da688d183a777b8d4cc7292;p=bacula%2Fbacula Add .volstatus command --- diff --git a/bacula/src/dird/ua_dotcmds.c b/bacula/src/dird/ua_dotcmds.c index b6ae1c38b9..a0cd3e2fee 100644 --- a/bacula/src/dird/ua_dotcmds.c +++ b/bacula/src/dird/ua_dotcmds.c @@ -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 */