public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Sean Bruno <sean.bruno@dsl-only.net>
To: Matt Domsch <Matt_Domsch@dell.com>
Cc: SCSI development list <linux-scsi@vger.kernel.org>
Subject: Re: Disk simulator driver
Date: Sun, 29 Oct 2006 16:08:27 -0800	[thread overview]
Message-ID: <1162166907.6802.24.camel@home-desk> (raw)
In-Reply-To: <20061029230243.GB13218@lists.us.dell.com>

On Sun, 2006-10-29 at 17:02 -0600, Matt Domsch wrote:
> On Sun, Oct 29, 2006 at 12:19:19PM -0800, Sean Bruno wrote:
> > Is there a project/driver that would take a disk/file/lvm partition as
> > an argument(/dev/sda, /tmp/my_big_file.bin /dev/Mapper/MYLVMPART eg.)
> > and then create a new /dev entry that could be read/written to as though
> > it were a disk?
> > 
> > I think I want to look at sg, but I wasn't sure if that is what I want.
> > 
> > Just poking around for fun and education.
> > 
> > Sean
> 
> You want something different than losetup and /dev/loop ?
> e.g. something you can issue disk-like ioctls to?
> 
Precisely.  I am interested in capturing the data that would be sent to
the device and copying it somewhere before it is written to the disk.
Kind of like the way target mode drivers accept a file/disk as a target
for their operations.

Sean


  reply	other threads:[~2006-10-30  0:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-29 20:19 Disk simulator driver Sean Bruno
2006-10-29 23:02 ` Matt Domsch
2006-10-30  0:08   ` Sean Bruno [this message]
2006-10-30 12:42     ` Aboo Valappil
2006-10-30 14:59       ` Sean Bruno

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=1162166907.6802.24.camel@home-desk \
    --to=sean.bruno@dsl-only.net \
    --cc=Matt_Domsch@dell.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox