mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
FreeBSD: Wire projects support
While FreeBSD itself does not support projects, there is no reason why it can't be controlled via `zfs project` and other subcommands. Most of the code is actually already there and just needs some revival and sync with Linux, plus enabling some tests not depending on the OS support. Reviewed-by: Ameer Hamza <ahamza@ixsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Alexander Motin <mav@FreeBSD.org> Sponsored by: iXsystems, Inc. Closes #17423
This commit is contained in:
@@ -768,7 +768,7 @@ zfs_mknode(znode_t *dzp, vattr_t *vap, dmu_tx_t *tx, cred_t *cr,
|
||||
if (S_ISREG(vap->va_mode) || S_ISDIR(vap->va_mode)) {
|
||||
/*
|
||||
* With ZFS_PROJID flag, we can easily know whether there is
|
||||
* project ID stored on disk or not. See zfs_space_delta_cb().
|
||||
* project ID stored on disk or not. See zpl_get_file_info().
|
||||
*/
|
||||
if (obj_type != DMU_OT_ZNODE &&
|
||||
dmu_objset_projectquota_enabled(zfsvfs->z_os))
|
||||
|
||||
Reference in New Issue
Block a user