We are abstracting a block device (such as a hard disk) to be viewed as a
character device (the tape device). Actually we are not able to implement the
corresponding ioctl in the kernel-level because we are not able to move the
offset of the driver. LDI works in such a way that it abstracts which device we
are using to emulate it as a tape device. SO we use the concept of lofi devices
in order to create a device out of a hard disk file. And this is the device
calls up the scsi/ide driver when the LDI interface communicates with it. So
half the job is done when it comes to communicating with the hardware (in this
case hard disk). Our job is just to perform the read, write, read-header,
write-header and ioctls such as move one file forwards, backwards etc
functions. We are not able to move the offset in oder to write at a particular
byte in the file.
--
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code