diff --git a/src/main/java/caosdb/server/jobs/core/CheckFileStorageConsistency.java b/src/main/java/caosdb/server/jobs/core/CheckFileStorageConsistency.java index 9cee3f8330ac4432ec271084c0e6d578427f6744..b74a0319c981753a52d5fb962f9bf3add3347ba1 100644 --- a/src/main/java/caosdb/server/jobs/core/CheckFileStorageConsistency.java +++ b/src/main/java/caosdb/server/jobs/core/CheckFileStorageConsistency.java @@ -50,7 +50,12 @@ import org.jdom2.output.XMLOutputter; loadOnDefault = false, transaction = Retrieve.class, description = - "Invokes a consistency test of the file storage. The value is a string with a timeout (prefixed -t), a filesystem location which children are checked recursively, or a test case (prefixed -c)which can be run if the server is in debug mode.") + "Invokes a consistency test of the file storage. The value can have any of:\n" + + " - a string with a timeout in ms (prefixed -t): `-t 120000`\n" + + " - a test case which can be run if the server is in debug mode (prefixed\n" + + " -c)\n" + + " - a filesystem location whose children are checked recursively,\n" + + " relative to the caosroot dilesystem location.\n") public class CheckFileStorageConsistency extends FlagJob { public static final Pattern parseArgs = diff --git a/src/main/java/caosdb/server/utils/FileStorageConsistencyCheck.java b/src/main/java/caosdb/server/utils/FileStorageConsistencyCheck.java index 01157a4dafc99772b5c880d56b945c6c8294a11d..c750bb4e6f4de884cf39289d82df79138206f057 100644 --- a/src/main/java/caosdb/server/utils/FileStorageConsistencyCheck.java +++ b/src/main/java/caosdb/server/utils/FileStorageConsistencyCheck.java @@ -82,6 +82,7 @@ public class FileStorageConsistencyCheck extends Thread } final String path = iterator.next(); + // FIXME this prevents all files with ".thumbnail" from being checked. if (path.contains(".thumbnail")) { continue; }