Hi kai,
I was trying to execute the ltp/testcases/kernel/fs/acl/tacl_xattr.sh
test and found some problem with the same:
=====================================================================
# ./tacl_xattr.sh
10240+0 records in
10240+0 records out
10485760 bytes (10 MB) copied, 0.0829085 seconds, 126 MB/s
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
2560 inodes, 10240 blocks
512 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=10485760
2 block groups
8192 blocks per group, 8192 fragments per group
1280 inodes per group
Superblock backups stored on blocks:
8193
Writing inode tables: done
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
adduser: group tacluser1 exists - if you want to add this user to that
group, use -g.
adduser: group tacluser2 exists - if you want to add this user to that
group, use -g.
adduser: group tacluser3 exists - if you want to add this user to that
group, use -g.
adduser: group tacluser4 exists - if you want to add this user to that
group, use -g.
su: user tacluser1 does not exist
su: user tacluser2 does not exist
chmod: cannot access `tacl/mount-ext2/shared/team1': No such file or
directory
su: user tacluser1 does not exist
setfacl: tacl/mount-ext2/shared/team1: No such file or directory
su: user tacluser1 does not exist
setfacl: tacl/mount-ext2/shared/team1: No such file or directory
su: user tacluser1 does not exist
setfacl: Option -m: Invalid argument near character 3
su: user tacluser3 does not exist
setfacl: tacl/mount-ext2/shared/team1: No such file or directory
su: user tacluser3 does not exist
setfacl: tacl/mount-ext2/shared/team1: No such file or directory
su: user tacluser2 does not exist
setfacl: tacl/mount-ext2/shared/team1: No such file or directory
su: user tacluser2 does not exist
setfacl: tacl/mount-ext2/shared/team1: No such file or directory
usermod: user tacluser2 does not exist
su: user tacluser2 does not exist
setfacl: tacl/mount-ext2/shared/team1: No such file or directory
su: user tacluser2 does not exist
usermod: user tacluser2 does not exist
setfacl: tacl/mount-ext2/shared/team1: No such file or directory
su: user tacluser4 does not exist
setfacl: tacl/mount-ext2/shared/team1: No such file or directory
su: user tacluser4 does not exist
setfacl: tacl/mount-ext2/shared/team1: No such file or directory
su: user tacluser1 does not exist
ls: tacl/mount-ext2/shared/team1/newfile1: No such file or directory
./tacl_xattr.sh: line 585: [: !=: unary operator expected
FAILED: With default ACLs set , new file permission set not correct
setfacl: Option -m: Invalid argument near character 5
su: user tacluser3 does not exist
ls: tacl/mount-ext2/shared/team1/newfile2: No such file or directory
./tacl_xattr.sh: line 613: [: !=: unary operator expected
FAILED: With default ACLs set , new file permission set not correct
setfacl: tacl/mount-ext2/shared/team1: No such file or directory
su: user tacluser3 does not exist
ls: tacl/mount-ext2/shared/team1/newfile3: No such file or directory
./tacl_xattr.sh: line 640: [: !=: unary operator expected
FAILED: With default ACLs set , new file permission set not correct
su: user tacluser3 does not exist
getfacl: tacl/mount-ext2/shared/team1/newfile3: No such file or
directory
./tacl_xattr.sh: line 671: [: ==: unary operator expected
FAILED: Chmod with ACL_USER_OBJ ACL_GROUP_OBJ and ACL_OTHER are not
correct
chown: `tacluser2.tacluser2': invalid user
getfacl: tacl/mount-ext2/shared/team1/newfile2: No such file or
directory
./tacl_xattr.sh: line 706: [: ==: unary operator expected
FAILED: Chown are not correct
setfacl: tacl/mount-ext2/shared/team1: No such file or directory
SUCCESS: ACLs backup and restore are correct
End ACLs Test
Now begin Extend Attribute Test
Attach name:value pair to object dir
attr_set: No such file or directory
Could not set "attrname1" for tacl/mount-ext2/shared/team2
FAILED: Attach name:value pair to object dir
Attach name:value pair to object file
attr_set: No such file or directory
Could not set "attrname2" for tacl/mount-ext2/shared/team2/file1
FAILED: Attach name:value pair to object file
Attach name:value pair to object symlink file
attr_set: No such file or directory
Could not set "attrname3" for tacl/mount-ext2/shared/team2/symlinkfile1
INFO: Can't attach name:value pair to object symlink file
ls: tacl/mount-ext2/shared/team2: No such file or directory
get extended attributes of filesystem objects
Dump the values
getfattr: tacl/mount-ext2/shared/team2: No such file or directory
FAILED: getfattr: Dump the values
Recursively dump the values
Do not follow symlinks.
but extended user attributes are disallowed for symbolic links
getfattr: tacl/mount-ext2/shared/team2/symlinkfile1: No such file or
directory
FAILED: getfattr: Do not follow symlinks.
Logical walk, follow symbolic links
getfattr: tacl/mount-ext2/shared/team2/*: No such file or directory
FAILED: getfattr: Logical walk
Physical walk, skip all symbolic links
getfattr: tacl/mount-ext2/shared/team2/*: No such file or directory
FAILED: getfattr: Physical walk
attr -g to search the named object
attr_get: No such file or directory
Could not get "attrname1" for tacl/mount-ext2/shared/team2
FAILED: attr: to search the named object
attr -r to remove the named object
attr_remove: No such file or directory
Could not remove "attrname2" for tacl/mount-ext2/shared/team2/file1
FAILED: attr: to remove the named object
SUCCESS: EAs backup and restore are correct
End EAs Test
userdel: user tacluser1 does not exist
userdel: user tacluser2 does not exist
userdel: user tacluser3 does not exist
userdel: user tacluser4 does not exist
=====================================================================
Does this test need to be updated for successful run ? I can find that
the test case is still valid for the following 2.6.27 files:
fs/posix_acl.c
fs/xattr_acl.c
fs/reiserfs/xattr_acl.c
fs/ubifs/xattr.c
fs/xattr.c
fs/jfs/xattr.c
fs/ext3/xattr.c
fs/cifs/xattr.c
fs/ext4/xattr.c
fs/jffs2/xattr.c
fs/ext2/xattr.c
fs/reiserfs/xattr.c
Regards--
Subrata
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list