<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libdisk/write_disk.c, branch releng/5.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F5.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F5.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2002-11-15T13:24:29Z</updated>
<entry>
<title>Fixed style(9)</title>
<updated>2002-11-15T13:24:29Z</updated>
<author>
<name>Yoshihiro Takahashi</name>
<email>nyan@FreeBSD.org</email>
</author>
<published>2002-11-15T13:24:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=021587f8c1a3070a8b179fa295a1a098ae3c0f18'/>
<id>urn:sha1:021587f8c1a3070a8b179fa295a1a098ae3c0f18</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Untangle #ifdefs in the write-end of things by giving each arch its</title>
<updated>2002-10-23T19:52:32Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2002-10-23T19:52:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=532dd2fa864889891025b47b3eefcbbc19f14f44'/>
<id>urn:sha1:532dd2fa864889891025b47b3eefcbbc19f14f44</id>
<content type='text'>
own file and own copy of WriteDisk() to do things in.

This should have happened years ago, instead of adding #ifdefs all
over the place.
</content>
</entry>
<entry>
<title>Separate the struct disklabel filling stuff from the rest of Write_FreeBSD().</title>
<updated>2002-10-23T19:32:18Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2002-10-23T19:32:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=56c0241de65721ddbd15884bf3c958eaee8d06c8'/>
<id>urn:sha1:56c0241de65721ddbd15884bf3c958eaee8d06c8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Swing the weed-whacker around libdisk:</title>
<updated>2002-10-22T09:13:02Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2002-10-22T09:13:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fa9e908771585cd48cb5efa278a51c0026a4446d'/>
<id>urn:sha1:fa9e908771585cd48cb5efa278a51c0026a4446d</id>
<content type='text'>
Constify some things.
Staticize some things.
Remove some unused things.
Prototype some things.
Don't install a gazillion man-pages links.
Drop support for ON-TRACK disk-manager.
</content>
</entry>
<entry>
<title>#include the right thing for PC98</title>
<updated>2002-10-02T08:59:28Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2002-10-02T08:59:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ae23634cab9e2e5775018fafb7b2b6af03057650'/>
<id>urn:sha1:ae23634cab9e2e5775018fafb7b2b6af03057650</id>
<content type='text'>
Sponsored by:	DARPA &amp; NAI Labs.
</content>
</entry>
<entry>
<title>Split MBR and PC98 on-disk sliceformats out from disklabel.h, step 1:</title>
<updated>2002-10-01T07:24:55Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2002-10-01T07:24:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3bb24c35f2fbffed3f175dc2bc72bb2867ff1198'/>
<id>urn:sha1:3bb24c35f2fbffed3f175dc2bc72bb2867ff1198</id>
<content type='text'>
Peter had repocopied sys/disklabel.h to sys/diskpc98.h and sys/diskmbr.h.

These two new copies are still intact copies of disklabel.h and
therefore protected by #ifndef _SYS_DISKLABEL_H_ so #including them
in programs which already include &lt;sys.disklabel.h&gt; is currently a
no-op.

This commit adds a number of such #includes.

Once I have verified that I have fixed all the places which need fixing,
I will commit the updated versions of the three #include files.

Sponsored by:   DARPA &amp; NAI Labs.
</content>
</entry>
<entry>
<title>Retire the bogus uses of the disklabel field d_sbsize and begin to</title>
<updated>2002-05-12T20:49:41Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2002-05-12T20:49:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=77068a7fe2146f5edd3808696532ac3adea99df8'/>
<id>urn:sha1:77068a7fe2146f5edd3808696532ac3adea99df8</id>
<content type='text'>
initialize it to zero so we don't have to have everbody and their
aunt including FFS specific header files.

Sponsored by: DARPA &amp; NAI Labs.
</content>
</entry>
<entry>
<title>Modernize my email address.</title>
<updated>2002-03-25T13:52:45Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2002-03-25T13:52:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=aaead0dfe93b3796585d8da75ce75be5583d4c72'/>
<id>urn:sha1:aaead0dfe93b3796585d8da75ce75be5583d4c72</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add __FBSDID()s to libdisk</title>
<updated>2001-09-30T21:16:57Z</updated>
<author>
<name>Matthew Dillon</name>
<email>dillon@FreeBSD.org</email>
</author>
<published>2001-09-30T21:16:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=96be23e0be4a6c37c76836b5b0915f5745447e45'/>
<id>urn:sha1:96be23e0be4a6c37c76836b5b0915f5745447e45</id>
<content type='text'>
</content>
</entry>
<entry>
<title>+ add u_long sector_size to struct disk (documented in libdisk.3)</title>
<updated>2001-05-13T20:08:54Z</updated>
<author>
<name>Jordan K. Hubbard</name>
<email>jkh@FreeBSD.org</email>
</author>
<published>2001-05-13T20:08:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=96e426f43d27a6ffee029700fa433c292c9dc45a'/>
<id>urn:sha1:96e426f43d27a6ffee029700fa433c292c9dc45a</id>
<content type='text'>
+ make Open_Disk sense the sector size by trying 512, 1024 and 2048
  in this order. This makes the kernel note that
  dscheck(cd1): bio_bcount 512 is not on a sector boundary (ssize 2048)
  dscheck(cd1): bio_bcount 1024 is not on a sector boundary (ssize 2048)
  if 2048 is the sector size. If this worries anyone: the message is from
  /usr/src/sys/kern/subr_diskslice.c and shutups are to be placed there.
+ Have read_block and write_block use an additional parameter, the
  sector size.
+ replace all barfout calls with return NULL, 0, __LINE__, etc.
  Note that this does NOT emit diagnostics. More often than not,
  you don't want library functions to scribble on stderr -- it may
  not even be available. The right thing is to propagate the error
  condition to upper management. The app should take care of errors.
+ use d1-&gt;sector_size instead of 512 in various places. I've left many
  places untouched, especially those writing MBRs. I simply added
  another arg hardcoded as 512. This is because I would not know what
  I'm doing... I felt this approach would be reasonably backward
  compatible and not introduce any new bugs in critical software.
  Famous last words. Messing with MBRs might soon put me in the same
  screwup meister category as, uh, never mind.  :-)
+ bump the max no of disks from 20 to 32 (due to PR 24503).

PR:		8434 / 8436 / 24503
Submitted by:	Jens Schweikhardt &lt;schweikh@schweikhardt.net&gt;
</content>
</entry>
</feed>
