Allow to submit multiple files for verification
Currently, the utility cta-verify-file
only allows for submition of one individual file from tape:
[root@ctaproductionfrontend02 ~]# /usr/bin/cta-verify-file
Usage: cta-verify-file -I/--id <archiveFileID> [-v <vid>] [-i <instance>] [-r.user <user>] [-r.group <group>]
cta-verify-file <archiveFileID> [--vid <id>] [--instance <instance>] [--request.user <user>] [--request.group <group>]
That is slow, when the verification scripts submit tens-of-thousands of files.
Instead the tool can take a filename as a cmd line input, the file should follow the format:
<id>
<id>
<id>
...
<id>
The tool should also allow a list of ids separated by a "," directly in the cli.
The new options would then be:
[root@ctaproductionfrontend02 ~]# /usr/bin/cta-verify-file
Usage: cta-verify-file -I/--id <archiveFileID>,<archiveFileID>...,<archiveFileID> | -F/--filename <filename> [-v <vid>] [-i <instance>] [-r.user <user>] [-r.group <group>]
cta-verify-file <archiveFileID> [--vid <id>] [--instance <instance>] [--request.user <user>] [--request.group <group>]
Edited by Lasse Tjernaes Wardenaer