common/encrypt: support checking for v2 encryption policy support
authorEric Biggers <ebiggers@google.com>
Tue, 15 Oct 2019 18:16:37 +0000 (11:16 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sat, 26 Oct 2019 15:22:56 +0000 (23:22 +0800)
commit72af926020a70f94f695878a5790b308cab78782
tree7e3aa01540943da6a0fef3e041e4200d8951b5c9
parentca4ef3f7b981c40fde50cd15a05ace12d52dd723
common/encrypt: support checking for v2 encryption policy support

Allow passing '-v 2' to _require_scratch_encryption() to check for
v2 encryption policy support on the scratch device, and for xfs_io
support for setting and getting v2 encryption policies.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/encrypt