40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
Mon Oct 19 01:49:49 UTC 2026
|
|
new test disk: /dev/sdb
|
|
NAME SIZE MODEL
|
|
sdb 64M scsi_debug
|
|
--- the empty partition (the R-1093 input):
|
|
{
|
|
"blockdevices": [
|
|
{
|
|
"name": "sdb1",
|
|
"fstype": null,
|
|
"pttype": "gpt"
|
|
}
|
|
]
|
|
}
|
|
DEVNAME=/dev/sdb1
|
|
PART_ENTRY_SCHEME=gpt
|
|
PART_ENTRY_UUID=aec56a69-b9a0-46de-9c8e-911ca8558717
|
|
PART_ENTRY_TYPE=0fc63daf-8483-4772-8e79-3d69d8477de4
|
|
PART_ENTRY_NUMBER=1
|
|
PART_ENTRY_OFFSET=2048
|
|
PART_ENTRY_SIZE=126976
|
|
PART_ENTRY_DISK=8:16
|
|
blkid rc=0
|
|
lrwxrwxrwx 1 root root 9 Oct 19 03:49 scsi-33333333000000fa0 -> ../../sdb
|
|
lrwxrwxrwx 1 root root 10 Oct 19 03:49 scsi-33333333000000fa0-part1 -> ../../sdb1
|
|
lrwxrwxrwx 1 root root 9 Oct 19 03:49 wwn-0x3333333000000fa0 -> ../../sdb
|
|
--- POST /disks/format on the EMPTY partition (no confirmation sent):
|
|
HTTP 200 {"ok":true,"data":{"vmid":9201,"device":"/dev/sdb1","formatted":true,"data_bearing":false,"reason":"blank device formatted ext4","durable_id":"byid:wwn-0x3333333000000fa0-part1","fs_uuid":"ef8fc766-1e12-491e-b6f2-31433e1989c8"}}
|
|
|
|
--- the partition now:
|
|
TYPE=ext4
|
|
PART_ENTRY_SCHEME=gpt
|
|
--- CONTROL: the same call again, on the now-ext4 partition:
|
|
HTTP 403 {"ok":false,"data":{"vmid":9201,"device":"/dev/sdb1","formatted":false,"data_bearing":true,"reason":"device has a ext4 filesystem","role":"user-data","needs_confirmation":true,"durable_id":"byid:wwn-0x3333333000000fa0-part1+fsuuid:ef8fc766-1e12-491e-b6f2-31433e1989c8"},"error":"device is data-bearing — customer confirmation required"}
|
|
|
|
--- teardown
|
|
not mounted
|
|
scsi_debug removed
|
|
0
|