Implement resizing partitions created with vitastor-disk

This commit is contained in:
Vitaliy Filippov
2024-10-18 01:55:19 +03:00
parent 4e8a1a8895
commit 18eb99c494
7 changed files with 337 additions and 9 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ int disk_tool_t::upgrade_simple_unit(std::string unit)
resizer.options = options;
for (auto & kv: resize)
resizer.options[kv.first] = std::to_string(kv.second);
if (resizer.resize_data() != 0)
if (resizer.raw_resize() != 0)
{
// FIXME: Resize with backup or journal
fprintf(