mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Add convenience 'zfs_get' functions
Add get functions to match existing ones. Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: John Ramsden <johnramsden@riseup.net> Closes #6308
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
#include "zfs_namecheck.h"
|
||||
#include "zfs_prop.h"
|
||||
#include "libzfs_impl.h"
|
||||
#include "libzfs.h"
|
||||
#include "zfs_deleg.h"
|
||||
|
||||
static int userquota_propname_decode(const char *propname, boolean_t zoned,
|
||||
@@ -4353,6 +4354,21 @@ error:
|
||||
return (ret);
|
||||
}
|
||||
|
||||
nvlist_t *
|
||||
zfs_get_all_props(zfs_handle_t *zhp)
|
||||
{
|
||||
return (zhp->zfs_props);
|
||||
}
|
||||
|
||||
nvlist_t *
|
||||
zfs_get_recvd_props(zfs_handle_t *zhp)
|
||||
{
|
||||
if (zhp->zfs_recvd_props == NULL)
|
||||
if (get_recvd_props_ioctl(zhp) != 0)
|
||||
return (NULL);
|
||||
return (zhp->zfs_recvd_props);
|
||||
}
|
||||
|
||||
nvlist_t *
|
||||
zfs_get_user_props(zfs_handle_t *zhp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user