[LTP] [PATCH v5] Port getxattr02.c to new test API

Petr Vorel pvorel@suse.cz
Tue Nov 28 17:55:38 CET 2023


Hi Marius,

I'm sorry, the last thing is that test does not umount, thus it fails with -iN:

# ./getxattr02 -i2
tst_device.c:96: TINFO: Found free device 0 '/dev/loop0'
tst_test.c:1690: TINFO: LTP version: 20230929-156-ge94d16fe8
tst_test.c:1574: TINFO: Timeout per run is 0h 00m 30s
tst_supported_fs_types.c:90: TINFO: Kernel supports ext2
tst_supported_fs_types.c:55: TINFO: mkfs.ext2 does exist
tst_supported_fs_types.c:90: TINFO: Kernel supports ext3
tst_supported_fs_types.c:55: TINFO: mkfs.ext3 does exist
tst_supported_fs_types.c:90: TINFO: Kernel supports ext4
tst_supported_fs_types.c:55: TINFO: mkfs.ext4 does exist
tst_supported_fs_types.c:90: TINFO: Kernel supports xfs
tst_supported_fs_types.c:55: TINFO: mkfs.xfs does exist
tst_supported_fs_types.c:90: TINFO: Kernel supports btrfs
tst_supported_fs_types.c:55: TINFO: mkfs.btrfs does exist
tst_supported_fs_types.c:90: TINFO: Kernel supports vfat
tst_supported_fs_types.c:55: TINFO: mkfs.vfat does exist
tst_supported_fs_types.c:90: TINFO: Kernel supports exfat
tst_supported_fs_types.c:55: TINFO: mkfs.exfat does exist
tst_supported_fs_types.c:120: TINFO: FUSE does support ntfs
tst_supported_fs_types.c:55: TINFO: mkfs.ntfs does exist
tst_supported_fs_types.c:90: TINFO: Kernel supports tmpfs
tst_supported_fs_types.c:42: TINFO: mkfs is not needed for tmpfs
tst_test.c:1650: TINFO: === Testing on ext2 ===
tst_test.c:1105: TINFO: Formatting /dev/loop0 with ext2 opts='' extra opts=''
mke2fs 1.47.0 (5-Feb-2023)
tst_test.c:1119: TINFO: Mounting /dev/loop0 to /tmp/LTP_get6hhQ7M/mntpoint fstyp=ext2 flags=0
getxattr02.c:86: TPASS: get attr from fifo: expected return value: ENODATA (61)
getxattr02.c:86: TPASS: get attr from char special: expected return value: ENODATA (61)
getxattr02.c:86: TPASS: get attr from block special: expected return value: ENODATA (61)
getxattr02.c:86: TPASS: get attr from UNIX domain socket: expected return value: ENODATA (61)
getxattr02.c:81: TBROK: create mntpoint/getxattr02getxattr02fifo (mode 4096) failed (get attr from fifo): EEXIST (17)

Could you please fix it?

Kind regards,
Petr


More information about the ltp mailing list