<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/usr.sbin/fdformat, branch stable/6</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=stable%2F6</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=stable%2F6'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2005-11-16T08:36:10Z</updated>
<entry>
<title>MFC: 1.30: The default fill byte is 0xf6, not 0xf5.</title>
<updated>2005-11-16T08:36:10Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2005-11-16T08:36:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=01e439f1cfc9066c10866f7cd1d0735cd2fe3953'/>
<id>urn:sha1:01e439f1cfc9066c10866f7cd1d0735cd2fe3953</id>
<content type='text'>
</content>
</entry>
<entry>
<title>One of the DIAGNOSTICS sections should be EXIT STATUS.</title>
<updated>2005-01-18T09:17:49Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2005-01-18T09:17:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e1554781bbd1910bbbcf6a5267407caa1a703865'/>
<id>urn:sha1:e1554781bbd1910bbbcf6a5267407caa1a703865</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Cleanup usr.sbin/fd* so they can compile under WARNS=6.</title>
<updated>2005-01-08T15:46:06Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2005-01-08T15:46:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4c1f1c62ca07a2fa300a24cb4700980773156eb2'/>
<id>urn:sha1:4c1f1c62ca07a2fa300a24cb4700980773156eb2</id>
<content type='text'>
fdcontrol/fdcontrol.c:
	- Add const constraint to an intermediate value
	  which is not supposed to be changed elsewhere.
fdread/fdread.c:
	- Use _devname in favor of devname to avoid name
	  conflicit.
	- -1 is less than any positive number so in order
	  to get the block to function, we should get the
	  block a little earlier.
	- Cast to remove signed when we are sure that a
	  return value is positive, or is compared with
	  an positive number (tracknumber of a floppy
	  disk is not likely to have UINT_MAX/2 anyway)
fdread/fdutil.c:
	- Use more specific initializer
fdwrite/fdwrite.c:
	- Use static on format_track since it's not
	  referenced in other places.
	- Use const char* to represent string constant.

Bump WARNS accordingly.
</content>
</entry>
<entry>
<title>Rewrite of the floppy driver to make it MPsafe &amp; GEOM friendly:</title>
<updated>2004-08-20T15:14:25Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2004-08-20T15:14:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=1b67be7b750ed0f074d730bf1164a82fe1bcf83b'/>
<id>urn:sha1:1b67be7b750ed0f074d730bf1164a82fe1bcf83b</id>
<content type='text'>
	Centralize the fdctl_wr() function by adding the offset in
	the resource to the softc structure.

	Bugfix: Read the drive-change signal from the correct place:
	same place as the ctl register.

	Remove the cdevsw{} related code and implement a GEOM class.

	Ditch the state-engine and park a thread on each controller
	to service the queue.

	Make the interrupt FAST &amp; MPSAFE since it is just a simple
	wakeup(9) call.

	Rely on a per controller mutex to protect the bioqueues.
	Grab GEOMs topology lock when we have to and Giant when
	ISADMA needs it.  Since all access to the hardware is
	isolated in the per controller thread, the rest of the
	driver is lock &amp; Giant free.

	Create a per-drive queue where requests are parked while
	the motor spins up.  When the motor is running the requests
	are purged to the per controller queue.  This allows
	requests to other drives to be serviced during spin-up.

	Only setup the motor-off timeout when we finish the last
	request on the queue and cancel it when a new request
	arrives.  This fixes the bug in the old code where the motor
	turned off while we were still retrying a request.

	Make the "drive-change" work reliably.  Probe the drive on
	first opens.  Probe with a recal and a seek to cyl=1 to
	reset the drive change line and check again to see if we
	have a media.

	When we see the media disappear we destroy the geom provider,
	create a new one, and flag that autodetection should happen
	next time we see a media (unless a specific format is configured).

	Add sysctl tunables for a lot of drive related parameters.
	If you spend a lot of time waiting for floppies you can
	grab the i82078 pdf from Intels web-page and try tuning
	these.

	Add sysctl debug.fdc.debugflags which will enable various
	kinds of debugging printfs.

	Add central definitions of our well known floppy formats.

	Simplify datastructures for autoselection of format and
	call the code at the right times.

	Bugfix: Remove at least one piece of code which would have
	made 2.88M floppies not work.

	Use implied seeks on enhanced controllers.

	Use multisector transfers on all controllers.  Increase
	ISADMA bounce buffers accordingly.

	Fall back to single sector when retrying.  Reset retry count
	on every successful transaction.

	Sort functions in a more sensible order and generally tidy
	up a fair bit here and there.

	Assorted related fixes and adjustments in userland utilities.

