-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zed_guid_to_pool() broken on hosts with dash as /bin/sh #11954
Labels
Status: Triage Needed
New issue which needs to be triaged
Type: Defect
Incorrect behavior (e.g. crash, hang)
Comments
nabijaczleweli
added a commit
to nabijaczleweli/zfs
that referenced
this issue
Apr 27, 2021
Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11954
nabijaczleweli
added a commit
to nabijaczleweli/zfs
that referenced
this issue
Apr 27, 2021
Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11954
13 tasks
Added this to #11935 |
nabijaczleweli
added a commit
to nabijaczleweli/zfs
that referenced
this issue
Apr 27, 2021
Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11954
nabijaczleweli
added a commit
to nabijaczleweli/zfs
that referenced
this issue
Apr 29, 2021
Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11954
nabijaczleweli
added a commit
to nabijaczleweli/zfs
that referenced
this issue
Apr 29, 2021
Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11954
nabijaczleweli
added a commit
to nabijaczleweli/zfs
that referenced
this issue
Apr 29, 2021
Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11954
nabijaczleweli
added a commit
to nabijaczleweli/zfs
that referenced
this issue
Apr 29, 2021
Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11954
nabijaczleweli
added a commit
to nabijaczleweli/zfs
that referenced
this issue
Apr 29, 2021
Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11954
nabijaczleweli
added a commit
to nabijaczleweli/zfs
that referenced
this issue
Apr 29, 2021
Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11954
nabijaczleweli
added a commit
to nabijaczleweli/zfs
that referenced
this issue
Apr 29, 2021
Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11954
behlendorf
pushed a commit
to behlendorf/zfs
that referenced
this issue
May 10, 2021
Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11935 Closes openzfs#11954
sempervictus
pushed a commit
to sempervictus/zfs
that referenced
this issue
May 31, 2021
Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11935 Closes openzfs#11954
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Status: Triage Needed
New issue which needs to be triaged
Type: Defect
Incorrect behavior (e.g. crash, hang)
System information
Describe the problem you're observing
On hosts with
dash
as/bin/sh
thezed_guid_to_pool()
helper function inzed.d/zed-functions.sh
doesn't work due to using the dash-internalprintf
with a format it doesn't understand.Suggested workaround is to either use the binary printf, ie
/usr/bin/printf
although/bin/printf
works on newer Linux distros, or to simply declare the zed.d scripts to be bash scripts with#!/bin/bash
.The latter would likely be more honest with regards to how much is actually tested with other shells, and make it easier for developers with nice features like local variables in functions etc. There's nothing wrong with stating that a script is a bash-script, it's just being honest with the dependency. But saying that a script is an sh-script opens up cans of worms since then you must really really be sh, which I know openzfs knows and tries hard to be but yet cases like this are missed despite shellcheck etc.
Describe how to reproduce the problem
Include any warning/errors/backtraces from the system logs
The text was updated successfully, but these errors were encountered: