<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/sys/modules/geom, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2019-12-29T21:16:03Z</updated>
<entry>
<title>Remove GEOM_SCHED class and gsched tool.</title>
<updated>2019-12-29T21:16:03Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2019-12-29T21:16:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=86c06ff8864bc0e2233980c741b689714000850d'/>
<id>urn:sha1:86c06ff8864bc0e2233980c741b689714000850d</id>
<content type='text'>
This code was not actively maintained since it was introduced 10 years ago.
It lacks support for many later GEOM features, such as direct dispatch,
unmapped I/O, stripesize/stripeoffset, resize, etc.  Plus it is the only
remaining use of GEOM nstart/nend request counters, used there to implement
live insertion/removal, questionable by itself.  Plus, as number of people
commented, GEOM is not the best place for I/O scheduler, since it has
limited information about layers both above and below it, required for
efficient scheduling.  Plus with the modern shift to SSDs there is just no
more significant need for this kind of scheduling.

Approved by:	imp, phk, luigi
Relnotes:	yes
</content>
</entry>
<entry>
<title>Use kmod.opts.mk to fix standalone build.</title>
<updated>2019-11-21T18:21:30Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2019-11-21T18:21:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=c0632867ba9d9a213e4406b3c6c60083e111bc46'/>
<id>urn:sha1:c0632867ba9d9a213e4406b3c6c60083e111bc46</id>
<content type='text'>
</content>
</entry>
<entry>
<title>geom_uzip(4), mkuzip(8): Add Zstd image mode</title>
<updated>2019-08-13T23:32:56Z</updated>
<author>
<name>Conrad Meyer</name>
<email>cem@FreeBSD.org</email>
</author>
<published>2019-08-13T23:32:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=eefd8f96fb3b3e378cbf948a14dcfde112f12dfe'/>
<id>urn:sha1:eefd8f96fb3b3e378cbf948a14dcfde112f12dfe</id>
<content type='text'>
The Zstd format bumps the CLOOP major number to 4 to avoid incompatibility
with older systems.  Support in geom_uzip(4) is conditional on the ZSTDIO
kernel option, which is enabled in amd64 GENERIC, but not all in-tree
configurations.

mkuzip(8) was modified slightly to always initialize the nblocks + 1'th
offset in the CLOOP file format.  Previously, it was only initialized in the
case where the final compressed block happened to be unaligned w.r.t.
DEV_BSIZE.  The "Fake" last+1 block change in r298619 means that the final
compressed block's 'blen' was never correct unless the compressed uzip image
happened to be BSIZE-aligned.  This happened in about 1 out of every 512
cases.  The zlib and lzma decompressors are probably tolerant of extra trash
following the frame they were told to decode, but Zstd complains that the
input size is incorrect.

Correspondingly, geom_uzip(4) was modified slightly to avoid trashing the
nblocks + 1'th offset when it is known to be initialized to a good value.
This corrects the calculated final real cluster compressed length to match
that printed by mkuzip(8).

mkuzip(8) was refactored somewhat to reduce code duplication and increase
ease of adding other compression formats.

  * Input block size validation was pulled out of individual compression
    init routines into main().

  * Init routines now validate a user-provided compression level or select
    an algorithm-specific default, if none was provided.

  * A new interface for calculating the maximal compressed size of an
    incompressible input block was added for each driver.  The generic code
    uses it to validate against MAXPHYS as well as to allocate compression
    result buffers in the generic code.

  * Algorithm selection is now driven by a table lookup, to increase ease of
    adding other formats in the future.

mkuzip(8) gained the ability to explicitly specify a compression level with
'-C'.  The prior defaults -- 9 for zlib and 6 for lzma -- are maintained.
The new zstd default is 9, to match zlib.

Rather than select lzma or zlib with '-L' or its absense, respectively, a
new argument '-A &lt;algorithm&gt;' is provided to select 'zlib', 'lzma', or
'zstd'.  '-L' is considered deprecated, but will probably never be removed.

All of the new features were documented in mkuzip.8; the page was also
cleaned up slightly.

Relnotes:	yes
</content>
</entry>
<entry>
<title>Remove deprecated GEOM classes</title>
<updated>2019-08-13T20:06:55Z</updated>
<author>
<name>Conrad Meyer</name>
<email>cem@FreeBSD.org</email>
</author>
<published>2019-08-13T20:06:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=ac8e5d02cf9fcbe09e2077499804d791fc70122a'/>
<id>urn:sha1:ac8e5d02cf9fcbe09e2077499804d791fc70122a</id>
<content type='text'>
Follow-up on r322318 and r322319 and remove the deprecated modules.

Shift some now-unused kernel files into userspace utilities that incorporate
them.  Remove references to removed GEOM classes in userspace utilities.

Reviewed by:	imp (earlier version)
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D21249
</content>
</entry>
<entry>
<title>Update geom_uzip to use new zlib:</title>
<updated>2019-08-08T06:27:39Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2019-08-08T06:27:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=2b0cabbdaeac61bdb07909cb0ec995aba36e06b0'/>
<id>urn:sha1:2b0cabbdaeac61bdb07909cb0ec995aba36e06b0</id>
<content type='text'>
 - Use new zlib headers;
 - Removed z_alloc and z_free to use the common sys/dev/zlib version.
 - Replace z_compressBound with compressBound from zlib.

While there, limit LZMA CFLAGS to apply only for g_uzip_lzma.c.

PR:		229763
Submitted by:	Yoshihiro Ota &lt;ota j email ne jp&gt; (with changes,
		bugs are mine)
Differential Revision:	https://reviews.freebsd.org/D20271
</content>
</entry>
<entry>
<title>Add g_label_flashmap.c to the module, should have been part of r345480.</title>
<updated>2019-04-07T16:33:22Z</updated>
<author>
<name>Ian Lepore</name>
<email>ian@FreeBSD.org</email>
</author>
<published>2019-04-07T16:33:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=48c5f8f1e25b068bcb0353714b195b6fc190776a'/>
<id>urn:sha1:48c5f8f1e25b068bcb0353714b195b6fc190776a</id>
<content type='text'>
Reported by:	Jia-Shiun Li &lt;jiashiun@gmail.com&gt;
</content>
</entry>
<entry>
<title>Revert r344675</title>
<updated>2019-03-01T02:08:12Z</updated>
<author>
<name>Justin Hibbits</name>
<email>jhibbits@FreeBSD.org</email>
</author>
<published>2019-03-01T02:08:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=f476f0add8b196246b6b9155b833c9db734d4a65'/>
<id>urn:sha1:f476f0add8b196246b6b9155b833c9db734d4a65</id>
<content type='text'>
It's an incorrect approach to solve the problem.  We already have a
fdt/fdt_slicer module, it just needs to be wired into the build.
</content>
</entry>
<entry>
<title>GEOM: Add fdt_slicer to the GEOM flashmap module for fdt-based platforms</title>
<updated>2019-02-28T23:00:47Z</updated>
<author>
<name>Justin Hibbits</name>
<email>jhibbits@FreeBSD.org</email>
</author>
<published>2019-02-28T23:00:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=c8e720aaaeb6b1efe836459c30b0e1782ade5c2a'/>
<id>urn:sha1:c8e720aaaeb6b1efe836459c30b0e1782ade5c2a</id>
<content type='text'>
geom_flashmap depends on a slicer being available in order to do any
work.  On fdt platforms this is provided by fdt_slicer, but this needs
to be available.  Often it's compiled into the kernel for platforms that
boot from the relevant media, but this is not always the case.  Add the
file to the geom_flashmap module so that it can be used on platforms
which don't always need this functionality available.
</content>
</entry>
<entry>
<title>Modularize xz.</title>
<updated>2019-02-26T19:55:03Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2019-02-26T19:55:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=e8643b01e6312a56d1e44a760fb4e95f0b10b54c'/>
<id>urn:sha1:e8643b01e6312a56d1e44a760fb4e95f0b10b54c</id>
<content type='text'>
Embedded lzma decompression library becomes a module usable by other
consumers, in addition to geom_uzip.

Most important code changes are
- removal of XZ_DEC_SINGLE define, we need the code to work
  with XZ_DEC_DYNALLOC;
- xz_crc32_init() call is removed from geom_uzip, xz module handles
  initialization on its own.

xz is no longer embedded into geom_uzip, instead the depend line for
the module is provided, and corresponding kernel option is added to
each MIPS kernel config file using geom_uzip.

The commit also carries unrelated cleanup by removing excess "device geom_uzip"
in places which were missed in r344479.

Reviewed by:	cem, hselasky, ray, slavash (previous versions)
Sponsored by:	Mellanox Technologies
Differential revision:	https://reviews.freebsd.org/D19266
MFC after:	3 weeks
</content>
</entry>
<entry>
<title>Fix LINT build.</title>
<updated>2018-01-26T06:21:24Z</updated>
<author>
<name>Li-Wen Hsu</name>
<email>lwhsu@FreeBSD.org</email>
</author>
<published>2018-01-26T06:21:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=78b42ee37c4c6764c68fd7313ff2af2b417e73ce'/>
<id>urn:sha1:78b42ee37c4c6764c68fd7313ff2af2b417e73ce</id>
<content type='text'>
Approved by:	delphij
</content>
</entry>
</feed>
