Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[xrdcp] Legacy checksum options work as desired, but not as expected #304

Closed
cshimmin opened this issue Nov 23, 2015 · 2 comments
Closed
Assignees

Comments

@cshimmin
Copy link

Hi,
I'm using the xrdcp client v4.2.3. According to the man page, the legacy checksum options are "equivalent" to using --cksum:

--adler
            equivalent to "--cksum adler32:print".
[...]
-md5
            equivalent to "--cksum md5:print".

(minor aside: note that the man page has a typo, the CLI accepts -adler not --adler)

However, this is not true. If try to use --cksum with the --recursive option, I get the following result:

xrdcp -p --cksum adler32:print --recursive some_directory root://my-server//some/other/directory/
xrdcp: Checksum with fixed value conflicts with '--recursive'.

whereas the following works, in that the checksum is printed after each file, even though it is running in recursive mode:

xrdcp -p -adler --recursive some_directory root://my-server//some/other/directory/
[[ ... its working! ]]

I'm thinking that maybe in the first case the error is falsely triggering on --cksum and assuming there is a "fixed value", even though :print was specified?

@simonmichal
Copy link
Contributor

Hi,
Thanks for reporting this issue.

I had a brief look at the code and it seems that -adler is equivalent to --cksum adler32 rather than --cksum adler32:print

Anyway, --cksum adler32:print should work also with -r option

@simonmichal simonmichal self-assigned this Nov 24, 2015
@simonmichal
Copy link
Contributor

Actually -adler is equivalent to --cksum adler32:source which is not mentioned in the man pages, I have to investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants