[PATCH] New fstest to check rename POSIX conformance

Andre Marques andre.lousa.marques at gmail.com
Sat Feb 8 12:26:22 UTC 2014


As discussed in [1], I created a new fstest to check the rename() 
implementation against the POSIX specification [2].

What the attached patch does not test:

- Testing the existance of a link visible to other processes during the 
rename process (ensuring that there is always a reference to the file). 
Not sure about the best way to test this.

- Testing that after all processes close their references to a file 
after it was removed by rename() the file contents are removed (or 
marked as free space, I guess). I only found platform dependent ways of 
dealing with disk block's.

- Testing errno values in error situations. There is already a fstest 
named fserror which purpose seems to be checking errno values for a 
bunch of functions (rename included, but with some errno values 
missing). Not sure if I should put them in this test or add to fserror.

This test uses the MOUNTED IMFS filesystem, for no particular reason, so 
if that's an issue please let me know.

[1] - http://www.rtems.org/pipermail/rtems-users/2014-January/012378.html

[2] - http://pubs.opengroup.org/onlinepubs/9699919799/functions/rename.html

--André Marques
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-New-fstest-to-check-rename-POSIX-conformance.patch
Type: text/x-patch
Size: 33787 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20140208/20ae7275/attachment.bin>

More information about the devel mailing list