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

Python interface does not expose the Prepare::Evict flag #1322

Closed
esindril opened this issue Nov 9, 2020 · 0 comments
Closed

Python interface does not expose the Prepare::Evict flag #1322

esindril opened this issue Nov 9, 2020 · 0 comments

Comments

@esindril
Copy link
Contributor

esindril commented Nov 9, 2020

The prepare evict flag used for tape backends (e.g CTA) is not exposed in the Python interface:
https://github.com/xrootd/xrootd/blob/master/bindings/python/libs/client/flags.py#L87
This is defined in the C++ part here:
https://github.com/xrootd/xrootd/blob/master/src/XrdCl/XrdClFileSystem.hh#L185

Note that the value of kXR_evict is 0x0100000000 which can not be stored in a b (int) [unsigned char] when doing the parsin from the python bindings:
https://github.com/xrootd/xrootd/blob/master/bindings/python/src/PyXRootDFileSystem.cc#L618

So besides it not being defined in the enum, I could not pass it manually from the Python bindings since this then throws and OverflowError exception.

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

1 participant