vitastor-disk: Refuse a disk given both as data and in --fast-devices #135

Merged
vitalif merged 1 commits from koolkhel/vitastor:prepare-fast-data-overlap into master 2026-11-20 19:20:12 +03:00

1 Commits

Author SHA1 Message Date
d95ac612bd vitastor-disk: Refuse a disk given both as data and in --fast-devices
prepare collects the device list and --fast-devices separately, so a
disk given in both got two entries, each with its own copy of the
partition table, and they overwrote each other's new partitions. The
data partition of such a disk was dropped right after it was created,
its OSD was not initialized, and the journal and metadata partitions
made for it were left behind.

Refuse such a command before anything is changed.
2026-11-20 08:03:03 +03:00