linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* O_DIRECT for block device
@ 2005-09-22  8:21 Karthik Sarangan
  2005-09-22  8:34 ` Avi Kivity
  2005-09-22  8:40 ` Joel Becker
  0 siblings, 2 replies; 4+ messages in thread
From: Karthik Sarangan @ 2005-09-22  8:21 UTC (permalink / raw)
  To: linux-kernel

I have a scsi hdd configured at /dev/sdb.

open("/dev/sdb", O_DIRECT) succeeds.
A 'read' or 'write' returns -1 and errno is EINVAL.

How to read and write data to it? They do not seem to work. I have a 
262144 byte buffer for data transfer.

My kernel is 2.6.9-11 and I use RedHat Enterprise Linux.


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

end of thread, other threads:[~2005-09-23  5:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-22  8:21 O_DIRECT for block device Karthik Sarangan
2005-09-22  8:34 ` Avi Kivity
2005-09-22  8:40 ` Joel Becker
     [not found]   ` <43329590.3050006@cdac.in>
     [not found]     ` <20050922152028.GJ27375@ca-server1.us.oracle.com>
2005-09-23  5:36       ` Karthik Sarangan

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).