aboutsummaryrefslogtreecommitdiff
path: root/tests/f_encrypted_lpf
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2015-07-16 14:21:22 -0400
committerTheodore Ts'o <tytso@mit.edu>2015-07-16 15:07:59 -0400
commit4ecd63d7869922dab94d88e6e0a4fa4c9f0d0c66 (patch)
tree1be957a531d4f368d87b1af91839aa39c05108bd /tests/f_encrypted_lpf
parentb97bccecfe97270eb15f77d1580f16eb1125fc1c (diff)
downloade2fsprogs-4ecd63d7869922dab94d88e6e0a4fa4c9f0d0c66.tar.gz
e2fsck: check for an encrypted lost+found directory
The /lost+found directory must not be encrypted, since e2fsck won't have any keys. If we find an encrypted lost+found directory, we should delete the directory and recreate it. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tests/f_encrypted_lpf')
-rw-r--r--tests/f_encrypted_lpf/expect.127
-rw-r--r--tests/f_encrypted_lpf/expect.27
-rw-r--r--tests/f_encrypted_lpf/image.gzbin0 -> 1123 bytes
-rw-r--r--tests/f_encrypted_lpf/name1
4 files changed, 35 insertions, 0 deletions
diff --git a/tests/f_encrypted_lpf/expect.1 b/tests/f_encrypted_lpf/expect.1
new file mode 100644
index 00000000..7e215b7d
--- /dev/null
+++ b/tests/f_encrypted_lpf/expect.1
@@ -0,0 +1,27 @@
+Pass 1: Checking inodes, blocks, and sizes
+Pass 2: Checking directory structure
+Pass 3: Checking directory connectivity
+Unconnected directory inode 12 (/???)
+Connect to /lost+found? yes
+
+/lost+found is encrypted
+Clear? yes
+
+/lost+found not found. Create? yes
+
+Restarting e2fsck from the beginning...
+Pass 1: Checking inodes, blocks, and sizes
+Pass 2: Checking directory structure
+Pass 3: Checking directory connectivity
+Unconnected directory inode 11 (/???)
+Connect to /lost+found? yes
+
+Pass 3A: Optimizing directories
+Pass 4: Checking reference counts
+Inode 12 ref count is 3, should be 2. Fix? yes
+
+Pass 5: Checking group summary information
+
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
+test_filesys: 13/64 files (0.0% non-contiguous), 13/100 blocks
+Exit status is 1
diff --git a/tests/f_encrypted_lpf/expect.2 b/tests/f_encrypted_lpf/expect.2
new file mode 100644
index 00000000..6a59947a
--- /dev/null
+++ b/tests/f_encrypted_lpf/expect.2
@@ -0,0 +1,7 @@
+Pass 1: Checking inodes, blocks, and sizes
+Pass 2: Checking directory structure
+Pass 3: Checking directory connectivity
+Pass 4: Checking reference counts
+Pass 5: Checking group summary information
+test_filesys: 13/64 files (0.0% non-contiguous), 13/100 blocks
+Exit status is 0
diff --git a/tests/f_encrypted_lpf/image.gz b/tests/f_encrypted_lpf/image.gz
new file mode 100644
index 00000000..7c89e07a
--- /dev/null
+++ b/tests/f_encrypted_lpf/image.gz
Binary files differ
diff --git a/tests/f_encrypted_lpf/name b/tests/f_encrypted_lpf/name
new file mode 100644
index 00000000..b74259ce
--- /dev/null
+++ b/tests/f_encrypted_lpf/name
@@ -0,0 +1 @@
+encrypted lost+found directory