mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
libzfs: return (allocated) strings instead of filling buffers
This also expands the zfs version output from 127 characters to However Many Are Actually Set Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13330
This commit is contained in:
+2
-2
@@ -914,8 +914,8 @@ _LIBZFS_H int libzfs_envvar_is_set(char *);
|
||||
/*
|
||||
* Utility functions for zfs version
|
||||
*/
|
||||
_LIBZFS_H void zfs_version_userland(char *, int);
|
||||
_LIBZFS_H int zfs_version_kernel(char *, int);
|
||||
_LIBZFS_H const char *zfs_version_userland(void);
|
||||
_LIBZFS_H char *zfs_version_kernel(void);
|
||||
_LIBZFS_H int zfs_version_print(void);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user