From 42cc3d4ad9ea9a244aa66e2a462a664496814ea6 Mon Sep 17 00:00:00 2001 From: Tigran Mkrtchyan Date: Tue, 10 Oct 2023 11:54:49 +0200 Subject: [PATCH] pool: cms info should display configured checkums Motivation: The checksum module info commend doesn't include the configured digest algorithms, which makes the configuration not obvious. Modification: Update cms info to provide enabled digests. Result: better overview of checksum configuration Acked-by: Lea Morschel Target: master Require-book: no Require-notes: yes --- .../main/java/org/dcache/pool/classic/ChecksumModuleV1.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/dcache/src/main/java/org/dcache/pool/classic/ChecksumModuleV1.java b/modules/dcache/src/main/java/org/dcache/pool/classic/ChecksumModuleV1.java index 006fc09b627..d6b34830963 100755 --- a/modules/dcache/src/main/java/org/dcache/pool/classic/ChecksumModuleV1.java +++ b/modules/dcache/src/main/java/org/dcache/pool/classic/ChecksumModuleV1.java @@ -1,6 +1,6 @@ /* dCache - http://www.dcache.org/ * - * Copyright (C) 2007-2022 Deutsches Elektronen-Synchrotron + * Copyright (C) 2007-2023 Deutsches Elektronen-Synchrotron * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -226,6 +226,7 @@ private synchronized String getPolicies() { StringBuilder sb = new StringBuilder(); sb.append(" Policies :\n"). + append(" enabled digests: " ).append(defaultChecksumTypes()).append("\n"). append(" on read : ").append(getPolicy(ON_READ)).append("\n"). append(" on write : ").append(getPolicy(ON_WRITE)).append("\n"). append(" on flush : ").append(getPolicy(ON_FLUSH)).append("\n").