Refuse an invalid --resize value in vitastor-cli modify #98

Merged
vitalif merged 1 commits from koolkhel/vitastor:cli-modify-resize into master 2026-10-25 17:20:18 +03:00

1 Commits

Author SHA1 Message Date
e5d4822325 Refuse an invalid --resize value in vitastor-cli modify
parse_size() returns 0 for a value it cannot parse, such as 1.5G, and
modify took 0 as "no resize": it printed "No change" and exited with 0.
Check the parse result and fail with EINVAL, as create does for --size.
Numeric sizes passed by internal callers (NFS, dd) parse as before.
2026-10-25 16:10:29 +03:00