lkml.org 
[lkml]   [2002]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectWhich HDIO_ command(s) to flush all data to disk
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
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.038 / U:1.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site