vitastor-disk prepare: implement first form of the command

This commit is contained in:
Vitaliy Filippov
2022-08-09 01:29:29 +03:00
parent ae99ee6266
commit 4c9aaa8a86
7 changed files with 357 additions and 49 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ async function collect_devices(devices_to_check)
if (has_partition_table != 0)
{
// Check if the device has any data
const [ has_data, out ] = await system(`blkid ${dev}`);
const [ has_data, out ] = await system(`blkid -p ${dev}`);
if (has_data == 0)
{
console.log(`${dev} contains data, skipping:\n ${out.trim().replace(/\n/g, '\n ')}`);