common/rc: add _scratch_{u}mount_idmapped() helpers
[xfstests-dev.git] / tests / generic / 592
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright 2019 Google LLC
4 #
5 # FS QA Test No. 592
6 #
7 # Verify ciphertext for v2 encryption policies that use the IV_INO_LBLK_64 flag
8 # and use AES-256-XTS to encrypt file contents and AES-256-CTS-CBC to encrypt
9 # file names.
10 #
11 seq=`basename $0`
12 seqres=$RESULT_DIR/$seq
13 echo "QA output created by $seq"
14
15 here=`pwd`
16 tmp=/tmp/$$
17 status=1        # failure is the default!
18 trap "_cleanup; exit \$status" 0 1 2 3 15
19
20 _cleanup()
21 {
22         cd /
23         rm -f $tmp.*
24 }
25
26 # get standard environment, filters and checks
27 . ./common/rc
28 . ./common/filter
29 . ./common/encrypt
30
31 # remove previous $seqres.full before test
32 rm -f $seqres.full
33
34 # real QA test starts here
35 _supported_fs generic
36
37 _verify_ciphertext_for_encryption_policy AES-256-XTS AES-256-CTS-CBC \
38         v2 iv_ino_lblk_64
39
40 # success, all done
41 status=0
42 exit