29 Mar
2017
29 Mar
'17
7:56 p.m.
On Wed, 29 Mar 2017 20:18:58 +0300
Peter Dimov via Boost
Lee Clagett wrote:
And the partial write failure test case does not cover what I am talking about. A filesystem is allowed to write the control structures before writing the data, and still meet your constraints for fsync. So the pointer to the sector has been stored but the data at that sector was never written.
In terms of the File concept, this corresponds to File::write writing up to n random bytes, then calling abort(), right?
A better test might be to use data from a previous log file, and ensure that its rejected. This would be testing the situation where the filesystem reused sectors from a previous log file. Lee