Messages in this thread | | | Date | Mon, 14 May 2007 23:29:07 +0100 | From | Alan Cox <> | Subject | Re: O_DIRECT for FAT |
| |
> I would like to access on certain files on a flash-disk without cache > usage, whereas the rest of the filesystem shall be accessed normally/cached. > I am aware of the previous discussion. My application is not targetting on a > pure file usage (I can live with the existing features for that), but also > for a side-channel IO to interact with the device.
Assuming you basically want to be sure writes hit the media you can use the fsync and fdatasync system calls on modern kernels to ensure your data is on the media and is flushed when you want it not when the kernel gets around to it out of boredom.
- 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/
| |