Lines Matching full:state
5 data that is overwritten. The changes can then be committed by a simple state
9 dm_bow has three states, set by writing ‘1’ or ‘2’ to /sys/block/dm-?/bow/state.
10 It is only possible to go from state 0 (initial state) to state 1, and then from
11 state 1 to state 2.
13 State 0: dm_bow collects all trims to the device and assumes that these mark
16 FITRIM ioctl on the file system then switch to state 1. These trims are not
19 State 1: All writes to the device cause the underlying data to be backed up to
22 without dm_bow, so the device is always in a good final state. The exception is
24 we are in this state and to allow rollback. See below for all details. If there
27 State 2: The transition to state 2 triggers replacing the special sector 0 with
28 the normal sector 0, and the freeing of all state information. dm_bow then
39 switched to state 1. The file system will now be used as normal. At some point,
40 the changes can either be committed by switching to state 2, or rolled back by
45 Details of operation in state 1
64 UNCHANGED means that the sector has not been changed since we entered state 1.
67 FREE means that the sector was trimmed in state 0 and has not yet been written
95 On entering state 1, dm_bow has a list of free sectors. All other sectors are