-
- Downloads
Implement RAO at the drive level #57
This commit adds the feature of querying the drive for the
Recommended Access Order (RAO) of a series of files and adds
a test file for this feature.
Changes of this commit:
* Extend the DriveInterface with a virtual method queryRAO
which takes as parameter the name of the file containing a set
of files for which the RAO is requested. The line format of this
file is the following:
FILE_ID:BLOCK_START:BLOCK_END
* Extend DriveGeneric class with the implementation of the
method queryRAO, along with a few other auxiliary methods; some
key auxiliary methods are getLimitUDS, generateRAO, receiveRAO
* Add method queryRAO in object FakeDrive returning Exception:
Not Implemented
* Add auxiliary constants and structures in a new 'RAO' namespace
* Add test file: BasicReadWriteTest.cpp which can perform 3 tests
according to the setting of variable 'test'
1. BLOCK_TEST - basic read / write of blocks
2. FILE_TEST - writes a series of CASTOR files and reads
a random one
3. RAO_TEST - performs a RAO query for a series of files
given in the filename specified in argv[1]. The file format should
respect the above mentioned order.
Signed-off-by:
Cristina Moraru <cristina-gabriela.moraru@cern.ch>
Showing
- tapeserver/castor/tape/tapeserver/SCSI/Constants.hpp 7 additions, 0 deletionstapeserver/castor/tape/tapeserver/SCSI/Constants.hpp
- tapeserver/castor/tape/tapeserver/SCSI/Structures.hpp 143 additions, 0 deletionstapeserver/castor/tape/tapeserver/SCSI/Structures.hpp
- tapeserver/castor/tape/tapeserver/drive/DriveGeneric.cpp 153 additions, 0 deletionstapeserver/castor/tape/tapeserver/drive/DriveGeneric.cpp
- tapeserver/castor/tape/tapeserver/drive/DriveGeneric.hpp 30 additions, 0 deletionstapeserver/castor/tape/tapeserver/drive/DriveGeneric.hpp
- tapeserver/castor/tape/tapeserver/drive/DriveInterface.hpp 2 additions, 0 deletionstapeserver/castor/tape/tapeserver/drive/DriveInterface.hpp
- tapeserver/castor/tape/tapeserver/drive/FakeDrive.cpp 4 additions, 0 deletionstapeserver/castor/tape/tapeserver/drive/FakeDrive.cpp
- tapeserver/castor/tape/tapeserver/drive/FakeDrive.hpp 1 addition, 0 deletionstapeserver/castor/tape/tapeserver/drive/FakeDrive.hpp
- tapeserver/castor/tape/tapeserver/file/BasicReadWriteTest.cpp 251 additions, 0 deletions...server/castor/tape/tapeserver/file/BasicReadWriteTest.cpp
- tapeserver/castor/tape/tapeserver/file/CMakeLists.txt 20 additions, 0 deletionstapeserver/castor/tape/tapeserver/file/CMakeLists.txt
Loading
Please register or sign in to comment