]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/user-record-show.c
user-record: add rebalanceWeight field
[thirdparty/systemd.git] / src / shared / user-record-show.c
index 17502845af951a77a0dffbbb457b2a97575ecdfa..5335e64070101a2f65a120b07d78003bbbb97c2a 100644 (file)
@@ -447,6 +447,16 @@ void user_record_show(UserRecord *hr, bool show_full_group_info) {
         if (hr->auto_resize_mode >= 0)
                 printf(" Auto Resize: %s\n", auto_resize_mode_to_string(user_record_auto_resize_mode(hr)));
 
+        if (hr->rebalance_weight != REBALANCE_WEIGHT_UNSET) {
+                uint64_t rb;
+
+                rb = user_record_rebalance_weight(hr);
+                if (rb == REBALANCE_WEIGHT_OFF)
+                        printf("   Rebalance: off\n");
+                else
+                        printf("   Rebalance: weight %" PRIu64 "\n", rb);
+        }
+
         if (!strv_isempty(hr->ssh_authorized_keys))
                 printf("SSH Pub. Key: %zu\n", strv_length(hr->ssh_authorized_keys));