API Docs¶
XRootD file storage interface.
-
class
invenio_xrootd.storage.
EOSFileStorage
(*args, **kwargs)[source]¶ File storage for CERN EOS via XRootD.
EOS needs to know the file size upfront in order to allocate your file to disk servers with enough available space. This is done by providing
eos.bookingsize=xyz
in the root URL.This file storage module takes care of setting the booking size for initialize and save operations.
If you use this file storage class, it also means that your REST API clients must provide the file size upfront.
Initialize storage.
-
initialize
(*args, **kwargs)[source]¶ Initialize file of given size.
Set the
eos.bookingsize
variable in the root URL, to ensure EOS allocates the file to a disk server with enough space.
-
-
class
invenio_xrootd.storage.
XRootDFileStorage
(*args, **kwargs)[source]¶ File system storage using XRootD for accessing files.
XRootD v3.x are only capable of reporting adler32 checksums, even though that the storage system will report e.g. a MD5 checksums. If this is the case, set the configuration variable
XROOTD_CHECKSUM_ALOG
to overwrite the alogrithm name reported by the XRootD server.Initialize file storage object.