synapse
A component of the AienOS ecosystem.
Brought by drakestapleton
synapse / evidence / r1-raw-block-store / red-green / mutation-M3.txt
| 1 | mutation M3: foreign signature formatted over without the override |
| 2 | test: blockdev_tests::r1_refuses_a_device_carrying_a_filesystem_or_partition_signature |
| 3 | diff --git a/crates/synapse-store/src/blockdev.rs b/crates/synapse-store/src/blockdev.rs |
| 4 | index 05850d9..11e25b3 100644 |
| 5 | --- a/crates/synapse-store/src/blockdev.rs |
| 6 | +++ b/crates/synapse-store/src/blockdev.rs |
| 7 | @@ -612,7 +612,7 @@ impl BlockDevice { |
| 8 | cfg.path.display() |
| 9 | ))) |
| 10 | } |
| 11 | - other if cfg.allow_foreign_signature && cfg.format == FormatPolicy::FormatIfBlank => { |
| 12 | + other if cfg.format == FormatPolicy::FormatIfBlank => { |
| 13 | let _ = other; |
| 14 | Self::format(io.as_ref(), cfg.meta_region_bytes, segment_bytes)?; |
| 15 | } |
| 16 | --- |
| 17 | test blockdev_tests::r1_refuses_a_device_carrying_a_filesystem_or_partition_signature ... FAILED |
| 18 | thread 'blockdev_tests::r1_refuses_a_device_carrying_a_filesystem_or_partition_signature' (1697966) panicked at crates/synapse-store/src/blockdev_tests.rs:254:28: |
| 19 | test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 72 filtered out; finished in 0.03s |
| 20 | error: test failed, to rerun pass `-p synapse-store --lib` |