fix(v4.0.0): three defects -- a refused device write, a failed starting state, a case that QUITs
A block write the device refuses after the kernel has taken the node's copy: the node was told "Storage refused" while the kernel's cache kept the new data, to be read back and perhaps written later. The kernel now puts its own copy back as it was. Tested with a device whose writes can be made to fail; it failed first. POST's runner: a case whose starting state could not be set says so, with what the node said, where it showed nothing; and a case that ends with QUIT fails, as it did when the cases were a capsule, where the runner had taken it for a completed line. Both tests failed first. The v4 boot says "Artemis: virtio-blk attached" only when the attach worked. make -C v4 test, sanitize and hosted-check pass; amd64, aarch64 and riscv64 boot, POST 538 of 538, dict_hash 0x5f0a949a6fc8ef2b on all six: logs/20261007-135741, -140004, -140329. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
bc6deab3f5
commit
193523d873
@@ -490,11 +490,12 @@ static void sk_v4_block_chain(void)
|
||||
}
|
||||
console_println("PCI: init...");
|
||||
pci_init(sk_v4_boot_info->acpi_table);
|
||||
if (virtio_blk_find_artemis(&artemis_dev) == 0) {
|
||||
console_println("Artemis: virtio-blk attached");
|
||||
blk_subsys_attach_device(&artemis_dev);
|
||||
} else {
|
||||
if (virtio_blk_find_artemis(&artemis_dev) != 0) {
|
||||
console_println("Artemis: no virtio-blk disk");
|
||||
} else if (blk_subsys_attach_device(&artemis_dev) == BLK_OK) {
|
||||
console_println("Artemis: virtio-blk attached");
|
||||
} else {
|
||||
console_println("Artemis: virtio-blk found, and could not be attached");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user