From 464df1d5e5ab1322e2dd0a7796939fff1aeefa9a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:49:25 +0200 Subject: Adding upstream version 1.47.0. Signed-off-by: Daniel Baumann --- tests/d_special_files/expect | 91 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 tests/d_special_files/expect (limited to 'tests/d_special_files/expect') 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 -- cgit v1.2.3