Skip to content

Commit

Permalink
Some minor fixes to the initramfs script (3/3).
Browse files Browse the repository at this point in the history
* Fixing return variable from a bunch of assist functions.
  Returned false when they should have returned true!
  Thanx to markdesouza @ GitHub for help findind this.
  Closes: openzfs#3869

Signed-off-by: Turbo Fredriksson <[email protected]>
  • Loading branch information
FransUrbo committed Oct 4, 2015
1 parent 13864e4 commit dd96f36
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions contrib/shell-common/zfs-functions.in
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,6 @@ import_pool()
else
return 1
fi
else
return 1
fi
fi

Expand Down Expand Up @@ -811,8 +809,6 @@ mount_fs()
else
return 1
fi
else
return 1
fi

return 0
Expand Down Expand Up @@ -854,8 +850,6 @@ decrypt_fs()
else
return 1
fi
else
return 1
fi
done

Expand All @@ -878,8 +872,6 @@ decrypt_fs()
else
return 1
fi
else
return 1
fi

return 0
Expand Down Expand Up @@ -907,8 +899,6 @@ destroy_fs()
else
return 1
fi
else
return 1
fi

return 0
Expand Down Expand Up @@ -949,8 +939,6 @@ clone_snap()
else
return 1
fi
else
return 1
fi

return 0
Expand All @@ -976,8 +964,6 @@ rollback_snap()
else
return 1
fi
else
return 1
fi

return 0
Expand Down

0 comments on commit dd96f36

Please sign in to comment.