cvs commit: src/sys/dev/usb umass.c

Bruce M Simpson bms at spc.org
Tue Oct 12 19:07:09 PDT 2004


On Tue, Oct 12, 2004 at 08:58:57AM +0000, Bruce M Simpson wrote:
>   Log:
>   Pass through the commands necessary to format USB floppy devices,
>   from within umass_ufi_transform(). This includes the 12-byte commands
>   FORMAT_UNIT, WRITE_AND_VERIFY, VERIFY, and READ_FORMAT_CAPACITIES
>   (sorted in numerical order).

Postscript. FORMAT_UNIT will be accepted by a UFI or SFF8070i device
using camcontrol passthrough. However, UFI devices will *not* accept
the 6-byte version of this command.  The command will fit, however;
there isn't the risk of a buffer overflow or panic that I can see.

I have some additional pieces which will need to be committed in order that
umass(4) can perform some sanity checking of what it's passing to the device.

These are currently part of ufdformat(1), under construction.

Regards,
BMS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 167 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20041012/603abc65/attachment.bin


More information about the cvs-src mailing list