]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Add append only/immutable info in the `show storage` output
authorMichal Rakowski <michal.rakowski@baculasystems.com>
Thu, 16 Dec 2021 21:33:45 +0000 (22:33 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:57 +0000 (13:56 +0200)
TODO: maybe per-volume info also could be added

bacula/src/stored/status.c

index 78ec0d31348ca1897ca493acbe0c54713832a8c5..bc3b39c486e1b6d57b051d1128350fb23e16ffd8 100644 (file)
@@ -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)