From “man 2 close
“:
A successful close does not guarantee that the data has been
successfully saved to disk, as the
kernel defers writes.
The man page says that if you want to be sure that your data are on disk, you have to use fsync() yourself.
More Related Contents:
- How to redirect output to a file and stdout
- What happens to an open file handle on Linux if the pointed file gets moved or deleted
- Exploring Docker container’s file system
- Quickly create a large file on a Linux system
- How to recursively find and list the latest modified files in a directory with subdirectories and times
- Shell/Bash shortcut for bulk renaming of files in a folder
- How can I find all of the distinct file extensions in a folder hierarchy?
- why is the output of `du` often so different from `du -b`
- Monitor Directory for Changes
- git submodule update failed with ‘fatal: detected dubious ownership in repository at’
- pass stdout as file name for command line util?
- No space left on device [closed]
- How to permanently set $PATH on Linux/Unix [closed]
- Automatically enter SSH password with script
- Allowed characters in Linux environment variable names
- Aborting a shell script if any command returns a non-zero value
- Bash ignoring error for a particular command
- More elegant “ps aux | grep -v grep”
- Which Linux IPC technique to use?
- How do you force a makefile to rebuild a target?
- How does mmap improve file reading speed?
- What does the “no version information available” error from linux dynamic linker mean?
- Removing Windows newlines on Linux (sed vs. awk)
- Uppercasing First Letter of Words Using SED
- ioctl vs netlink vs memmap to communicate between kernel space and user space
- Is gettimeofday() guaranteed to be of microsecond resolution?
- Docker command can’t connect to Docker daemon
- How to automatically add user account AND password with a Bash script?
- How can I forward localhost port on my container to localhost on my host?
- Specifying UDP receive buffer size at runtime in Linux