summaryrefslogtreecommitdiffstats
path: root/tests/d_special_files/expect
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 15:49:25 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 15:49:25 +0000
commit464df1d5e5ab1322e2dd0a7796939fff1aeefa9a (patch)
tree6a403684e0978f0287d7f0ec0e5aab1fd31a59e1 /tests/d_special_files/expect
parentInitial commit. (diff)
downloade2fsprogs-upstream.tar.xz
e2fsprogs-upstream.zip
Adding upstream version 1.47.0.upstream/1.47.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--tests/d_special_files/expect91
1 files changed, 91 insertions, 0 deletions
diff --git a/tests/d_special_files/expect b/tests/d_special_files/expect
new file mode 100644
index 0000000..a4761f1
--- /dev/null
+++ b/tests/d_special_files/expect
@@ -0,0 +1,91 @@
+debugfs create special files
+mke2fs -Fq -b 1024 test.img 512
+Exit status is 0
+debugfs -R ''stat foo'' -w test.img
+Inode: 12 Type: symlink Mode: 0777 Flags: 0x0
+Generation: 0 Version: 0x00000000:00000000
+User: 0 Group: 0 Project: 0 Size: 3
+File ACL: 0
+Links: 1 Blockcount: 0
+Fragment: Address: 0 Number: 0 Size: 0
+ ctime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+ atime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+ mtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+crtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+Size of extra inode fields: 32
+Fast link dest: "bar"
+Exit status is 0
+debugfs -R ''stat foo2'' -w test.img
+Inode: 13 Type: symlink Mode: 0777 Flags: 0x0
+Generation: 0 Version: 0x00000000:00000000
+User: 0 Group: 0 Project: 0 Size: 80
+File ACL: 0
+Links: 1 Blockcount: 2
+Fragment: Address: 0 Number: 0 Size: 0
+ ctime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+ atime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+ mtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+crtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+Size of extra inode fields: 32
+BLOCKS:
+(0):36
+TOTAL: 1
+
+Exit status is 0
+debugfs -R ''block_dump 28'' -w test.img
+0000 0000 0000 0004 0000 0000 0000 0000 0000 ................
+0020 0000 0000 0000 0000 0000 0000 0000 0000 ................
+*
+
+Exit status is 0
+debugfs -R ''stat pipe'' -w test.img
+Inode: 14 Type: FIFO Mode: 0000 Flags: 0x0
+Generation: 0 Version: 0x00000000:00000000
+User: 0 Group: 0 Project: 0 Size: 0
+File ACL: 0
+Links: 1 Blockcount: 0
+Fragment: Address: 0 Number: 0 Size: 0
+ ctime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+ atime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+ mtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+crtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+Size of extra inode fields: 32
+BLOCKS:
+
+Exit status is 0
+debugfs -R ''stat sda'' -w test.img
+Inode: 15 Type: block special Mode: 0000 Flags: 0x0
+Generation: 0 Version: 0x00000000:00000000
+User: 0 Group: 0 Project: 0 Size: 0
+File ACL: 0
+Links: 1 Blockcount: 0
+Fragment: Address: 0 Number: 0 Size: 0
+ ctime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+ atime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+ mtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+crtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+Size of extra inode fields: 32
+Device major/minor number: 08:00 (hex 08:00)
+Exit status is 0
+debugfs -R ''stat null'' -w test.img
+Inode: 16 Type: character special Mode: 0000 Flags: 0x0
+Generation: 0 Version: 0x00000000:00000000
+User: 0 Group: 0 Project: 0 Size: 0
+File ACL: 0
+Links: 1 Blockcount: 0
+Fragment: Address: 0 Number: 0 Size: 0
+ ctime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+ atime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+ mtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+crtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013
+Size of extra inode fields: 32
+Device major/minor number: 01:03 (hex 01:03)
+Exit status is 0
+e2fsck -yf -N test_filesys
+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: 16/64 files (0.0% non-contiguous), 37/512 blocks
+Exit status is 0