Compare commits
2 Commits
ebf24bac9a
...
63be905bdc
Author | SHA1 | Date |
---|---|---|
Vitaliy Filippov | 63be905bdc | |
Vitaliy Filippov | 20195ccd2f |
|
@ -108,10 +108,6 @@ int disk_tool_t::prepare_one(std::map<std::string, std::string> options, int is_
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
dsk.parse_config(options);
|
dsk.parse_config(options);
|
||||||
// Set all offsets to 4096 to calculate metadata size with excess
|
|
||||||
dsk.journal_offset = 4096;
|
|
||||||
dsk.meta_offset = 4096;
|
|
||||||
dsk.data_offset = 4096;
|
|
||||||
dsk.data_io = dsk.meta_io = dsk.journal_io = (options["io"] == "cached" ? "cached" : "direct");
|
dsk.data_io = dsk.meta_io = dsk.journal_io = (options["io"] == "cached" ? "cached" : "direct");
|
||||||
dsk.open_data();
|
dsk.open_data();
|
||||||
dsk.open_meta();
|
dsk.open_meta();
|
||||||
|
@ -502,9 +498,6 @@ int disk_tool_t::get_meta_partition(std::vector<vitastor_dev_info_t> & ssds, std
|
||||||
{
|
{
|
||||||
blockstore_disk_t dsk;
|
blockstore_disk_t dsk;
|
||||||
dsk.parse_config(options);
|
dsk.parse_config(options);
|
||||||
dsk.journal_offset = 4096;
|
|
||||||
dsk.meta_offset = 4096;
|
|
||||||
dsk.data_offset = 4096;
|
|
||||||
dsk.data_io = dsk.meta_io = dsk.journal_io = "cached";
|
dsk.data_io = dsk.meta_io = dsk.journal_io = "cached";
|
||||||
dsk.open_data();
|
dsk.open_data();
|
||||||
dsk.open_meta();
|
dsk.open_meta();
|
||||||
|
|
Loading…
Reference in New Issue