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

[syncoid] Wrong arguments order for 'zfs get all' #970

Open
Peter2121 opened this issue Dec 17, 2024 · 2 comments
Open

[syncoid] Wrong arguments order for 'zfs get all' #970

Peter2121 opened this issue Dec 17, 2024 · 2 comments

Comments

@Peter2121
Copy link

There is an error in function getlocalzfsvalues.

The command should be:
$rhost $mysudocmd $zfscmd get -s local -H all $fsescaped

(argument all must be just before the dataset/volume name).

The actual function is always failed:

cannot open '-s': dataset does not exist
cannot open 'local': dataset does not exist
cannot open '-H': dataset does not exist

The OS version is FreeBSD 14.2.
ZFS version is 2.2.6-FreeBSD_g33174af15.

@phreaker0
Copy link
Collaborator

The linked line already looks like the way you suggest, can you explain a little more?

@Peter2121
Copy link
Author

Hmm... Strange...

In /usr/local/bin/syncoid version 2.2.0 installed from package https://www.freshports.org/sysutils/sanoid/ I see:

if ($debug) { print "$rhost $mysudocmd $zfscmd get all -s local -H $fsescaped\n"; }
        system("$rhost $mysudocmd $zfscmd get all -s local -H $fsescaped");

I see the same code in the tarball of 2.2.0 release. But, indeed, it is already fixed in master branch (but I cannot find the commit that fixed it).

So, finally, please release the fixed version and update the FreeBSD port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants