From owner-freebsd-current@FreeBSD.ORG Thu Oct 14 16:50:59 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5456616A4CE; Thu, 14 Oct 2004 16:50:59 +0000 (GMT) Received: from neo.redjade.org (neo.redjade.org [219.254.21.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 812BC43D60; Thu, 14 Oct 2004 16:50:57 +0000 (GMT) (envelope-from ssw@neo.redjade.org) Received: from neo.redjade.org (localhost [127.0.0.1]) by neo.redjade.org (8.13.1/8.13.1) with ESMTP id i9EGowLu027102; Fri, 15 Oct 2004 01:50:58 +0900 (KST) (envelope-from ssw@neo.redjade.org) Received: (from ssw@localhost) by neo.redjade.org (8.13.1/8.13.1/Submit) id i9EGovSB027101; Fri, 15 Oct 2004 01:50:57 +0900 (KST) (envelope-from ssw) Date: Fri, 15 Oct 2004 01:50:57 +0900 From: Sangwoo Shim To: Jeremie Le Hen Message-ID: <20041014165057.GA27057@neo.redjade.org> References: <20041014071051.GP718@empiric.icir.org> <20041014123424.GJ16534@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=euc-kr Content-Disposition: inline In-Reply-To: <20041014123424.GJ16534@obiwan.tataz.chchile.org> User-Agent: Mutt/1.5.4i cc: bms@freebsd.org cc: current@freebsd.org Subject: Re: ufdformat(1) -- format disks in USB floppy drives. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2004 16:50:59 -0000 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"