From: James Bottomley <James.Bottomley@SteelEye.com>
To: Dheeraj Pandey <dheeraj@gmail.com>
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: writev to scsi disks
Date: Wed, 20 Apr 2005 17:15:31 -0400 [thread overview]
Message-ID: <1114031732.5933.7.camel@mulgrave> (raw)
In-Reply-To: <363f92a8050420080112dec5db@mail.gmail.com>
On Wed, 2005-04-20 at 08:01 -0700, Dheeraj Pandey wrote:
> I was wondering if I did a simple writev to a SCSI disk, does it take
> the sg path to the device? I am guessing sg (REQ_SPECIAL) is only
> true for character devices (and ioctl's) and not block devices.
? I think you misunderstand how writev works. It's design is to take a
list of scattered buffers in a user program and consolidate them into a
single write. This (in the current implementation) is a separate entity
from the block level Scatter Gather.
If by sg write path, if you mean scatter-gather write path, then yes,
that single write would be split up again into a sg list based on the
device parameters if you mean does the writev sg list control where on
the disk the data ends up, then no, if you use a disk device as a simple
file, writev consolidates all writes to the current file position.
James
prev parent reply other threads:[~2005-04-20 21:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-20 15:01 writev to scsi disks Dheeraj Pandey
2005-04-20 21:15 ` James Bottomley [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=1114031732.5933.7.camel@mulgrave \
--to=james.bottomley@steeleye.com \
--cc=dheeraj@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@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.