mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Show default quotas in zfs userspace tools
Update zfs userspace, groupspace, and projectspace to display the default quotas when no per-ID specific quota is configured. This ensures tool outputs align with enforced limits. Signed-off-by: Ameer Hamza <ahamza@ixsystems.com> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Tony Hutter <hutter2@llnl.gov>
This commit is contained in:
+1
-1
@@ -853,7 +853,7 @@ _LIBZFS_H uint64_t zvol_volsize_to_reservation(zpool_handle_t *, uint64_t,
|
||||
nvlist_t *);
|
||||
|
||||
typedef int (*zfs_userspace_cb_t)(void *arg, const char *domain,
|
||||
uid_t rid, uint64_t space);
|
||||
uid_t rid, uint64_t space, uint64_t default_quota);
|
||||
|
||||
_LIBZFS_H int zfs_userspace(zfs_handle_t *, zfs_userquota_prop_t,
|
||||
zfs_userspace_cb_t, void *);
|
||||
|
||||
@@ -35,7 +35,7 @@ extern int zpl_get_file_info(dmu_object_type_t,
|
||||
extern int zfs_userspace_one(struct zfsvfs *, zfs_userquota_prop_t,
|
||||
const char *, uint64_t, uint64_t *);
|
||||
extern int zfs_userspace_many(struct zfsvfs *, zfs_userquota_prop_t,
|
||||
uint64_t *, void *, uint64_t *);
|
||||
uint64_t *, void *, uint64_t *, uint64_t *);
|
||||
extern int zfs_set_userquota(struct zfsvfs *, zfs_userquota_prop_t,
|
||||
const char *, uint64_t, uint64_t);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user