The following patches add SG v4 support to bsg. They are over Jens' bsg branch (HEAD of the tree is fc68dbc4630ffef6dce5198fd90bdec37a9bbf44). I just replaced bsg's SG v3 support with SG v4 and haven't added anything new yet. So it can only handle SCSI commands. Changes from the previous submission: - adds sg_io_v4 structure to bsg.h instead of sg.h - adds SG_IO support User-space programs can send sg_io_v4 structure via SG_IO or the read/write interface (might be replaced by something like ring buffer later on). Non SG_IO ioctl commands simply go to scsi_cmd_ioctl. I also updated programs (SG_IO support was added): http://www.kernel.org/pub/linux/kernel/people/tomo/sg4/ # but they've not showed up yet, as expected. The 1 and 2 patches are minor fixes (doesn't include SG v4 stuff). - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html