Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Oct 2004 01:50:57 +0900
From:      Sangwoo Shim <ssw@neo.redjade.org>
To:        Jeremie Le Hen <jeremie@le-hen.org>
Cc:        current@freebsd.org
Subject:   Re: ufdformat(1) -- format disks in USB floppy drives.
Message-ID:  <20041014165057.GA27057@neo.redjade.org>
In-Reply-To: <20041014123424.GJ16534@obiwan.tataz.chchile.org>
References:  <20041014071051.GP718@empiric.icir.org> <20041014123424.GJ16534@obiwan.tataz.chchile.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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
@@ -97,7 +97,7 @@
        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@le-hen.org
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041014165057.GA27057>