- May 09, 2018
-
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
The metadataDB class was using integer to return errors. New exceptions classes has been introduced in order to be used as error propagation method. In this commit the MetadataDB::get function has been modified in order to make use of exceptions.
-
Tommaso Tocci authored
-
Marc Vef authored
move file map into context See merge request zdvresearch_bsc/adafs!65
-
- May 08, 2018
-
-
Marc Vef authored
Multiple logs handling See merge request zdvresearch_bsc/adafs!59
-
Tommaso Tocci authored
-
Marc Vef authored
Use relative paths See merge request zdvresearch_bsc/adafs!58 Signed-off-by: Marc Vef <vef@uni-mainz.de>
-
Tommaso Tocci authored
During daemon setup, multiple spdloggers are configured. Using spdlog::get("<LOGNAME>") is possible to retrieve those and use them in other part of the code.
-
Tommaso Tocci authored
Paths are now made relative to the mountdir at client side. The new relativize_path fucntion in the PreloadContext is used to check if a path is relative to the pseudo-mount directory and to make it relative
-
Tommaso Tocci authored
-
Tommaso Tocci authored
The new PreloadContext class is used as singleton to store the general context information of the interception library. The plan is to move global accessed variables into this sigleton. At the moment just the logger object has been moved into it.
-
- May 02, 2018
-
-
Marc Vef authored
Fix update size See merge request zdvresearch_bsc/adafs!57
-
Tommaso Tocci authored
-
Tommaso Tocci authored
Metadata::serialize() was appending result instead of ovewriting it. The new approach is to make serialize function return a new constructed string instead of accepting a string reference to fill.
-
Marc Vef authored
bump RocksDB version to `5.12.4` See merge request zdvresearch_bsc/adafs!56
-
Tommaso Tocci authored
-
- Apr 30, 2018
-
-
Marc Vef authored
Daemon cleanup includes See merge request zdvresearch_bsc/adafs!54 Signed-off-by: Marc Vef <vef@uni-mainz.de>
-
Marc Vef authored
Refactor stat See merge request zdvresearch_bsc/adafs!55 Signed-off-by: Marc Vef <vef@uni-mainz.de>
-
- Apr 29, 2018
-
-
Tommaso Tocci authored
-
Tommaso Tocci authored
The rpc stat handler was the only one calling directly a db function, bypassing the intermediate adafs_ops interface. A new function on the adafs_ops interface has been added to be used by the rpc stat handler.
-
Tommaso Tocci authored
-
- Apr 27, 2018
-
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Marc Vef authored
Cmake fixes See merge request zdvresearch_bsc/adafs!53 Signed-off-by: Marc Vef <vef@uni-mainz.de>
-
Tommaso Tocci authored
gflags is needed to compile rocksDB but not to link with it
-
Tommaso Tocci authored
Setting the properly the JMALLOC_LIBRARIES variable into the find module made possible to avoid the conditonal inclusion of the library
-
Marc Vef authored
Atomic operations See merge request zdvresearch_bsc/adafs!52 Signed-off-by: Marc Vef <vef@uni-mainz.de>
-
-
-
-
Marc Vef authored
-
-
-
The creation was performed through a simple rocksDB PUT operation. Multiple creation attempts on the same file would override the previously inserted metadata, in particular the file size. The creation is now handled with a new MergeOperand. Now a creation attampt on an already existing file will be converted in a NOP.
-
The new MergeOperand base class can be subclassed in order to implement new merge-operands with their specific parameters and semantics.
-
The UpdateSizeOperand has been renamed IncreaseSizeOperand. The operand was using three parameters size,offset and append_flag. Since we only need the (size + offset) sum in order to apply the operand, the offset field has been removed.
-
In order to make the file-size-update operation atomic it is necessary to make the following action atomic: - READ old size value from rocksDB - COMPUTE new size based on the write operation - WRITE back the new value rocksDB We use rocksDB merge operation [1] in order to implement the atomic update. [1]: https://github.com/facebook/rocksdb/wiki/Merge-Operator
-
-