Adapt to new blobstore which supports blobs >4GB

This commit is contained in:
Sebastian Messmer 2015-12-11 00:27:26 +01:00
parent 0959971b93
commit 5319859700
3 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
Version 0.8.4 Version 0.8.4
--------------- ---------------
* Compatibility with 32bit systems * Compatibility with 32bit systems
* Support files larger than 4GB
Version 0.8.3 Version 0.8.3
--------------- ---------------

View File

@ -62,7 +62,7 @@ using boost::chrono::duration_cast;
using boost::chrono::minutes; using boost::chrono::minutes;
using boost::chrono::milliseconds; using boost::chrono::milliseconds;
//TODO Support files > 4GB //TODO Delete a large file in parallel possible? Takes a long time right now...
//TODO Improve parallelity. //TODO Improve parallelity.
//TODO Replace ASSERTs with other error handling when it is not a programming error but an environment influence (e.g. a block is missing) //TODO Replace ASSERTs with other error handling when it is not a programming error but an environment influence (e.g. a block is missing)
//TODO Performance difference when setting compiler parameter -maes for scrypt? //TODO Performance difference when setting compiler parameter -maes for scrypt?

View File

@ -124,7 +124,7 @@ void DirBlob::statChild(const Key &key, struct ::stat *result) const {
result->st_mtime = result->st_ctime = result->st_atime = 0; result->st_mtime = result->st_ctime = result->st_atime = 0;
result->st_size = _getLstatSize(key); result->st_size = _getLstatSize(key);
//TODO Move ceilDivision to general utils which can be used by cryfs as well //TODO Move ceilDivision to general utils which can be used by cryfs as well
result->st_blocks = blobstore::onblocks::utils::ceilDivision(result->st_size, 512); result->st_blocks = blobstore::onblocks::utils::ceilDivision(result->st_size, (off_t)512);
result->st_blksize = CryDevice::BLOCKSIZE_BYTES; //TODO FsBlobStore::BLOCKSIZE_BYTES would be cleaner result->st_blksize = CryDevice::BLOCKSIZE_BYTES; //TODO FsBlobStore::BLOCKSIZE_BYTES would be cleaner
} }