dm integrity: use version 2 for separate metadata
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 3 Jul 2018 18:13:31 +0000 (20:13 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 27 Jul 2018 19:24:25 +0000 (15:24 -0400)
commit1f9fc0b826119f8d76d33c3bf60b7426be6dc19e
treec7cee1a43a24f8dfb06f24ed3c5b6e4d45f6b1e4
parent356d9d52e1221ba0c9f10b8b38652f78a5298329
dm integrity: use version 2 for separate metadata

Use version "2" in the superblock when data and metadata devices are
separate, so that the device is not accidentally read by older kernel
version.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-integrity.c