| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | 22-Aug-2023 | - | ||||
| .gitignore | H A D | 22-Aug-2023 | 33 | 2 | 1 | |
| Makefile.am | H A D | 22-Aug-2023 | 1.2 KiB | 54 | 44 | |
| README | H A D | 22-Aug-2023 | 1 KiB | 31 | 20 | |
| all-debug.sh | H A D | 22-Aug-2023 | 565 | 27 | 13 | |
| all-syslog.sh | H A D | 22-Aug-2023 | 1.9 KiB | 51 | 26 | |
| data-notify.sh | H A D | 22-Aug-2023 | 1.4 KiB | 44 | 24 | |
| generic-notify.sh | H A D | 22-Aug-2023 | 1.9 KiB | 55 | 26 | |
| history_event-zfs-list-cacher.sh.in | H A D | 22-Aug-2023 | 2.4 KiB | 86 | 57 | |
| pool_import-led.sh | H A D | 22-Aug-2023 | 18 | 1 | 1 | |
| resilver_finish-notify.sh | H A D | 22-Aug-2023 | 22 | 1 | 1 | |
| resilver_finish-start-scrub.sh | H A D | 22-Aug-2023 | 626 | 20 | 9 | |
| scrub_finish-notify.sh | H A D | 22-Aug-2023 | 1.7 KiB | 60 | 33 | |
| statechange-led.sh | H A D | 22-Aug-2023 | 4.5 KiB | 178 | 84 | |
| statechange-notify.sh | H A D | 22-Aug-2023 | 2.5 KiB | 75 | 39 | |
| trim_finish-notify.sh | H A D | 22-Aug-2023 | 987 | 38 | 20 | |
| vdev_attach-led.sh | H A D | 22-Aug-2023 | 18 | 1 | 1 | |
| vdev_clear-led.sh | H A D | 22-Aug-2023 | 18 | 1 | 1 | |
| zed-functions.sh | H A D | 22-Aug-2023 | 14 KiB | 539 | 239 | |
| zed.rc | H A D | 22-Aug-2023 | 3.5 KiB | 128 | 108 |
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