From 8ab052d20946a29089de0549a14450a015523ed4 Mon Sep 17 00:00:00 2001 From: Michal Rakowski Date: Thu, 16 Dec 2021 22:33:45 +0100 Subject: [PATCH] Add append only/immutable info in the `show storage` output TODO: maybe per-volume info also could be added --- bacula/src/stored/status.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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) -- 2.47.3