Re: [Bug 7026] CD/DVD burning with USB writer doesn't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 6 Dec 2006, James Bottomley wrote:

> On Wed, 2006-12-06 at 12:21 -0500, Alan Stern wrote:
> > So only the legacy sg character-device files need attention, which
> > means 
> > that only the part of the patch affecting sg.c is necessary.  The new 
> > SG_GET_MAX_TRANSFER_LENGTH ioctl can remain unimplemented by the
> > block 
> > layer -- just as SG_[SG]ET_RESERVED_SIZE should be.
> > 
> > How does that sound?
> 
> Actually, I'd just connect sg up to the block ioctl ... it has a block
> queue and valid parameters, so BLKSECTGET will work for it as well.

I'd love to do that -- but blkdev_ioctl() wants inode->i_bdev to be set, 
and blkdev_locked_ioctl() uses it as the argument to bdev_get_queue().  So 
it won't work with sg, which uses character device nodes.

How about adding BLKSECTGET to the list of commands accepted by 
sg_ioctl()?

Alan Stern

-
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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux