This change adds a number of simple (simplistic, even!) interfaces to libzfs_core. It's quite possible that I have not thought through all required details or possible use-cases. But not having any functionality to, for example, rename or destroy a dataset is a big limitation of the current interface. The new functions are: - `lzc_rename` - `lzc_destroy` - `lzc_set_prop` (works only for a single property) - `lzc_get_props` (all properties, no filter / selector in the current implementation) - `lzc_inherit_prop` (only a plain inherit or revert to default, no way to revert to a received value) - `lzc_list_children` (actually makes a single iteration step over children) - `lzc_list_snaps` (same as above)
All functions are very thin wrappers around the corresponding ioctls. Maybe, that makes the functions less convenient to use than they could be. But the change is really small and is really easy to understand. You can view, comment on, or merge this pull request online at: https://github.com/openzfs/openzfs/pull/508 -- Commit Summary -- * 0000 a number of light-weight extensions to libzfs_core -- File Changes -- M usr/src/lib/libzfs_core/common/libzfs_core.c (100) M usr/src/lib/libzfs_core/common/libzfs_core.h (10) M usr/src/lib/libzfs_core/common/mapfile-vers (9) -- Patch Links -- https://github.com/openzfs/openzfs/pull/508.patch https://github.com/openzfs/openzfs/pull/508.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/openzfs/openzfs/pull/508 ------------------------------------------ openzfs-developer Archives: https://openzfs.topicbox.com/groups/developer/discussions/T94e916bc5cb9e1ed-M051acf5d57d0eaff88106095 Powered by Topicbox: https://topicbox.com
