From: Michal Rakowski Date: Thu, 16 Dec 2021 21:33:45 +0000 (+0100) Subject: Add append only/immutable info in the `show storage` output X-Git-Tag: Beta-15.0.0~714 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ab052d20946a29089de0549a14450a015523ed4;p=thirdparty%2Fbacula.git Add append only/immutable info in the `show storage` output TODO: maybe per-volume info also could be added --- diff --git a/bacula/src/stored/status.c b/bacula/src/stored/status.c index 78ec0d313..bc3b39c48 100644 --- a/bacula/src/stored/status.c +++ b/bacula/src/stored/status.c @@ -643,6 +643,22 @@ static void list_status_header(STATUS_PKT *sp) ((rblist *)res_head[R_AUTOCHANGER-r_first]->res_list)->size()); sendit(msg, len, sp); list_plugins(sp); + + bool append_only, immutable; +#if defined(HAVE_APPEND_FL) + append_only = true; +#else + append_only = false; +#endif // HAVE_APPEND_FL + +#if defined(HAVE_IMMUTABLE_FL) + immutable = true; +#else + immutable = false; +#endif // HAVE_IMMUTABLE_FL + len = Mmsg(msg, " Capabilities needed: %d append_only support: %d immutable support: %d\n", + got_caps_needed, append_only, immutable); + sendit(msg, len, sp); } static void send_blocked_status(DEVICE *dev, STATUS_PKT *sp)