Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.gitignore | H A D | 02-May-2022 | 33 | 2 | 1 | |
Makefile.am | H A D | 01-Jun-2024 | 1.8 KiB | 60 | 50 | |
README | H A D | 02-May-2022 | 1 KiB | 31 | 20 | |
all-debug.sh | H A D | 19-May-2022 | 527 | 24 | 11 | |
all-syslog.sh | H A D | 02-May-2022 | 2 KiB | 53 | 26 | |
data-notify.sh | H A D | 02-May-2022 | 1.3 KiB | 45 | 24 | |
deadman-slot_off.sh | H A D | 01-Jun-2024 | 2.5 KiB | 72 | 27 | |
generic-notify.sh | H A D | 02-May-2022 | 1.9 KiB | 56 | 26 | |
history_event-zfs-list-cacher.sh.in | H A D | 02-May-2022 | 2.5 KiB | 86 | 56 | |
pool_import-led.sh | H A D | 22-Sep-2023 | 5.9 KiB | 243 | 114 | |
resilver_finish-notify.sh | H A D | 02-May-2022 | 1.6 KiB | 61 | 33 | |
resilver_finish-start-scrub.sh | H A D | 02-May-2022 | 654 | 21 | 9 | |
scrub_finish-notify.sh | H A D | 02-May-2022 | 1.6 KiB | 61 | 33 | |
statechange-led.sh | H A D | 22-Sep-2023 | 5.9 KiB | 243 | 114 | |
statechange-notify.sh | H A D | 26-Jan-2023 | 2.5 KiB | 77 | 40 | |
statechange-slot_off.sh | H A D | 15-Dec-2023 | 1.9 KiB | 65 | 27 | |
trim_finish-notify.sh | H A D | 02-May-2022 | 970 | 39 | 20 | |
vdev_attach-led.sh | H A D | 22-Sep-2023 | 5.9 KiB | 243 | 114 | |
vdev_clear-led.sh | H A D | 22-Sep-2023 | 5.9 KiB | 243 | 114 | |
zed-functions.sh | H A D | 11-Jan-2024 | 21.2 KiB | 820 | 392 | |
zed.rc | H A D | 01-Jun-2024 | 6 KiB | 200 | 171 |
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