From 1cb5ceef651b9c1df97c84fcf99e5bee1566a6cb Mon Sep 17 00:00:00 2001 From: Keuin Date: Sun, 17 Nov 2024 20:42:05 +0800 Subject: [PATCH] show cow enable status in `/kb cow-info` --- src/main/java/com/keuin/kbackupfabric/ui/KBCommands.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/keuin/kbackupfabric/ui/KBCommands.java b/src/main/java/com/keuin/kbackupfabric/ui/KBCommands.java index 0dff99a..a60801d 100644 --- a/src/main/java/com/keuin/kbackupfabric/ui/KBCommands.java +++ b/src/main/java/com/keuin/kbackupfabric/ui/KBCommands.java @@ -4,6 +4,7 @@ import com.keuin.kbackupfabric.backup.name.IncrementalBackupFileNameEncoder; import com.keuin.kbackupfabric.backup.name.PrimitiveBackupFileNameEncoder; import com.keuin.kbackupfabric.backup.suggestion.BackupNameSuggestionProvider; +import com.keuin.kbackupfabric.config.KBackupConfig; import com.keuin.kbackupfabric.metadata.MetadataHolder; import com.keuin.kbackupfabric.operation.BackupOperation; import com.keuin.kbackupfabric.operation.DeleteOperation; @@ -140,6 +141,7 @@ public static int list(CommandContext context) { public static int cowInfo(CommandContext context) { try { msgInfo(context, "KBackup-cow library version: " + FileCowCopier.getVersion()); + msgInfo(context, "CoW enabled: " + KBackupConfig.getInstance().getIncbakCow()); } catch (Exception | UnsatisfiedLinkError ignored) { msgErr(context, "KBackup-cow library is not loaded"); }