Skip to content
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

[Fix] The zfs binary not found #641

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Commits on Apr 22, 2021

  1. Add the 'getbinarypath' function

    STATE:
    I am using sanoid with debian 'bullseye/sid',
    while trying to sync some ZFS dataset between servers
    with a usual user, it seems that some zfs binaries
    are not found on the remote server.
    
    FIX:
    The new function 'getbinarypath' is defined to get
    a full path when using 'zfs' binaries on localhost
    as well as on the remotehost.
    
    Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
    jmauro committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    92bbc22 View commit details
    Browse the repository at this point in the history
  2. Activate the 'getbinarypath' function

    - Create new variable with full path for zfs binaries
      for the local and the remote host.
    - Update 'getchilddatasets' to use the binary full path
    - Update 'getzfsvalue' to use the binary full path
    - Update 'getsnaps' to use the binary full path
    - Update 'getbookmarks' to use the binary full path
    - Update 'getsnapsfallback' to use the binary full path
    - Update 'newsyncsnap' to use the binary full path
    - Update 'pruneoldsyncsnaps' to use the binary full path
    - Update 'resetreceivestate' to use the binary full path
    - Update 'setzfsvalue' to use the binary full path
    - Update 'targetexists' to use the binary full path
    
    Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
    jmauro committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    3a7a8ff View commit details
    Browse the repository at this point in the history