LLNL / UnifyFS

UnifyFS: A file system for burst buffers
Other
107 stars 31 forks source link

Add tests for stat(), lstat() and fstat() #773

Closed wangvsa closed 1 year ago

wangvsa commented 1 year ago

Description

Add tests for stat(), lstat() and fstat(). The new test actually identified an issue in the current fstat() implementation. The current implementation does not check properly if the input file descriptor is a valid one. For example, open --> close --> fstat would cause a seg fault instead of returning an error on the client side. This has been fixed.

Also fixed a typo in the unlink test.

Motivation and Context

Currently missing test for stat family calls, including stat(), lstat(), fstat(), _xstat(), _lxstat(), _fxstat() and their 64-bit version calls.

Types of changes

Checklist: