<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sbin/fdisk/disk.c, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sbin/fdisk/disk.c?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sbin/fdisk/disk.c?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2018-04-26T15:55:14Z</updated>
<entry>
<title>Prefer &lt;fcntl.h&gt; over &lt;sys/fcntl.h&gt; in userland</title>
<updated>2018-04-26T15:55:14Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2018-04-26T15:55:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=6316a812ffce2a07760250a855370f709586d085'/>
<id>urn:sha1:6316a812ffce2a07760250a855370f709586d085</id>
<content type='text'>
While here, delete some extra #includes and apply style(9) sort rules.

ok deraadt@ krw@ mpi@
</content>
</entry>
<entry>
<title>Accept only character special devices rather than generating a core</title>
<updated>2016-03-09T12:55:18Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2016-03-09T12:55:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=0a9d837b0886554e10e3e6bf619b91150620e907'/>
<id>urn:sha1:0a9d837b0886554e10e3e6bf619b91150620e907</id>
<content type='text'>
dump on the attempt to get a disklabel from a regular file.

Regular files have not been acceptable as the 'disk' for some time,
and pledging changed the consequences from a somewhat obscure error
message to an abort().

Issue discovered by espie@.

ok natano@
</content>
</entry>
<entry>
<title>Open disk READONLY if none of i, e or u are specified.</title>
<updated>2015-12-12T02:49:50Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2015-12-12T02:49:50Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=1803853c65a4fd2fc13cc669f6c85f6307daf65a'/>
<id>urn:sha1:1803853c65a4fd2fc13cc669f6c85f6307daf65a</id>
<content type='text'>
Suggestion, original diff and ok naddy@
</content>
</entry>
<entry>
<title>Fix inexplicable use of 'disk' instead of 'disk.name' when trying to</title>
<updated>2015-12-01T06:29:13Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2015-12-01T06:29:13Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=31eae13b1079bc9aa7e5c59c231a6e5f3557de62'/>
<id>urn:sha1:31eae13b1079bc9aa7e5c59c231a6e5f3557de62</id>
<content type='text'>
print the disk's name in an error message.
</content>
</entry>
<entry>
<title>Reduce overburden of unnecessary #include's. Note that param.h is</title>
<updated>2015-11-19T16:14:08Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2015-11-19T16:14:08Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=729290c09912c0d5e7dd018b9160d224c99a3d99'/>
<id>urn:sha1:729290c09912c0d5e7dd018b9160d224c99a3d99</id>
<content type='text'>
included only for DEV_BSIZE.  Use INT64_MAX instead of LLONG_MAX
so stdint.h is enough.  General tidying up of #include sections.

ok GCC
</content>
</entry>
<entry>
<title>Since -l is ignored if -c/-h/-s are specified, make that combination</title>
<updated>2015-11-14T21:17:08Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2015-11-14T21:17:08Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c4a7c6b7320d634c5deddfb83494e28ed0642e65'/>
<id>urn:sha1:c4a7c6b7320d634c5deddfb83494e28ed0642e65</id>
<content type='text'>
invalid and mention the constraint in usage(). Modify the appropriate
field(s) of the global 'disk' as -l/-c/-h/-s are encountered. As a
result use the disklabel information to populate the global 'disk'
only when it has not already been populated. Move test for 'disk'
validity into DISK_open().
</content>
</entry>
<entry>
<title>Move from opening/closing disk for every i/o to opening the disk once</title>
<updated>2015-11-13T02:27:17Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2015-11-13T02:27:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=0468c08fb6167cb97b9d5edc07c92bba65e584e4'/>
<id>urn:sha1:0468c08fb6167cb97b9d5edc07c92bba65e584e4</id>
<content type='text'>
and saving the fd in the global 'disk' structure. Stop passing around
fd's and just use the global.

Makes pledge() feasible.

Prompted by and ok deraadt@
</content>
</entry>
<entry>
<title>Display full disk size when editing GPT, not the truncated MBR size. Display</title>
<updated>2015-11-11T15:39:18Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2015-11-11T15:39:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5fa0bea9834133863c25c99537167ce695b49c56'/>
<id>urn:sha1:5fa0bea9834133863c25c99537167ce695b49c56</id>
<content type='text'>
'disk too large' message only when no GPT is found.

Problems found, fix tested and ok naddy@.
</content>
</entry>
<entry>
<title>Nuke some trailing whitespace that keeps coming back.</title>
<updated>2015-08-27T20:58:27Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2015-08-27T20:58:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=ad651423166dd8862ce5af39e5c6cadde5c04194'/>
<id>urn:sha1:ad651423166dd8862ce5af39e5c6cadde5c04194</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Even better -- readsector() and writesector() become DISK_readsector() and</title>
<updated>2015-03-30T17:11:49Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2015-03-30T17:11:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c2348643a1a77b3807efc59b8fa3beeea7080886'/>
<id>urn:sha1:c2348643a1a77b3807efc59b8fa3beeea7080886</id>
<content type='text'>
DISK_writesector() and live in disk.[ch].
</content>
</entry>
</feed>
