NetBSD Problem Report #15199

Received: (qmail 11212 invoked from network); 10 Jan 2002 15:22:56 -0000
Message-Id: <200201101518.g0AFIlY00380@tann.cnet.aladdin.de>
Date: Thu, 10 Jan 2002 16:18:47 +0100 (CET)
From: Christian Groessler <cpg@aladdin.de>
Reply-To: cpg@aladdin.de
To: gnats-bugs@gnats.netbsd.org
Subject: accessing non-DOS diskette formats
X-Send-Pr-Version: 3.95

>Number:         15199
>Category:       kern
>Synopsis:       accessing non-DOS diskette formats
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 10 15:23:00 +0000 2002
>Closed-Date:    
>Last-Modified:  
>Originator:     Christian Groessler
>Release:        NetBSD 1.5ZA
>Organization:

>Environment:


System: NetBSD tann.cnet.aladdin.de 1.5ZA NetBSD 1.5ZA (TANN) #0: Sun Dec 30 16:53:00 CET 2001 chris@tann.cnet.aladdin.de:/net/swamp/zeug/netbsd-chkout/sys/arch/i386/compile/TANN i386
Architecture: i386
Machine: i386
>Description:
	Hi,

our fdformat(1) programm is very flexible in supporting non-standard
diskette layouts. One can specify all relevant parameters describing a
diskette format (except FM - MFM, but FM anyway won't work on 99% of
the systems).

But there is no way to access a non-conforming diskette layout, there
are only some formats available, which are PC (DOS) specific (see
fdc(4)).

I had the need to access some other format, so I did some changes to
support those formats (which are available when formatting the disk)
also later when accessing the disk.

I created a fdparm utility (derived from the fdformat(1) utility)
which can be used to set the diskette parameters.

Then I modified the fd.c driver (sys/dev/isa/fd.c) to provide a
"persistent device".  The old fd.c driver allowed all the changes
in parameters which fdformat provides, but after closing the device
all changes were gone. This did not appear very useful to me. My
"persistent device" remembers the changes to the configuration until
it's changed again.

This way the fdparm tool can set the configuration and then disks of
this layout can used very easily.

I used the "h" device (e.g. /dev/fd0h) to be the persistent device,
maybe this is not wanted and the # of minor devices should be upped
from 8 to 16 for the floppy devices? Is this feasable? Then there
would be room for some other default layouts (see fdc(4)) and we
could use 2 or more "persistent" settable layouts.

Anyway, my changes are on
ftp://ftp.groessler.org/pub/chris/fdparm  or
ftp://ftp.aladdin.de/pub/people/chris/fdparm .

They contain the source for the fdparm utility, the changes needed in
the /usr/src/sys tree and an example /etc/floppytab with entries I
used for testing.

Is there a chance that this can get integrated?

regards,
chris


>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.