Skip to content

Commit

Permalink
show cow enable status in /kb cow-info
Browse files Browse the repository at this point in the history
  • Loading branch information
keuin committed Nov 17, 2024
1 parent 68aaa70 commit 1cb5cee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/keuin/kbackupfabric/ui/KBCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -140,6 +141,7 @@ public static int list(CommandContext<ServerCommandSource> context) {
public static int cowInfo(CommandContext<ServerCommandSource> 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");
}
Expand Down

0 comments on commit 1cb5cee

Please sign in to comment.