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

Start porting 2.2.x compat #45

Closed
wants to merge 1 commit into from
Closed

Conversation

xnox
Copy link

@xnox xnox commented May 30, 2023

zfs-linux development branch (version set to 2.1.99, to become 2.2.x series) has a few chnages that prevent go-libzfs form compiling.

I have attempted to start porting it over, however it seems like many operations are incompatible. This no passes go build but fails go test. Will debug further.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
@@ -122,7 +122,7 @@ int dataset_clone(dataset_list_ptr dataset, const char *target, nvlist_ptr props
int dataset_snapshot(const char *path, boolean_t recur, nvlist_ptr props);
int dataset_rollback(dataset_list_ptr dataset, dataset_list_ptr snapshot, boolean_t force);
int dataset_promote(dataset_list_ptr dataset);
int dataset_rename(dataset_list_ptr dataset, const char* new_name, boolean_t recur, boolean_t force_unm);
int dataset_rename(dataset_list_ptr dataset, const char* new_name, boolean_t recur, boolean_t no_unm, boolean_t force_unm);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if this is ok, or if it best to mimick the new C api, and actually create renameflags_t and expose it.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note sure if this is still maintained.
if we have to fork anyway, what about just removing the broken interfaces?

@markusressel
Copy link

Is this related to #49 ?

@aep aep mentioned this pull request Nov 22, 2023
@aep
Copy link

aep commented Nov 22, 2023

the test failure is due to new pool props
https://github.com/kraudcloud/go-libzfs/commit/78446b14cc9dede3275809ce1b6be9074cd529bb

@xnox xnox closed this Sep 5, 2024
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

Successfully merging this pull request may close these issues.

3 participants