From: Eric Bollengier Date: Mon, 1 Feb 2010 17:05:33 +0000 (+0100) Subject: Disable action_on_purge message in Storage X-Git-Tag: Release-5.2.1~1817 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5c7e343185086399fc2f326d2b00588a93cd9e49;p=bacula%2Fbacula Disable action_on_purge message in Storage --- diff --git a/bacula/src/stored/dircmd.c b/bacula/src/stored/dircmd.c index 61e51fae2a..8cf6ac8d09 100644 --- a/bacula/src/stored/dircmd.c +++ b/bacula/src/stored/dircmd.c @@ -83,7 +83,7 @@ static bool setdebug_cmd(JCR *jcr); static bool cancel_cmd(JCR *cjcr); static bool mount_cmd(JCR *jcr); static bool unmount_cmd(JCR *jcr); -static bool action_on_purge_cmd(JCR *jcr); +//static bool action_on_purge_cmd(JCR *jcr); static bool bootstrap_cmd(JCR *jcr); static bool changer_cmd(JCR *sjcr); static bool do_label(JCR *jcr, int relabel); @@ -119,7 +119,7 @@ static struct s_cmds cmds[] = { {"status", status_cmd, 1}, {".status", qstatus_cmd, 1}, {"unmount", unmount_cmd, 0}, - {"action_on_purge", action_on_purge_cmd, 0}, +// {"action_on_purge", action_on_purge_cmd, 0}, {"use storage=", use_cmd, 0}, {"run", run_cmd, 0}, // {"query", query_cmd, 0}, @@ -875,6 +875,7 @@ static bool unmount_cmd(JCR *jcr) return true; } +#if 0 /* * The truncate command will recycle a volume. The director can call this * after purging a volume so that disk space will not be wasted. Only useful @@ -887,11 +888,6 @@ static bool action_on_purge_cmd(JCR *jcr) { BSOCK *dir = jcr->dir_bsock; - /* Currently disabled */ - dir->fsend(_("3916 Feature action_on_purge currently disabled\n")); - goto done; - -#if 0 char devname[MAX_NAME_LENGTH]; char volumename[MAX_NAME_LENGTH]; int action; @@ -912,12 +908,12 @@ static bool action_on_purge_cmd(JCR *jcr) } /* ... */ -#endif done: dir->signal(BNET_EOD); return true; } +#endif /* * Release command from Director. This rewinds the device and if