Messages in this thread |  | | Subject | Re: O_DIRECT fails in some kernel and FS | | From | Andi Kleen <> | | Date | 03 Feb 2002 08:26:28 +0100 |
| |
Jeff Garzik <garzik@havoc.gtf.org> writes:
> On Sat, Feb 02, 2002 at 02:16:41PM -0600, Stephen Lord wrote: > > Can't you fall back to buffered I/O for the tail? OK it complicates the > > code, probably a lot, but it keeps things sane from the user's point of > > view. > > For O_DIRECT, IMHO you should fail not fallback. You're simply lying > to the underlying program otherwise.
It's just impossible to write a tail which is smaller than a disk block without another buffer.
-Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |