== sanity test 154a: Open-by-FID ========================= 14:30:59 (1713378659) stat fid [0x2000013a2:0x6:0x0] File: '/mnt/lustre/.lustre/fid/[0x2000013a2:0x6:0x0]' Size: 159 Blocks: 1 IO Block: 4194304 regular file Device: 2c54f966h/743766374d Inode: 144115272398143494 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2024-04-17 14:31:00.000000000 -0400 Modify: 2024-04-17 14:31:00.000000000 -0400 Change: 2024-04-17 14:31:00.000000000 -0400 Birth: - touch fid [0x2000013a2:0x6:0x0] write to fid [0x2000013a2:0x6:0x0] read fid [0x2000013a2:0x6:0x0] append write to fid [0x2000013a2:0x6:0x0] rename fid [0x2000013a2:0x6:0x0] mv: cannot move '/mnt/lustre/.lustre/fid/[0x2000013a2:0x6:0x0]' to '/mnt/lustre/f154a.sanity.1': Operation not permitted mv: cannot move '/mnt/lustre/f154a.sanity.1' to '/mnt/lustre/.lustre/fid/[0x2000013a2:0x6:0x0]': Operation not permitted truncate fid [0x2000013a2:0x6:0x0] link fid [0x2000013a2:0x6:0x0] uid=500(sanityusr) gid=500(sanityusr) groups=500(sanityusr) setfacl fid [0x2000013a2:0x6:0x0] getfacl fid [0x2000013a2:0x6:0x0] getfacl: Removing leading '/' from absolute path names # file: mnt/lustre/.lustre/fid/[0x2000013a2:0x6:0x0] # owner: root # group: root user::rw- user:sanityusr:rwx group::r-- mask::rwx other::r-- unlink fid [0x2000013a2:0x6:0x0] unlink: cannot unlink '/mnt/lustre/.lustre/fid/[0x2000013a2:0x6:0x0]': Operation not permitted mknod fid [0x2000013a2:0x6:0x0] mknod: '/mnt/lustre/.lustre/fid/[0x2000013a2:0x6:0x0]': Operation not permitted stat non-exist fid [0xf00000400:0x1:0x0] stat: cannot stat '/mnt/lustre/.lustre/fid/[0xf00000400:0x1:0x0]': No such file or directory write to non-exist fid [0xf00000400:0x1:0x0] /home/green/git/lustre-release/lustre/tests/sanity.sh: line 16991: /mnt/lustre/.lustre/fid/[0xf00000400:0x1:0x0]: Operation not permitted link new fid [0xf00000400:0x1:0x0] ln: failed to create hard link '/mnt/lustre/.lustre/fid/[0xf00000400:0x1:0x0]' => '/mnt/lustre/f154a.sanity': Operation not permitted ls [0x2400013a2:0x1:0x0] f154a.sanity touch [0x2400013a2:0x1:0x0]/f154a.sanity.1 touch /mnt/lustre/.lustre/fid/f154a.sanity touch: setting times of '/mnt/lustre/.lustre/fid/f154a.sanity': No such file or directory setxattr to /mnt/lustre/.lustre/fid listxattr for /mnt/lustre/.lustre/fid getfattr: Removing leading '/' from absolute path names # file: mnt/lustre/.lustre/fid trusted.lma=0sAAAAAAAAAAACAAAAAgAAAAIAAAAAAAAA trusted.name1="value1" trusted.version=0suhMAAAMAAAA= delxattr from /mnt/lustre/.lustre/fid touch invalid fid: /mnt/lustre/.lustre/fid/[0x200000400:0x2:0x3] touch: setting times of '/mnt/lustre/.lustre/fid/[0x200000400:0x2:0x3]': No such file or directory touch non-normal fid: /mnt/lustre/.lustre/fid/[0x1:0x2:0x0] touch: setting times of '/mnt/lustre/.lustre/fid/[0x1:0x2:0x0]': No such file or directory rename d154a.sanity to /mnt/lustre/.lustre/fid rename '/mnt/lustre/d154a.sanity' returned -1: Operation not permitted change mode of /mnt/lustre/.lustre/fid to 777 restore mode of /mnt/lustre/.lustre/fid to 100 Succeed in opening file "/mnt/lustre/f154a.sanity-2"(flags=O_LOV_DELAY_CREATE) cp /etc/passwd /mnt/lustre/.lustre/fid/[0x2000013a2:0xd:0x0] cp /etc/passwd /mnt/lustre/f154a.sanity-2 diff /etc/passwd /mnt/lustre/.lustre/fid/[0x2000013a2:0xd:0x0] rm: cannot remove '/mnt/lustre/.lustre/lost+found/MDT0000': Operation not permitted rm: cannot remove '/mnt/lustre/.lustre/lost+found/MDT0001': Operation not permitted rm: cannot remove '/mnt/lustre/.lustre/fid': Operation not permitted touch: setting times of '/mnt/lustre/.lustre/file': No such file or directory mkdir: cannot create directory '/mnt/lustre/.lustre/dir': Operation not permitted