linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Which HDIO_ command(s) to flush all data to disk
@ 2002-09-10  5:33 Alex Davis
  0 siblings, 0 replies; only message in thread
From: Alex Davis @ 2002-09-10  5:33 UTC (permalink / raw)
  To: linux-kernel

I'm trying to write a program that flushes all outstanding data to 
an IDE hard drive, including the write cache. Is it sufficient just
to write:

unsigned char args[4] = {WIN_FLUSH_CACHE,0,0,0};
ioctl(fd, HDIO_DRIVE_CMD, &args)

or do I need to worry about the buffer cache as well(WIN_WRITE_BUFFER?)

Thanks in advance.

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-10  5:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-10  5:33 Which HDIO_ command(s) to flush all data to disk Alex Davis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).