]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Enable direct-mode I/O (bypassing the buffer cache), if possible.
authorJim Meyering <jim@meyering.net>
Mon, 7 Jun 2004 15:27:42 +0000 (15:27 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 7 Jun 2004 15:27:42 +0000 (15:27 +0000)
commit16155336a095fc4e749d42608e747bce4082230f
tree033f67752e21673342b4d5e4da8f742829fe4dad
parent8f3e7ea8136036a29b2289e81c7906deb11bc944
Enable direct-mode I/O (bypassing the buffer cache), if possible.
Prompted by a suggestion from Kalle Olavi Niemitalo
in http://bugs.debian.org/207035.

(direct_mode): New function.
(do_wipefd): Turn on direct-mode I/O.
(dopass): If a file's first write fails with EINVAL,
turn off direct-mode I/O and retry the write.
src/shred.c