I have added a new test for flan which should show the issue on a clean, mkfs.flexalloc'd loopback device. Below I have shown the test being run three times.
- First test shows that there is no object data once the object is initially opened, this is expected. You can also see that the second "Before" print still shows "salad" instead of "pizza".
- Second test shows that there is already data in the object containing "My favourite food is salad!". This, I would expect, should say
chocolateand notsaladsince that was the last write. - Third test shows the same issue.
$ sudo FLAN_TEST_DEV=/dev/loop16 ./build/flan/flan_test_overwrite 512