mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
dm table: add flag to allow target to handle its own integrity metadata
Add DM_TARGET_INTEGRITY flag that specifies bio integrity metadata is not inherited but implemented in the target itself. Signed-off-by: Milan Broz <gmazyland@gmail.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
This commit is contained in:
parent
b29d4986d0
commit
9b4b5a797c
2 changed files with 17 additions and 0 deletions
|
@ -221,6 +221,12 @@ struct target_type {
|
|||
*/
|
||||
typedef unsigned (*dm_num_write_bios_fn) (struct dm_target *ti, struct bio *bio);
|
||||
|
||||
/*
|
||||
* A target implements own bio data integrity.
|
||||
*/
|
||||
#define DM_TARGET_INTEGRITY 0x00000010
|
||||
#define dm_target_has_integrity(type) ((type)->features & DM_TARGET_INTEGRITY)
|
||||
|
||||
struct dm_target {
|
||||
struct dm_table *table;
|
||||
struct target_type *type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue