Merge branch 'master' of github.com:jthornber/thin-provisioning-tools

This commit is contained in:
Joe Thornber 2017-12-12 15:28:17 +00:00
commit d6a5ced23b
4 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
v0.7.5
======
- Fix a bug that stopped cache_restore working with metadata version 2.
v0.7.4
======

View File

@ -1 +1 @@
0.7.4
0.7.5

View File

@ -151,6 +151,8 @@ file_utils::zero_superblock(std::string const &path)
memset(buffer, 0, SUPERBLOCK_SIZE);
if (::write(fd, buffer, SUPERBLOCK_SIZE) != SUPERBLOCK_SIZE)
throw runtime_error("couldn't zero superblock");
::close(fd);
}
//----------------------------------------------------------------

View File

@ -128,6 +128,10 @@ void
metadata::commit_mappings()
{
sb_.mapping_root = mappings_->get_root();
if (sb_.version >= 2) {
dirty_bits_->flush();
sb_.dirty_root = dirty_bits_->get_root();
}
}
void