mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* How can I force a read to hit the disk?
@ 2003-09-05 17:46 Alan Stern
  2003-09-05 18:15 ` Andreas Dilger
  2003-09-05 18:42 ` Richard B. Johnson
  0 siblings, 2 replies; 15+ messages in thread
From: Alan Stern @ 2003-09-05 17:46 UTC (permalink / raw)
  To: linux-kernel

My kernel module for Linux-2.6 needs to be able to verify that the media 
on which a file resides actually is readable.  How can I do that?

It would certainly suffice to use the normal VFS read routines, if there
was some way to force the system to actually read from the device rather
than just returning data already in the cache.  So I guess it would be 
enough to perform an fdatasync for the file and then invalidate the file's 
cache entries.  How does one invalidate a file's cache entries?  Does 
filemap_flush() perform both these operations for you?

TIA,

Alan Stern


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2003-09-09 20:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-05 17:46 How can I force a read to hit the disk? Alan Stern
2003-09-05 18:15 ` Andreas Dilger
2003-09-05 18:49   ` Alan Stern
2003-09-05 19:09     ` Jörn Engel
2003-09-05 19:56       ` Alan Stern
2003-09-05 20:12   ` Alan Stern
2003-09-08 19:22   ` Alan Stern
2003-09-08 19:42     ` Richard B. Johnson
2003-09-08 20:36       ` Alan Stern
2003-09-09 12:13         ` Richard B. Johnson
2003-09-09 13:56           ` Alan Stern
2003-09-09 14:51             ` Richard B. Johnson
2003-09-09 20:16               ` Alan Stern
2003-09-05 18:42 ` Richard B. Johnson
2003-09-05 19:16   ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®