<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libstand/ext2fs.c, branch release/13.5.0-p6</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.5.0-p6</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.5.0-p6'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2017-10-12T14:56:28Z</updated>
<entry>
<title>Move lib/libstand to sys/boot/libsa</title>
<updated>2017-10-12T14:56:28Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2017-10-12T14:56:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4eb1313ff2ab43011d091b7560cd688c7838e142'/>
<id>urn:sha1:4eb1313ff2ab43011d091b7560cd688c7838e142</id>
<content type='text'>
Move the sources to sys/boot. Make adjustments related to the
move. Kill LIBSTAND_SRC since it's no longer needed.

Sponsored by: Netflix
</content>
</entry>
<entry>
<title>prefix UFS symbols with UFS_ to reduce namespace pollution</title>
<updated>2017-02-15T19:50:26Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2017-02-15T19:50:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1dc349ab9564b54c1b1f619045e95f966a9aae86'/>
<id>urn:sha1:1dc349ab9564b54c1b1f619045e95f966a9aae86</id>
<content type='text'>
Specifically:
  ROOTINO -&gt; UFS_ROOTINO
  WINO -&gt; UFS_WINO
  NXADDR -&gt; UFS_NXADDR
  NDADDR -&gt; UFS_NDADDR
  NIADDR -&gt; UFS_NIADDR
  MAXSYMLINKLEN_UFS[12] -&gt; UFS[12]_MAXSYMLINKLEN (for consistency)

Also prefix ext2's and nandfs's NDADDR and NIADDR with EXT2_ and NANDFS_

Reviewed by:	kib, mckusick
Obtained from:	NetBSD
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D9536
</content>
</entry>
<entry>
<title>dosfs support in libstand is broken since r298230</title>
<updated>2016-12-30T19:06:29Z</updated>
<author>
<name>Toomas Soome</name>
<email>tsoome@FreeBSD.org</email>
</author>
<published>2016-12-30T19:06:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1ecc8591937769c466e90ad97853b9dacd94b214'/>
<id>urn:sha1:1ecc8591937769c466e90ad97853b9dacd94b214</id>
<content type='text'>
Apparently the libstand dosfs optimization is a bit too optimistic
and did introduce possible memory corruption.

This patch is backing out the bad part and since this results in
dosfs reading full blocks now, we can also remove extra offset argument
from dv_strategy callback.

The analysis of the issue and the backout patch is provided by Mikhail Kupchik.

PR:		214423
Submitted by:	Mikhail Kupchik
Reported by:	Mikhail Kupchik
Reviewed by:	bapt, allanjude
Approved by:	allanjude (mentor)
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D8644
</content>
</entry>
<entry>
<title>A new implementation of the loader block cache</title>
<updated>2016-04-18T23:09:22Z</updated>
<author>
<name>Allan Jude</name>
<email>allanjude@FreeBSD.org</email>
</author>
<published>2016-04-18T23:09:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=87ed2b7f5a213578bd523c9f2ec217934167319a'/>
<id>urn:sha1:87ed2b7f5a213578bd523c9f2ec217934167319a</id>
<content type='text'>
The block cache implementation in loader has proven to be almost useless, and in worst case even slowing down the disk reads due to insufficient cache size and extra memory copy.
Also the current cache implementation does not cache reads from CDs, or work with zfs built on top of multiple disks.
Instead of an LRU, this code uses a simple hash (O(1) read from cache), and instead of a single global cache, a separate cache per block device.
The cache also implements limited read-ahead to increase performance.
To simplify read ahead management, the read ahead will not wrap over bcache end, so in worst case, single block physical read will be performed to fill the last block in bcache.

Booting from a virtual CD over IPMI:
0ms latency, before: 27 second, after: 7 seconds
60ms latency, before: over 12 minutes, after: under 5 minutes.

