The driver was recently modified to do a verification after formatting.
However, this solution is less than ideal. Ideally, the format code should
not attempt to verify the format, since a failed verify is not necessarily a
failed format. Also, you should be able to call the verify code from
outside the driver (i.e. from a user application). Finally, the verify code
should not return success or failure. Instead, it should return either a list
of bad blocks on the media (or an empty list if the format was
successful). That way, after a user application does a format call and a
verify call, it can then pass a bad block list to the appropriate newfs
program and ensure that those blocks are "spared".
This bug is marked "postponed", since the ideal implementation requires
additional support from the I/O Kit. When no higher priority bugs remain,
a quick hack workaround might be done just to be able to ship a decent
format tool. However, this is a low priority.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=189212
The driver was recently modified to do a verification after formatting.
However, this solution is less than ideal. Ideally, the format code should
not attempt to verify the format, since a failed verify is not necessarily a
failed format. Also, you should be able to call the verify code from
outside the driver (i.e. from a user application). Finally, the verify code
should not return success or failure. Instead, it should return either a list
of bad blocks on the media (or an empty list if the format was
successful). That way, after a user application does a format call and a
verify call, it can then pass a bad block list to the appropriate newfs
program and ensure that those blocks are "spared".
This bug is marked "postponed", since the ideal implementation requires
additional support from the I/O Kit. When no higher priority bugs remain,
a quick hack workaround might be done just to be able to ship a decent
format tool. However, this is a low priority.