Joe Thornber
e801cc607b
[block_manager] Hard code block size to 4k.
...
We're never going to use anything other than 4k, and by hard coding it we
avoid making block_manager a template.
2020-04-30 14:30:01 +01:00
Joe Thornber
5b92f410ec
[*_restore] if things go wrong wipe the superblock.
...
So we don't leave the metadata device with partially restored metadata.
2017-09-28 14:39:24 +01:00
Joe Thornber
4da8d19f29
[cache_restore] The metadata version and clean shutdown flags were
...
swapped.
Reveal by failing --omit-clean-shutdown test
2017-08-29 12:33:32 +01:00
Ming-Hung Tsai
b7d418131d
Spin-off syscall-related file operations ( #78 )
...
* [file_utils] spin-off syscall-related file operations
1. Eliminate the potential circular dependency between
persistent-data/block.h and persistent-data/file_utils.h,
if the former one wants to include the latter.
2. Avoid namespace pollution by removing the "using namespace std"
declaration in block.tcc.
3. Correct the header hierarchy: base/xml_utils.h now no longer
depends on the higher-level persistent-data/file_utils.h
* [file_utils] support block files in get_file_length()
2017-04-29 18:51:52 +01:00
Joe Thornber
ba8d5ab5e4
[cache_restore] --debug-override-metadata-version wasn't working
2017-03-01 10:36:34 -05:00
Joe Thornber
05c4b7b400
[cache] a lot of format 2 changes
2016-09-30 11:21:20 -04:00
Joe Thornber
c2fdbad322
Merge branch '2016-07-07-improve-thin-repair-error-message' into v0.7-devel
...
Conflicts:
Makefile.in
VERSION
configure.ac
persistent-data/file_utils.cc
2016-07-11 15:51:30 +01:00
Joe Thornber
4779fb9b80
[various] Improve documentation
...
Output file must be preallocated.
2016-07-11 14:53:03 +01:00
Joe Thornber
767c39cf71
[build] switch to c++11
...
Conflicts:
Makefile.in
chunker/cache_stream.cc
chunker/cache_stream.h
thin-provisioning/thin_archive.cc
thin-provisioning/thin_show_duplicates.cc
unit-tests/Makefile.in
2016-02-16 16:45:44 +00:00
Joe Thornber
c93e728ef4
[base] introduce a command type that gets registered with the app
2016-01-08 12:51:52 +00:00
Joe Thornber
6f8b7e2914
[all] Build a single executable
2014-08-27 14:01:31 +01:00
Joe Thornber
828f654800
[*_restore] Add progress bar to cache_restore and era_restore.
...
A lot of refactoring common code between the restore tools.
2014-08-26 13:05:21 +01:00
Joe Thornber
d517684c95
Initial code drop for merging block_cache
2014-07-22 16:41:39 +01:00
Joe Thornber
31ce9a03fa
cache_restore --omit-clean-shutdown
2013-10-29 12:46:23 +00:00
Joe Thornber
f8633da296
[cache_restore] --debug-override-metadata-version
...
A flag that deliberately causes the wrong metadata version to be
written. Useful for testing the kernel module.
2013-10-15 10:24:12 +01:00
Joe Thornber
61e90998c0
[cache_dump, cache_restore] restore/dump cycle works
2013-09-19 13:45:56 +01:00
Joe Thornber
14122d6875
Move check_file_exists() to file_utils.{h,cc}
2013-09-16 13:42:39 +01:00
Joe Thornber
dadb32d15f
some work on cache_restore
2013-09-12 12:33:32 +01:00
Joe Thornber
6615b25e4b
WIP on cache tools
2013-09-11 11:40:46 +01:00
Joe Thornber
4360c8cbff
Some work on cache_check and cache_restore
2013-08-16 16:29:41 +01:00