ftruncate04.c: cleanup mandatory locking check. The attached patch tries to cleanup the `mandatory locking' check in the ftruncate04.c testcase. The currently test is made with system(2) and involve calling some external tools ... to determine if the underlying filesystem has `mand' option set. The same result can be easily retrieved with a simple statvfs(2) call and examining the mount flags value. This has been successfully tested on a RHEL5 x86_64 machine. Signed-off-by: Nicolas Joly <njoly@pasteur.fr>.
1 file changed