Re: ufdformat(1) -- format disks in USB floppy drives.

From: Sangwoo Shim <ssw_at_neo.redjade.org>
Date: Fri, 15 Oct 2004 01:50:57 +0900
On Thu, Oct 14, 2004 at 02:34:24PM +0200, Jeremie Le Hen wrote:
[snip] 
> In which way does ufdformat(1) differs from fdformat(1) ?  I mean
> I feel quite counter-intuitive to have two differents commands to
> finally achieve the same thing, formatting floppies, even if they
> don't work on the same underlying bus.  I think this difference
> should be made transparent to users.

He comments some of these issues in his ufdformat TODO, Please visit the URL.
I've just tried it out. It needs small updating to be compiled, though.

--- ufdformat.c.orig    Fri Oct 15 01:43:39 2004
+++ ufdformat.c Fri Oct 15 01:32:59 2004
_at__at_ -97,7 +97,7 _at__at_
        scsi_cmd = (struct scsi_verify *)&csio->cdb_io.cdb_bytes;
        bzero(scsi_cmd, sizeof(*scsi_cmd));
        scsi_cmd->opcode = VERIFY;
-       scsi_cmd->lun = byte2;
+       scsi_cmd->byte2 = byte2;
        scsi_ulto4b(lba_addr, scsi_cmd->addr);
        scsi_ulto2b(nblocks, scsi_cmd->len);
 
I think it's beneficial to have ufdformat in src for some time being for those
use usb floppy. And it can be deleted after its functionalities being merged to
fdformat(1).

Regards,
Sangwoo Shim

> 
> Regards,
> -- 
> Jeremie Le Hen
> jeremie_at_le-hen.org
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Thu Oct 14 2004 - 14:50:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:17 UTC