All of lore.kernel.org
 help / color / mirror / Atom feed
From: Karthik Sarangan <karthiks@cdac.in>
To: Joel Becker <Joel.Becker@oracle.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: O_DIRECT for block device
Date: Fri, 23 Sep 2005 11:06:13 +0530	[thread overview]
Message-ID: <4333944D.2060503@cdac.in> (raw)
In-Reply-To: <20050922152028.GJ27375@ca-server1.us.oracle.com>

Joel Becker wrote:
> On Thu, Sep 22, 2005 at 04:59:20PM +0530, Karthik Sarangan wrote:
> 
>>I tried your tip and the read works beautifully but the write returns -1 
>>and errno = EBADF!
> 
> 
> 	Did you open with O_RDWR?
> 
> Joel
> 

Alright I didn't, though using O_DIRECT | O_RDWR the second time solved 
it :-) I finally got 69MBps read and 49 MBps writes on my SCSI disk.

Thanks for helping me out.

      parent reply	other threads:[~2005-09-23  5:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4333944D.2060503@cdac.in \
    --to=karthiks@cdac.in \
    --cc=Joel.Becker@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.