Rusty Russell
e467cde238
Block driver using virtio.
...
The block driver uses scatter-gather lists with sg[0] being the
request information (struct virtio_blk_outhdr) with the type, sector
and inbuf id. The next N sg entries are the bio itself, then the last
sg is the status byte. Whether the N entries are in or out depends on
whether it's a read or a write.
We accept the normal (SCSI) ioctls: they get handed through to the other
side which can then handle it or reply that it's unsupported. It's
not clear that this actually works in general, since I don't know
if blk_pc_request() requests have an accurate rq_data_dir().
Although we try to reply -ENOTTY on unsupported commands, ioctl(fd,
CDROMEJECT) returns success to userspace. This needs a separate
patch.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
Cc: Jens Axboe <jens.axboe@oracle.com >
2007-10-23 15:49:54 +10:00
..
2007-10-23 15:49:47 +10:00
2007-10-21 02:37:45 -04:00
2007-10-19 11:53:42 -07:00
2007-10-19 11:53:42 -07:00
2007-10-22 08:13:18 -07:00
2007-10-20 03:10:57 +02:00
2007-10-19 11:53:51 -07:00
2007-10-19 11:53:36 -07:00
2007-10-19 11:53:36 -07:00
2007-10-18 14:37:32 -07:00
2007-10-18 14:37:32 -07:00
2007-10-19 11:53:36 -07:00
2007-10-19 11:53:44 -07:00
2007-10-19 23:07:36 +02:00
2007-10-21 02:37:45 -04:00
2007-10-19 11:53:36 -07:00
2007-10-20 02:01:26 +01:00
2007-10-20 02:00:58 +01:00
2007-10-22 08:13:19 -07:00
2007-10-23 15:49:47 +10:00
2007-10-22 08:13:19 -07:00
2007-10-22 08:13:20 -07:00
2007-10-22 08:13:21 -07:00
2007-10-22 08:13:18 -07:00
2007-10-22 08:13:21 -07:00
2007-10-21 02:37:18 -04:00
2007-10-18 14:37:31 -07:00
2007-10-19 11:53:42 -07:00
2007-10-22 00:56:52 -04:00
2007-10-22 19:35:14 -07:00
2007-10-19 11:53:43 -07:00
2007-10-21 02:37:38 -04:00
2007-10-19 11:53:42 -07:00
2007-10-19 11:53:48 -07:00
2007-10-19 23:10:43 +02:00
2007-10-18 14:37:32 -07:00
2007-10-19 11:53:35 -07:00
2007-10-23 15:49:54 +10:00
2007-10-19 11:53:49 -07:00
2007-10-19 11:53:33 -07:00
2007-10-23 15:49:49 +10:00
2007-10-23 15:49:54 +10:00
2007-10-22 08:13:17 -07:00
2007-10-19 11:53:35 -07:00
2007-10-19 11:53:38 -07:00
2007-10-19 11:53:36 -07:00
2007-10-19 11:53:55 -07:00
2007-10-22 08:13:17 -07:00
2007-10-19 11:53:36 -07:00
2007-10-23 15:49:54 +10:00
2007-10-19 11:53:54 -07:00
2007-10-19 11:53:44 -07:00
2007-10-22 02:59:54 -07:00
2007-10-22 02:59:56 -07:00
2007-10-19 17:19:16 -04:00
2007-10-19 11:53:34 -07:00
2007-10-19 11:53:37 -07:00
2007-10-19 11:53:41 -07:00
2007-10-22 02:59:49 -07:00
2007-10-22 08:13:18 -07:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:39 -07:00
2007-10-19 11:53:41 -07:00
2007-10-19 20:35:04 +02:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:40 -07:00
2007-10-19 11:53:35 -07:00
2007-10-22 08:13:20 -07:00
2007-10-22 21:20:03 +02:00
2007-10-19 11:53:43 -07:00
2007-10-23 15:49:47 +10:00
2007-10-20 00:53:30 +02:00
2007-10-19 11:53:44 -07:00
2007-10-19 11:53:44 -07:00
2007-10-22 02:59:57 -07:00
2007-10-22 02:59:48 -07:00
2007-10-19 11:53:42 -07:00
2007-10-19 11:53:42 -07:00
2007-10-22 12:01:30 -02:00
2007-10-22 12:01:24 -02:00
2007-10-23 15:49:54 +10:00
2007-10-23 15:49:54 +10:00
2007-10-23 15:49:54 +10:00
2007-10-23 15:49:54 +10:00
2007-10-19 11:53:34 -07:00
2007-10-19 11:53:38 -07:00