I have set up NFS using AWS Storage Gateway and File Share on a Mac environment. When using a specific program to create 0byte files on this NFS, if a file with the same name already exists, the program does not overwrite it but instead retains the existing file.
For example:
1. Create a.txt at 12:35 pm
2. Create a.txt at 12:40 pm
3. The system information for a.txt shows the last modification time as 12:35 pm.
Is it impossible to overwrite 0byte files on NFS? My main question is that when performing the same action locally, the mtime changes correctly. Why is there this difference?
I tried changing various NFS mount options and also made adjustments to the S3 settings, but I was not able to achieve the desired result.
Asked by derick-park
(1 rep)
May 29, 2024, 01:38 AM