1 QA output created by 580
3 # Setting v1 encryption policy
4 # Getting v1 encryption policy
5 Encryption policy for SCRATCH_MNT/dir:
7 Master key descriptor: 0000111122223333
8 Contents encryption mode: 1 (AES-256-XTS)
9 Filenames encryption mode: 4 (AES-256-CTS)
11 # Getting v1 encryption policy using old ioctl
12 Encryption policy for SCRATCH_MNT/dir:
14 Master key descriptor: 0000111122223333
15 Contents encryption mode: 1 (AES-256-XTS)
16 Filenames encryption mode: 4 (AES-256-CTS)
18 # Trying to create file without key added yet
19 SCRATCH_MNT/dir/file: Required key not available
20 # Getting encryption key status
22 # Adding encryption key
23 Added encryption key with descriptor 0000111122223333
24 # Creating encrypted file
25 # Getting encryption key status
27 # Removing encryption key
28 Removed encryption key with descriptor 0000111122223333
29 # Getting encryption key status
31 # Verifying that the encrypted directory was "locked"
32 cat: SCRATCH_MNT/dir/file: No such file or directory
33 Required key not available
34 # Re-adding encryption key
35 Added encryption key with descriptor 0000111122223333
36 # Creating another encrypted file
37 # Removing key while an encrypted file is open
38 Removed encryption key with descriptor 0000111122223333, but files still busy
39 # Non-open file should have been evicted
40 cat: SCRATCH_MNT/dir/file2: Required key not available
41 # Open file shouldn't have been evicted
43 # Key should be in "incompletely removed" state
45 # Closing file and removing key for real now
46 Removed encryption key with descriptor 0000111122223333
47 cat: SCRATCH_MNT/dir/file: No such file or directory
50 # Setting v2 encryption policy
51 # Getting v2 encryption policy
52 Encryption policy for SCRATCH_MNT/dir:
54 Master key identifier: 69b2f6edeee720cce0577937eb8a6751
55 Contents encryption mode: 1 (AES-256-XTS)
56 Filenames encryption mode: 4 (AES-256-CTS)
58 # Trying to create file without key added yet
59 SCRATCH_MNT/dir/file: Required key not available
60 # Getting encryption key status
62 # Adding encryption key
63 Added encryption key with identifier 69b2f6edeee720cce0577937eb8a6751
64 # Creating encrypted file
65 # Getting encryption key status
66 Present (user_count=1, added_by_self)
67 # Removing encryption key
68 Removed encryption key with identifier 69b2f6edeee720cce0577937eb8a6751
69 # Getting encryption key status
71 # Verifying that the encrypted directory was "locked"
72 cat: SCRATCH_MNT/dir/file: No such file or directory
73 Required key not available
74 # Re-adding encryption key
75 Added encryption key with identifier 69b2f6edeee720cce0577937eb8a6751
76 # Creating another encrypted file
77 # Removing key while an encrypted file is open
78 Removed encryption key with identifier 69b2f6edeee720cce0577937eb8a6751, but files still busy
79 # Non-open file should have been evicted
80 cat: SCRATCH_MNT/dir/file2: Required key not available
81 # Open file shouldn't have been evicted
83 # Key should be in "incompletely removed" state
85 # Closing file and removing key for real now
86 Removed encryption key with identifier 69b2f6edeee720cce0577937eb8a6751
87 cat: SCRATCH_MNT/dir/file: No such file or directory
90 # Trying to remove absent key
91 Error removing encryption key: Required key not available