ZFS statistics tool for FreeBSD.
The zfs-stats script displays general ZFS information and
human-readable statistics for the following subsystems:
* ARC
* L2ARC
* DMU (zfetch)
* vdev cache
filesystems: add new category for file systems and related utilities
The filesystems category houses file systems and file system utilities.
It is added mainly to turn the sysutils/fusefs-* pseudo-category into
a proper one, but is also useful for the sundry of other file systems
related ports found in the tree.
Ports that seem like they belong there are moved to the new category.
Two ports, sysutils/fusefs-funionfs and sysutils/fusefs-fusepak are
not moved as they currently don't fetch and don't have TIMESTAMP set
in their distinfo, but that is required to be able to push a rename
of the port by the pre-receive hook.
Approved by: portmgr (rene)
Reviewed by: mat
Pull Request: https://github.com/freebsd/freebsd-ports/pull/302
PR: 281988
sysutils/zfs-stats: Update WWW
Since we lost sight of the fact that this port is of a fork, it is no longer
appropriate to use the original (non-fork) URL for WWW purposes.
Instead, use the URL of the fork.
PR: 258238
Approved by: zirias (mentor), mm (maintainer, timeout)
Differential Revision: https://reviews.freebsd.org/D42397
sysutils/zfs-stats: Remove obsolete shebangfix and update pkg-descr
While here, also cleanup some other port aspects.
PR: 258238
Approved by: tcberner (mentor), mm (maintainer, timeout)
Differential Revision: https://reviews.freebsd.org/D41835
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
Fix printing of non-numeric sysctl variables
In OpenZFS there are several new sysctl variables with non-numeric values
that caused warning messages when trying to print them with a "%d" format.
Fix this by detecting non-numeric values and printing them with "%s".
Reported by: David Schlachter
Fix port on -CURRENT
Due to the import of OpenZFS into -CURRENT there have been changes to the
statistics collected and available by querying via sysctl.
One of the changes is the addition of huge amounts of debug data that is
not relevant for this program, but queried anyway (16 MB on my system at
this time). This delays the display of any output by tens of seconds and
makes zfs-stats unusable on -CURRENT.
A number of parameters reported by zfs-stats is not available at all in
OpenZFS and thus always printed as 0.
OpenZFS specific values could be added, but have not been identifed, yet.
(Only the first 15 lines of the commit message are shown above )
Improve shebangfix framework
- Support multiple values in *_OLD_CMD, i.e. we can now fix both
"/usr/bin/python" and "/usr/bin/env python" at the same time
- Default *_OLD_CMD values are now always appended, so you don't need to specify
them in individual ports
- Add lua support (depends on USES=lua)
- Add more default values, such as "/usr/bin/env foo" for python, perl, bash,
ruby and lua
- Shebangfix now matches whole words, e.g. we will no longer (erroneously)
replace "/usr/bin/perl5.005" with "${perl_CMD}5.005" (but "/usr/bin/perl -tt" is
still (correctly) replaced with "${perl_CMD} -tt")
Note that *_OLD_CMD items containing spaces must now be quoted (e.g.
perl_OLD_CMD=/bin/perl /usr/bin/perl "/usr/bin/env perl")
Update shebangfix usage according to new rules in many ports:
- Remove *_OLD_CMD for patterns now replaced by default
- Quote custom *_OLD_CMD which contain spaces
Fix shebangfix usage in many ports (irrelevant to infrastructure change):
- Remove redundant SHEBANG_LANG (no need to duplicate default langs)
- Remove redundant *_CMD (such as
python_CMD=${LOCALBASE}/bin/python${PYTHON_VER} when USES=python is present)
- Never use *_OLD_CMD in REINPLACE_CMD matchers, these should always look for
exact string
Approved by: portmgr (bapt)
Differential Revision: D3756
zfs-stats displays ZFS statistics in human-readable format including
ARC, L2ARC, zfetch (DMU) and vdev cache statistics.
WWW: http://www.vx.sk/zfs-stats/