freebsd-skq/share
loos 058ac53f3f MFC r260522, r260523, r261439, r261440, r261586, r264504, r264769, r265193,
r265194, r265197

r260522:
Add the manual page for geom_uncompress(4).

r260523:
Build the geom_uncompress(4) module by default.

Fix geom_uncompress(4) module loading.  Don't link zlib.c (which is a module
itself) directly.

r261439:
Remove some unnecessary code.  The offsets read from the first block are
overwritten a few lines bellow.

r261440:
Fix a logic error.  Because of this inflateReset() wasn't being called and
the output buffer wasn't being cleared between the inflate() calls,
producing zeroed output after the first inflate() call.

This fixes the read of mkuzip(8) images with geom_uncompress(4).

r261586:
Fix the build with DEBUG enabled.  Where possible, fix style(9) issues.

r264504:
Make sure not to do I/O for more than MAXPHYS bytes. Doing so can cause
problems in our providers, such as a KASSERT in md(4). We can initiate
I/O for more than MAXPHYS bytes if we've been given a BIO for MAXPHYS
bytes, the blocks from which we're reading couldn't be compressed and
we had compression in preceeding blocks resulting in misalignment of
the blocks we're trying to read relative to the sector. We're forced to
round up the I/O length to make it an multiple of the sector size.

When we detect the condition, we'll reduce the block count and perform
a "short" read. In g_uzip_done() we need to consider the original I/O
length and stop early if we're about to deflate a block that we didn't
read. By using bio_completed in the cloned BIO and not bio_length to
check for this, we automatically and gracefully handle short reads that
our providers may be doing on top of the short reads we may initiate
ourselves.

r264769:
Keep geom_uncompress(4) in line with geom_uzip(4), bring in the r264504 fix.

Make sure not to start I/O bigger than MAXPHYS bytes.

r265193:
Some style and whitespace fixes.  Reduce the difference between geom_uzip(4)
and geom_uncompress(4).  Now, they produce an almost clean diff(1) output.

Remove a duplicated variable from g_uncompress.c and an unnecessary header
from g_uzip.c.

r265194:
Actually the FEATURE() macro is defined on sys/sysctl.h.

r265197:
Fix a leak in g_uzip_taste().  After retrieve all the block offsets from
the uzip image, free the last data read.
2014-05-16 14:28:55 +00:00
..
colldef
dict Disconnect non-MPSAFE NTFS from the build in preparation for dropping 2012-10-17 11:30:00 +00:00
doc Set up the /usr/tests hierarchy. 2013-12-28 20:05:31 +00:00
dtrace Remove copy/pasteo in the copyright notice. 2012-07-21 07:14:52 +00:00
examples MFC r263173: Remove unnecessary svn:executable property from source file. 2014-04-17 12:42:41 +00:00
i18n Revert r258396 : teach iconv about a WCHAR_T pseudo-type 2014-01-03 23:36:03 +00:00
info Install the template info directory with mode 644 instead of 444 to 2013-01-21 22:54:43 +00:00
keys MFC r260605: 2014-01-13 22:07:36 +00:00
man MFC r260522, r260523, r261439, r261440, r261586, r264504, r264769, r265193, 2014-05-16 14:28:55 +00:00
me
misc MFC r257631: Add myself to the committers-src list and to the calendar. 2013-12-28 13:08:47 +00:00
mk MFC r264822: Allow .WAIT to appear in SUBDIR= lists 2014-05-12 21:22:53 +00:00
mklocale
monetdef Do not overwrite the new UTF-8 files with the old ISO one 2013-07-17 14:00:51 +00:00
msgdef Don't link two different things to the same paths. As tiebreaker I've 2013-01-24 17:00:11 +00:00
numericdef Don't link two different things to the same paths. As tiebreaker I've 2013-01-24 17:00:11 +00:00
security
sendmail
skel MFC r264465: 2014-05-14 15:23:06 +00:00
snmp
syscons MFC r256367: 2013-10-12 07:50:15 +00:00
tabset
termcap MFC r262220: 2014-03-13 01:12:27 +00:00
tests Add sample test programs. 2013-12-29 12:30:06 +00:00
timedef
zoneinfo Use find -exec to install zoneinfo instead of requiring xargs to be an 2013-01-11 18:37:51 +00:00
Makefile Add sample test programs. 2013-12-29 12:30:06 +00:00
Makefile.inc