mpifileutils icon indicating copy to clipboard operation
mpifileutils copied to clipboard

mfu_flist_copy extra stat call

Open daltonbohning opened this issue 3 years ago • 0 comments

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.

daltonbohning avatar Apr 08 '21 14:04 daltonbohning