mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 19:04:45 +03:00
Add default user/group/project quota properties
This adds default userquota, groupquota, and projectquota properties to MASTER_NODE_OBJ to make them accessible during zfsvfs_init() (regular DSL properties require dsl_config_lock, which cannot be safely acquired in this context). The zfs_fill_zplprops_impl() logic is updated to read these default properties directly from MASTER_NODE_OBJ. 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:
@@ -384,6 +384,14 @@ zfs_get_zplprop(objset_t *os, zfs_prop_t prop, uint64_t *value)
|
||||
*value = ZFS_ACLTYPE_OFF;
|
||||
#endif
|
||||
break;
|
||||
case ZFS_PROP_DEFAULTUSERQUOTA:
|
||||
case ZFS_PROP_DEFAULTGROUPQUOTA:
|
||||
case ZFS_PROP_DEFAULTPROJECTQUOTA:
|
||||
case ZFS_PROP_DEFAULTUSEROBJQUOTA:
|
||||
case ZFS_PROP_DEFAULTGROUPOBJQUOTA:
|
||||
case ZFS_PROP_DEFAULTPROJECTOBJQUOTA:
|
||||
*value = 0;
|
||||
return (0);
|
||||
default:
|
||||
return (error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user