Submitted by:	Toomas Soome &lt;tsoome@me.com&gt;
Reviewed by:	delphij (previous version), emaste (previous version)
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D4713
</content>
</entry>
<entry>
<title>Add a divisor parameter to twiddle() so that callers can request that output</title>
<updated>2014-12-22T20:42:36Z</updated>
<author>
<name>Ian Lepore</name>
<email>ian@FreeBSD.org</email>
</author>
<published>2014-12-22T20:42:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7668336c8e14f9960ba8954449adc72847c9c187'/>
<id>urn:sha1:7668336c8e14f9960ba8954449adc72847c9c187</id>
<content type='text'>
only happen on every Nth call.  Update the existing twiddle() calls done in
various IO loops to roughly reflect the relative IO sizes.  That is, tftp
and nfs call twiddle() on every 1K block, ufs on every filesystem block,
so the network calls now use a much larger divisor than disk IO calls.

Also add a new twiddle_divisor() function that allows an application to set
a global divisor that is applied on top of the per-call divisors.  Nothing
calls this yet, but loader(8) will be using it to further throttle the
cursor for slow serial consoles.
</content>
</entry>
<entry>
<title>libstand: Reset the seek pointer in ext2fs as done in UFS.</title>
<updated>2013-06-09T01:19:22Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2013-06-09T01:19:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0b4b96e6e5e0cd044dbcb89c9ee2d7cf8ea69a20'/>
<id>urn:sha1:0b4b96e6e5e0cd044dbcb89c9ee2d7cf8ea69a20</id>
<content type='text'>
Based on r134760:

Reset the seek pointer to 0 when a file is successfully opened,
since otherwise the initial seek offset will contain the directory
offset of the filesystem block that contained its directory entry.
This bug was mostly harmless because typically the directory is
less than one filesystem block in size so the offset would be zero.
It did however generally break loading a kernel from the (large)
kernel compile directory.

Also reset the seek pointer when a new inode is opened in read_inode(),
though this is not actually necessary now because all callers set
it afterwards.

PR:		177328
Submitted by:	Eric van Gyzen
Reviewed by:	iedowse
MFC after:	5 days
</content>
</entry>
<entry>
<title>Don't add integers to void pointers.</title>
<updated>2004-10-03T15:58:20Z</updated>
<author>
<name>Stefan Farfeleder</name>
<email>stefanf@FreeBSD.org</email>
</author>
<published>2004-10-03T15:58:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5a9e72a72bb71c430a9cac48a9694a9440082d5e'/>
<id>urn:sha1:5a9e72a72bb71c430a9cac48a9694a9440082d5e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Clean up error handling in libstand filesystem code to be more consistent:</title>
<updated>2004-01-21T20:12:23Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2004-01-21T20:12:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fb6b710c39b8bbefd730af2d2b8704bd646e0456'/>
<id>urn:sha1:fb6b710c39b8bbefd730af2d2b8704bd646e0456</id>
<content type='text'>
- bzipfs and gzipfs now properly return errno values directly from their
  read routines rather than returning -1.
- missing errno values on error returns for the seek routines on almost
  all filesystems were added.
- fstat() now returns -1 if an error occurs rather than ignoring it.
- nfs's readdir() routine now reports valid errno values if an error or
  EOF occurs rather than EPERM  (It was just returning 0 for success and
  1 for failure).
- nullfs used the wrong semantics for every function besides close() and
  seek().  Getting it right for close() appears to be an accident at that.
- read() for buffered files no longer returns 0 (EOF) if an error occurs,
  but returns -1 instead.
</content>
</entry>
<entry>
<title>Use an explicitly-sized type instead of daddr_t for on-disk block</title>
<updated>2002-05-19T10:50:38Z</updated>
<author>
<name>Ian Dowse</name>
<email>iedowse@FreeBSD.org</email>
</author>
<published>2002-05-19T10:50:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=95431d3d423e25394d86aeb06c6a2cde1e3d2d4e'/>
<id>urn:sha1:95431d3d423e25394d86aeb06c6a2cde1e3d2d4e</id>
<content type='text'>
numbers.
</content>
</entry>
<entry>
<title>Add __FBSDID()s to libstand</title>
<updated>2001-09-30T22:28:01Z</updated>
<author>
<name>Matthew Dillon</name>
<email>dillon@FreeBSD.org</email>
</author>
<published>2001-09-30T22:28:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e74b6a84ce2dd9e091aabfbaca4d692983662c0d'/>
<id>urn:sha1:e74b6a84ce2dd9e091aabfbaca4d692983662c0d</id>
<content type='text'>
</content>
</entry>
</feed>
