aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorAkinobu Mita <[email protected]>2015-04-13 23:21:58 +0900
committerNicholas Bellinger <[email protected]>2015-04-15 22:47:27 -0700
commit64d240b721b21e266ffde645ec965c3b6d1c551f (patch)
treeec77072987a3592c3f305cf50257bdfff1ce23fb /lib/test-string_helpers.c
parentc836777830428372074d5129ac513e1472c99791 (diff)
target/file: Fix UNMAP with DIF protection support
When UNMAP command is issued with DIF protection support enabled, the protection info for the unmapped region is remain unchanged. So READ command for the region causes data integrity failure. This fixes it by invalidating protection info for the unmapped region by filling with 0xff pattern. This change also adds helper function fd_do_prot_fill() in order to reduce code duplication with existing fd_format_prot(). Signed-off-by: Akinobu Mita <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: "Martin K. Petersen" <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: "James E.J. Bottomley" <[email protected]> Cc: <[email protected]> # v3.14+ Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions