Lines Matching +full:trim +full:- +full:data +full:- +full:valid
1 /* SPDX-License-Identifier: GPL-2.0-only */
6 /* receiver (data socket) */
15 P_DATA_REQUEST = 0x08, /* Used to ask for a data block */
16 P_RS_DATA_REQUEST = 0x09, /* Used to ask for a data block for resync */
33 P_SUPERSEDED = 0x18, /* Used in proto C, two-primaries conflict detection */
42 P_OV_REQUEST = 0x1e, /* data socket */
45 P_CSUM_RS_REQUEST = 0x21, /* data socket */
47 P_SYNC_PARAM89 = 0x23, /* data socket, protocol version 89 replacement for P_SYNC_PARAM */
52 P_OUT_OF_SYNC = 0x28, /* Mark as out of sync (Outrunning), data socket */
54 P_CONN_ST_CHG_REQ = 0x2a, /* data sock: Connection wide state request */
57 P_PROTOCOL_UPDATE = 0x2d, /* data sock: is used in established connections */
61 * which is why I chose TRIM here, to disambiguate. */
74 P_ZEROES = 0x36, /* data sock: zero-out, WRITE_ZEROES */
106 u16 length; /* bytes of data after this header */
109 /* Header for big packets, Used for data packets exceeding 64kB */
154 u32 size; /* == bio->bi_size */
159 u32 size; /* == bio->bi_size */
166 * P_SUPERSEDED (proto C, two-primaries conflict detection)
193 /* supports TRIM/DISCARD on the "wire" protocol */
196 /* Detect all-zeros during resync, and rather TRIM/UNMAP/DISCARD those blocks
203 * - indicates support for 128 MiB "batch bios",
206 * - indicates that we exchange additional settings in p_sizes
214 * guarantee that discard zeroes data, the receiving side would map discard
215 * back to zero-out.
220 * UNMAP if possible, zero-out the rest.
224 * While an un-allocated block on dm-thin reads as zeroes, on a dm-thin
229 * If we cannot distinguish between zero-out and discard on the receiving
231 * on supposedly zero-initialized blocks, we'd need to map all discards to
232 * zero-out on the receiving side. But that would potentially do a full
234 * unmap/trim/discard/de-allocate.
237 * zeroes (and thus use zero-out, potentially doing the mentioned full-alloc),
239 * zeroing" (by "discarding" blocks aligned to discard-granularity, and zeroing
241 * avoid "false positives" in an online-verify later, hoping that someone
397 /* Valid values for the encoding field.