WORKAROUNDS:
	Do allow r/w opens of r/o media but refuse actual write
	operations.  This is necessary until the p4::phk_bufwork
	branch gets integrated (This problem relates to remounting
	not reopening devices, see sys/*/*/${fs}_vfsops.c for details).

	Keep PC98's private copy of the old floppy driver compiling
	and presumably working (see below).

TODO (planned)

	Move probing of drives until after interrupts/timeouts work
	(like for ATA/SCSI drives).

TODO (unplanned)

	This driver should be made to work on PC98 as well.

	Test on YE-DATA PCMCIA floppy drive.

	Fix 2.88M media.

This is a MT5 candidate (depends on the bioq_takefirst() addition).
</content>
</entry>
<entry>
<title>Add PC98 supports.</title>
<updated>2004-03-28T13:42:27Z</updated>
<author>
<name>Yoshihiro Takahashi</name>
<email>nyan@FreeBSD.org</email>
</author>
<published>2004-03-28T13:42:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=1a06a03cb8ff7d8bd8a2d64f83af42d81cf730b3'/>
<id>urn:sha1:1a06a03cb8ff7d8bd8a2d64f83af42d81cf730b3</id>
<content type='text'>
Submitted by:	Watanabe Kazuhiro &lt;CQG00620@nifty.ne.jp&gt; (mostly)
</content>
</entry>
<entry>
<title>From PR:</title>
<updated>2004-01-07T05:28:57Z</updated>
<author>
<name>Eric Anholt</name>
<email>anholt@FreeBSD.org</email>
</author>
<published>2004-01-07T05:28:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=624a58b6e6a029e1a0cabe8e163e00a4a54cb1b3'/>
<id>urn:sha1:624a58b6e6a029e1a0cabe8e163e00a4a54cb1b3</id>
<content type='text'>
In fdformat.c a closing parenthesis is at the wrong place.  Instead of
adding sizeof _PATH_DEV + 1 to the length of argv[optind], the length of the
string starting (sizeof _PATH_DEV + 1) characters after argv[optind]'s
beginning (accessing junk memory if we jump over the terminating null
character) is passed to malloc().

PR:		bin/60026
Submitted by:	Stefan Farfeleder &lt;stefan@fafoe.narf.at&gt;
</content>
</entry>
<entry>
<title>Include &lt;string.h&gt; for some prototypes, rather than depending on</title>
<updated>2002-04-01T21:13:17Z</updated>
<author>
<name>Mike Barcroft</name>
<email>mike@FreeBSD.org</email>
</author>
<published>2002-04-01T21:13:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=467a0b0647249f5d842a15dbdcf3696fdffee4b3'/>
<id>urn:sha1:467a0b0647249f5d842a15dbdcf3696fdffee4b3</id>
<content type='text'>
pollution from &lt;strings.h&gt;.
</content>
</entry>
<entry>
<title>mdoc(7) police: doh, again I forgot about this XXX.</title>
<updated>2002-01-10T17:04:10Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2002-01-10T17:04:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ba625eb241ce68dbad84b679d4e8d3ffb702cd7d'/>
<id>urn:sha1:ba625eb241ce68dbad84b679d4e8d3ffb702cd7d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mdoc(7) police: tidy up the markup.</title>
<updated>2002-01-10T17:00:36Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2002-01-10T17:00:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2f1b3c5c75dc0f96605a98d6f60f42bd284168eb'/>
<id>urn:sha1:2f1b3c5c75dc0f96605a98d6f60f42bd284168eb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Second round of floppy disk driver documentation updates: document the</title>
<updated>2001-12-25T21:21:18Z</updated>
<author>
<name>Joerg Wunsch</name>
<email>joerg@FreeBSD.org</email>
</author>
<published>2001-12-25T21:21:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=0377dd590e3866305cd5fdfb4990855cfcbd0dc5'/>
<id>urn:sha1:0377dd590e3866305cd5fdfb4990855cfcbd0dc5</id>
<content type='text'>
changes in the userland utilities.  For fdcontrol(8), i now finally
keep my promise made more than 7 years ago that ``the fdcontrol
utility is currently under development and the user interface will
likely change''. :-)
</content>
</entry>
</feed>
