public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* Disk simulator driver
@ 2006-10-29 20:19 Sean Bruno
  2006-10-29 23:02 ` Matt Domsch
  0 siblings, 1 reply; 5+ messages in thread
From: Sean Bruno @ 2006-10-29 20:19 UTC (permalink / raw)
  To: SCSI development list

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


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

* Re: Disk simulator driver
  2006-10-29 20:19 Disk simulator driver Sean Bruno
@ 2006-10-29 23:02 ` Matt Domsch
  2006-10-30  0:08   ` Sean Bruno
  0 siblings, 1 reply; 5+ messages in thread
From: Matt Domsch @ 2006-10-29 23:02 UTC (permalink / raw)
  To: Sean Bruno; +Cc: SCSI development list

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?

-- 
Matt Domsch
Software Architect
Dell Linux Solutions linux.dell.com & www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com

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

* Re: Disk simulator driver
  2006-10-29 23:02 ` Matt Domsch
@ 2006-10-30  0:08   ` Sean Bruno
  2006-10-30 12:42     ` Aboo Valappil
  0 siblings, 1 reply; 5+ messages in thread
From: Sean Bruno @ 2006-10-30  0:08 UTC (permalink / raw)
  To: Matt Domsch; +Cc: SCSI development list

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


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

* Re: Disk simulator driver
  2006-10-30  0:08   ` Sean Bruno
@ 2006-10-30 12:42     ` Aboo Valappil
  2006-10-30 14:59       ` Sean Bruno
  0 siblings, 1 reply; 5+ messages in thread
From: Aboo Valappil @ 2006-10-30 12:42 UTC (permalink / raw)
  To: Sean Bruno; +Cc: Matt Domsch, SCSI development list

Hi Sean,

I have posted some messages before with the subject "About SG Elements 
of request_buffer" and "SCSITAP, Virtual SCSI HBA and user space SCSI 
initiators". Can you please read them and tell me what you think?
I have exactly what you wanted, and other people in the email group 
either said it is already there or not seems to be very much interested.

Basically, i built to impliment some user space SCSI engines and 
initiators. If you want i can email you a working copy of it where you 
can present the normal files as disks.

Aboo

Sean Bruno wrote:
> 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
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>   


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

* Re: Disk simulator driver
  2006-10-30 12:42     ` Aboo Valappil
@ 2006-10-30 14:59       ` Sean Bruno
  0 siblings, 0 replies; 5+ messages in thread
From: Sean Bruno @ 2006-10-30 14:59 UTC (permalink / raw)
  To: Aboo Valappil; +Cc: SCSI development list

On Mon, 2006-10-30 at 23:42 +1100, Aboo Valappil wrote:
> Hi Sean,
> 
> I have posted some messages before with the subject "About SG Elements 
> of request_buffer" and "SCSITAP, Virtual SCSI HBA and user space SCSI 
> initiators". Can you please read them and tell me what you think?
> I have exactly what you wanted, and other people in the email group 
> either said it is already there or not seems to be very much interested.
> 
> Basically, i built to impliment some user space SCSI engines and 
> initiators. If you want i can email you a working copy of it where you 
> can present the normal files as disks.
> 
> Aboo

It would be very good if you could send me the code you have written.

I would like to see where your code hooks into the /dev/ tree and how it
handles write requests.


Sean


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

end of thread, other threads:[~2006-10-30 15:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-29 20:19 Disk simulator driver Sean Bruno
2006-10-29 23:02 ` Matt Domsch
2006-10-30  0:08   ` Sean Bruno
2006-10-30 12:42     ` Aboo Valappil
2006-10-30 14:59       ` Sean Bruno

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