mpifileutils
mpifileutils copied to clipboard
mfu_flist_copy extra stat call
In mfu_create_file
there is an lstat
call to make sure the file exists before calling truncate
, but mknod
was just called above, so the file should already exist under normal circumstances. It seems that this extra lstat
call could be removed, which is called on every file when copy_opts->sparse
.
truncate
will return ENOENT
if the file doesn't exist, so that could be check instead.