freebsd-dev/cmd
Chris Dunlap aded9a6814 Cleanup ZEDLETs
This commit factors out several common ZEDLET code blocks into
zed-functions.sh.  This shortens the length of the scripts, thereby
(hopefully) making them easier to understand and maintain.

In addition, this commit revamps the coding style used by the
scripts to be more consistent and (again, hopefully) maintainable.
It now mostly follows the Google Shell Style Guide.  I've tried to
assimilate the following resources:

  Google Shell Style Guide
  https://google-styleguide.googlecode.com/svn/trunk/shell.xml

  Dash as /bin/sh
  https://wiki.ubuntu.com/DashAsBinSh

  Filenames and Pathnames in Shell: How to do it Correctly
  http://www.dwheeler.com/essays/filenames-in-shell.html

  Common shell script mistakes
  http://www.pixelbeat.org/programming/shell_script_mistakes.html

Finally, this commit updates the exit codes used by the ZEDLETs to be
more consistent with one another.

All scripts run cleanly through ShellCheck <http://www.shellcheck.net/>.
All scripts have been tested on bash and dash.

Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
2015-04-27 12:08:01 -07:00
..
arc_summary Replace sysctl summary with tunables summary. 2015-01-28 11:05:53 -08:00
arcstat Print header properly when terminal resizes 2014-11-14 15:32:30 -08:00
dbufstat Python 3 fixes 2013-11-08 14:30:29 -08:00
fsck_zfs Add /sbin/fsck.zfs helper 2013-01-09 16:54:58 -08:00
mount_zfs Check all vdev labels in 'zpool import' 2015-03-25 14:52:52 -07:00
vdev_id vdev_id: use mawk-compatible regular expression 2014-12-19 12:05:16 -08:00
zdb Illumos 5695 - dmu_sync'ed holes do not retain birth time 2015-03-27 14:51:34 -07:00
zed Cleanup ZEDLETs 2015-04-27 12:08:01 -07:00
zfs 5410 Document -S option to zfs inherit 2015-04-24 15:16:49 -07:00
zhack Illumos 4370, 4371 2014-07-28 14:29:58 -07:00
zinject Make command line guid parsing more tolerant 2014-04-02 13:10:08 -07:00
zpios Fix error message in zpios 2014-01-29 15:11:56 -08:00
zpool Memory leak in make_root_vdev() 2015-04-27 09:18:02 -07:00
zstreamdump Illumos 4757, 4913 2014-08-01 14:28:05 -07:00
ztest Avoid dladdr() in ztest 2015-02-27 13:54:15 -08:00
zvol_id Improve zvol symlink handling. 2014-11-06 11:13:18 -08:00
Makefile.am Install arc_summary.py 2015-03-03 13:38:17 -08:00