Hi David, Thanks for bringing this up.. Sorry for taking time to respond to this. Before I got to the acl tests, I did uncover and fix a few other bugs some of which were in the LTP script (runltp) and some of which were in pvfs2. The runltp script requires a mkdir -m 777 when it creates the temp directory for many of the tests to work properly (Before that change, the runltp script was failing even on /tmp for me).
The tests that continue to fail for me now are a) the nftw() tests when run as the user "nobody" on a directory owned by <nobody,root> b) the writev01 test which passes in a bogus address amongst valid addresses in the iovec and expects that writev() does not return -EFAULT. I think we had this discussion a long time back when the writev implementation was done and I still havent had a chance to fix this. The acl tests in the LTP suite does something very naive (I am referring to the acl_file_test and acl_link_test). They open a file, do a (l)listxattr() on it, do a (l)getxattr() on the first key and then do a (l)setxattr() on it. For a regular file, we return "system.pvfs2.dh" and "system.pvfs2.md" as part of listxattr(), and any attempt to do a setxattr() will obviously fail (currently with -EINVAL) since these are not settable xtended attributes. Quite frankly, these acl tests are not worth fixing. That said, it would be great if we could modify the tacl_xattr.sh to somehow work with pvfs2 (It is currently ext3 specific) since that is really a good acl test... If there are any other (Acl or otherwise) tests that fail for you, please let me know and I can take a shot at fixing them. thanks, Murali On Wed, 2 Aug 2006, David Metheny wrote: > We're seeing some acl errors in the LTP tests (http://ltp.sourceforge.net/). > This is on a SMP RHEL4 x86_64 server with kernel 2.6.9-34.0.2. This is using > the code in the CVS tree on July 19th. I've attached a test set for LTP > that runs this. > > To run it, do something like this: > > # su > # tar -xvzf ltp-full-20060717.tgz > # cd ltp-full-20060717 > # export CFLAGS="-g" > # make && make install > # mkdir /mnt/pvfs2/ltp-tmp > # chmod 777 /mnt/pvfs2/ltp-tmp > # cp ../pvfs-test-cases runtest/ > # cp ./testcases/kernel/fs/acls/acl_test01 ./testcases/bin/ > # ./runltp -p -l /tmp/ltp.log -d /mnt/pvfs2/ltp-tmp -f pvfs-test-cases 2>&1 > | tee /tmp/ltp.output > # tail /tmp/ltp.log > > some notes on the above steps: > ------------------------------- > - ltp needs to be built and run as root > - -g CFLAGS helps if you need to run a debugger to track down failures > - make install leaves binaries in ltp-full-20050307 directory > - I don't know if it is strictly required, but it seems like I had > better luck when running the tests in a subdir with 777 permissions > - the end of the log file shows a summary (how many tests passed and failed) > _______________________________________________ Pvfs2-developers mailing list Pvfs2-developers@beowulf-underground.org http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers