Boost logo

Boost :

Subject: Re: [boost] NuDB: A fast key/value insert-only database for SSD drives in C++11
From: Lee Clagett (forum_at_[hidden])
Date: 2017-03-29 19:56:02


On Wed, 29 Mar 2017 20:18:58 +0300
Peter Dimov via Boost <boost_at_[hidden]> wrote:

> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk