Subject: Re: proposal for MI floppy formatting
To: None <email@example.com>
From: John Kohl <firstname.lastname@example.org>
Date: 11/17/1996 18:07:16
>>>>> "PK" == Paul Kranenburg <email@example.com> writes:
>> FDIOCSETFORMAT(struct fdformat_parms):
>> set formatting parameters, using 'struct fdformat_parms'
>> the driver saves this state and it persists while the device is open.
>> FDIOCGETFORMAT(struct fdformat_parms):
>> fetch current formatting parameters into 'struct fdformat_parms'
PK> Wouldn't it be useful to default these parameters to the built-in ones (for
PK> drivers that have them) that are used for reading and writing? That way,
PK> you can be confident that a format operation results in a readable disk
PK> on the same machine (when using the correct minor device number).
I didn't state that in the document (I'll fix that), but essentially
that's how my current code works: at the first open, you'll get the
defaults for the particular minor device. You can query, modify, and
replace if desired, then format the tracks.