Name Date Size #Lines LOC

..--

.gitignoreH A D02-May-202233 21

Makefile.amH A D01-Jun-20241.8 KiB6050

READMEH A D02-May-20221 KiB3120

all-debug.shH A D19-May-2022527 2411

all-syslog.shH A D02-May-20222 KiB5326

data-notify.shH A D02-May-20221.3 KiB4524

deadman-slot_off.shH A D01-Jun-20242.5 KiB7227

generic-notify.shH A D02-May-20221.9 KiB5626

history_event-zfs-list-cacher.sh.inH A D02-May-20222.5 KiB8656

pool_import-led.shH A D22-Sep-20235.9 KiB243114

resilver_finish-notify.shH A D02-May-20221.6 KiB6133

resilver_finish-start-scrub.shH A D02-May-2022654 219

scrub_finish-notify.shH A D02-May-20221.6 KiB6133

statechange-led.shH A D22-Sep-20235.9 KiB243114

statechange-notify.shH A D26-Jan-20232.5 KiB7740

statechange-slot_off.shH A D15-Dec-20231.9 KiB6527

trim_finish-notify.shH A D02-May-2022970 3920

vdev_attach-led.shH A D22-Sep-20235.9 KiB243114

vdev_clear-led.shH A D22-Sep-20235.9 KiB243114

zed-functions.shH A D11-Jan-202421.2 KiB820392

zed.rcH A D01-Jun-20246 KiB200171

README

1Shell scripts are the recommended choice for ZEDLETs that mostly call
2other utilities and do relatively little data manipulation.
3
4Shell scripts MUST work on both bash and dash.
5
6Shell scripts MUST run cleanly through ShellCheck:
7  http://www.shellcheck.net/
8
9General functions reside in "zed-functions.sh".  Use them where applicable.
10
11Additional references that may be of use:
12
13  Google Shell Style Guide
14  https://github.com/google/styleguide/blob/gh-pages/shell.xml
15
16  Dash as /bin/sh
17  https://wiki.ubuntu.com/DashAsBinSh
18
19  Common shell script mistakes
20  http://www.pixelbeat.org/programming/shell_script_mistakes.html
21
22  Filenames and Pathnames in Shell: How to do it Correctly
23  http://www.dwheeler.com/essays/filenames-in-shell.html
24
25  Autoconf: Portable Shell Programming
26  https://www.gnu.org/software/autoconf/manual/autoconf.html#Portable-Shell
27
28Please BE CONSISTENT with the existing style, check for errors,
29minimize dependencies where possible, try to be portable,
30and comment anything non-obvious.  Festina lente.
31