LLNL / UnifyFS

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

Missing wrappers for fopen64, stat64 and fstat64 #769

Closed wangvsa closed 1 year ago

wangvsa commented 1 year ago

It seems that there does not have a Gotcha wrapper for fopen64, stat64, etc. (We do have a open64 wrapper). One application, Montage, uses 64-bit version I/O calls. Montage can write/read very large files so it needs the large file support. It uses -D_FILE_OFFSET_BITS=64 to compile, which results in those calls.

A temporary fix is to remove the D_FILE_OFFSET_BITS flag from the Montage's Makefile. I have tested this and it works fine provided we do not access large files.

wangvsa commented 1 year ago

BTW, Montage uses stat() on directories to make sure the directories exist, and uses readdir() to iterate all files under a given directory. Since UnifyFS does not fully support directory operations, Montage currently can not run on UnifyFS.