@@ -53,6 +53,21 @@ Constructor parameters:
53
53
54
54
- some underlying devices perform better with fua, some
55
55
with nofua. The user should test it
56
+ cleaner
57
+ when this option is activated (either in the constructor
58
+ arguments or by a message), the cache will not promote
59
+ new writes (however, writes to already cached blocks are
60
+ promoted, to avoid data corruption due to misordered
61
+ writes) and it will gradually writeback any cached
62
+ data. The userspace can then monitor the cleaning
63
+ process with "dmsetup status". When the number of cached
64
+ blocks drops to zero, userspace can unload the
65
+ dm-writecache target and replace it with dm-linear or
66
+ other targets.
67
+ max_age n
68
+ specifies the maximum age of a block in milliseconds. If
69
+ a block is stored in the cache for too long, it will be
70
+ written to the underlying device and cleaned up.
56
71
57
72
Status:
58
73
1. error indicator - 0 if there was no error, otherwise error number
@@ -77,3 +92,5 @@ Messages:
77
92
5. resume the device, so that it will use the linear
78
93
target
79
94
6. the cache device is now inactive and it can be deleted
95
+ cleaner
96
+ See above "cleaner" constructor documentation.
0 commit comments