diff options
author | Sami Kerola | 2013-04-13 21:54:44 +0200 |
---|---|---|
committer | Karel Zak | 2013-04-26 13:26:06 +0200 |
commit | f416563b284a9656ed012f6e078d3498b3403781 (patch) | |
tree | 585728ba935d3d823f645c39aac505a222919651 /disk-utils/fdformat.c | |
parent | libblkid: check writing to a file was successful (diff) | |
download | kernel-qcow2-util-linux-f416563b284a9656ed012f6e078d3498b3403781.tar.gz kernel-qcow2-util-linux-f416563b284a9656ed012f6e078d3498b3403781.tar.xz kernel-qcow2-util-linux-f416563b284a9656ed012f6e078d3498b3403781.zip |
include: add close_fd() for noticing write errors before close()
Essentially this helper function is similar to close_stream(), but for
file descriptors.
When a file descriptors are close()'d status of write is often
overlooked. The close_fd() will try to determine what happen to writes
with fsync() before closing the file descriptor.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'disk-utils/fdformat.c')
0 files changed, 0 insertions, 0 deletions