/freebsd-12-stable/contrib/ntp/lib/isc/ |
H A D | quota.c | 18 /* $Id: quota.c,v 1.18 2007/06/19 23:47:17 tbox Exp $ */ 26 #include <isc/quota.h> 30 isc_quota_init(isc_quota_t *quota, int max) { argument 31 quota->max = max; 32 quota->used = 0; 33 quota->soft = 0; 34 return (isc_mutex_init("a->lock)); 38 isc_quota_destroy(isc_quota_t *quota) { argument 39 INSIST(quota->used == 0); 40 quota 47 isc_quota_soft(isc_quota_t *quota, int soft) argument 54 isc_quota_max(isc_quota_t *quota, int max) argument 61 isc_quota_reserve(isc_quota_t *quota) argument 77 isc_quota_release(isc_quota_t *quota) argument 85 isc_quota_attach(isc_quota_t *quota, isc_quota_t **p) argument [all...] |
/freebsd-12-stable/tests/sys/cddl/zfs/tests/quota/ |
H A D | setup.ksh | 33 . $STF_SUITE/tests/quota/quota.kshlib
|
H A D | quota_test.sh | 32 atf_set "descr" "Verify that file size is limited by the file system quota" 38 . $(atf_get_srcdir)/quota.kshlib 39 . $(atf_get_srcdir)/quota.cfg 48 . $(atf_get_srcdir)/quota.kshlib 49 . $(atf_get_srcdir)/quota.cfg 58 atf_set "descr" "Verify that a file write cannot exceed the file system quota" 64 . $(atf_get_srcdir)/quota.kshlib 65 . $(atf_get_srcdir)/quota.cfg 74 . $(atf_get_srcdir)/quota.kshlib 75 . $(atf_get_srcdir)/quota [all...] |
H A D | quota_001_pos.ksh | 33 . $STF_SUITE/tests/quota/quota.kshlib 43 # A ZFS file system quota limits the amount of pool space 44 # available to a file system. Apply a quota and verify 48 # 1) Apply quota to ZFS file system 49 # 2) Create a file which is larger than the set quota 50 # 3) Verify that the resulting file size is less than the quota limit 64 log_assert "Verify that file size is limited by the file system quota" 67 # cleanup to be used internally as otherwise quota assertions cannot be 77 # quota whic [all...] |
H A D | quota_002_pos.ksh | 33 . $STF_SUITE/tests/quota/quota.kshlib 42 # A zfs file system quota limits the amount of pool space 47 # 1) Apply quota to the ZFS file system 48 # 2) Exceed the quota 65 log_assert "Verify that a file write cannot exceed the file system quota" 68 # cleanup to be used internally as otherwise quota assertions cannot be 78 log_must $ZFS set quota=none $TESTPOOL/$TESTFS 84 # Fills the quota & attempts to write another file
|
H A D | quota_003_pos.ksh | 33 . $STF_SUITE/tests/quota/quota.kshlib 42 # A ZFS file system quota limits the amount of pool space 43 # available to a file system dataset. Apply a quota and verify 49 # 1) Apply quota to ZFS file system dataset 50 # 2) Create a file which is larger than the set quota 51 # 3) Verify that the resulting file size is less than the quota limit 65 log_assert "Verify that file size is limited by the file system quota" \ 69 # cleanup to be used internally as otherwise quota assertions cannot be 80 # quota whic [all...] |
H A D | quota_004_pos.ksh | 33 . $STF_SUITE/tests/quota/quota.kshlib 42 # A zfs file system quota limits the amount of pool space 47 # 1) Apply quota to the ZFS file system dataset 48 # 2) Exceed the quota 65 log_assert "Verify that a file write cannot exceed the file system quota" \ 69 # cleanup to be used internally as otherwise quota assertions cannot be 79 log_must $ZFS set quota=none $TESTPOOL/$TESTFS 85 # Fills the quota & attempts to write another file
|
H A D | quota_006_neg.ksh | 42 # Can't set a quota to less than currently being used by the dataset. 46 # 2) Set a quota on the filesystem that is lower than the space 62 log_assert "Verify cannot set quota lower than the space currently in use" 66 log_must $ZFS set quota=none $TESTPOOL/$TESTFS 80 log_mustnot $ZFS set quota=$size $TESTPOOL/$TESTFS 82 log_must $ZFS set quota=$space_used $TESTPOOL/$TESTFS 84 log_pass "As expected cannot set quota lower than space currently in use"
|
H A D | Makefile | 6 TESTSDIR=${TESTSBASE}/sys/cddl/zfs/tests/quota 17 ${PACKAGE}FILES+= quota.kshlib 22 ${PACKAGE}FILES+= quota.cfg
|
H A D | quota_005_pos.ksh | 42 # Verify that quota doesn't inherit its value from parent. 45 # 1) Set quota for parents 47 # 3) Verify that the 'quota' for descendent doesnot inherit the value. 66 log_must $ZFS set quota=none $fs 71 log_assert "Verify that quota does not inherit its value from parent." 81 log_must $ZFS set quota=$quotasize $fs 84 typeset -l quota_space=$(get_prop quota $fs_child) 86 log_fail "The quota of child dataset inherits its value from parent." 88 log_pass "quota doesnot inherit its value from parent as expected."
|
/freebsd-12-stable/contrib/ntp/lib/isc/include/isc/ |
H A D | quota.h | 18 /* $Id: quota.h,v 1.16 2007/06/19 23:47:18 tbox Exp $ */ 27 /*! \file isc/quota.h 31 * a server. It keeps track of the amount of quota in use, and 33 * share a quota. 59 isc_quota_init(isc_quota_t *quota, int max); 61 * Initialize a quota object. 69 isc_quota_destroy(isc_quota_t *quota); 71 * Destroy a quota object. 75 isc_quota_soft(isc_quota_t *quota, int soft); 77 * Set a soft quota [all...] |
/freebsd-12-stable/usr.bin/quota/ |
H A D | Makefile | 4 PROG= quota
|
/freebsd-12-stable/tests/sys/cddl/zfs/tests/refquota/ |
H A D | refquota_002_pos.ksh | 42 # quota & refquota 45 # 1. Set value for quota and refquota. Quota less than refquota. 46 # 2. Creating file which should be limited by quota. 47 # 3. Switch the value of quota and refquota. 73 log_must $ZFS set quota=15M $fs 78 typeset -i used quota 80 quota=$(get_prop quota $fs) 82 ((quota = quota / (102 [all...] |
H A D | refquota_003_pos.ksh | 44 # 1. Setting quota and refquota for parent. refquota < quota 46 # 3. Verify sub-filesystem will only be limited by quota 71 log_must $ZFS set quota=25M $fs 78 typeset -i used quota refquota 89 quota=$(get_prop quota $fs) 91 ((quota = quota / (1024 * 1024))) 92 if [[ $used -gt $quota ]]; the [all...] |
/freebsd-12-stable/tests/sys/cddl/zfs/tests/reservation/ |
H A D | reservation_014_pos.ksh | 43 # A reservation cannot exceed the quota on a dataset 47 # 2) Set a quota on the filesystem 48 # 3) Attempt to set a reservation larger than the quota. Verify 64 log_assert "Verify cannot set reservation larger than quota" 90 # its quota so only need to explicitly set quotas for 93 # A volumes size is effectively its quota. The maximum 99 log_must $ZFS set quota=$quota_set_size $obj 111 orig_quota=`get_prop quota $obj` 114 new_quota=`get_prop quota $obj` 122 log_must $ZFS set quota [all...] |
H A D | reservation_011_pos.ksh | 49 # 2) Get the current quota setting 51 # 4) Verify that the quota value remains unchanged 65 log_assert "Verify reservation settings do not affect quota settings" 71 fs_quota=`$ZFS get quota $TESTPOOL/$TESTFS` 75 new_fs_quota=`$ZFS get quota $TESTPOOL/$TESTFS`
|
/freebsd-12-stable/tests/sys/cddl/zfs/tests/utils_test/ |
H A D | utils_test_004_pos.ksh | 44 # 1. Enable a quota on a ZFS file system. 69 log_must $ZFS set quota=1099511627776 $TESTPOOL/$TESTFS
|
/freebsd-12-stable/contrib/sendmail/contrib/ |
H A D | passwd-to-alias.pl | 13 ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$dir,$shell) = @a;
|
/freebsd-12-stable/tests/sys/cddl/zfs/tests/snapshot/ |
H A D | snapshot_014_pos.ksh | 43 # 1. create a dataset and set a quota with 500m 70 log_must $ZFS set quota=none $TESTPOOL/$TESTCTR/$TESTFS1 77 log_must $ZFS set quota=$FSQUOTA $TESTPOOL/$TESTCTR/$TESTFS1 83 log_note "Make the quota of filesystem is reached"
|
/freebsd-12-stable/libexec/rc/rc.d/ |
H A D | cleartmp | 39 # + lost+found and quota.* in subdirectories are removed. 45 ! \( \( -name quota.user -or -name quota.group \) \
|
/freebsd-12-stable/tests/sys/cddl/zfs/tests/delegate/ |
H A D | zfs_allow_012_neg.ksh | 62 set -A perms create snapshot mount send allow quota reservation \
|
/freebsd-12-stable/tests/sys/cddl/zfs/tests/refreserv/ |
H A D | refreserv_002_pos.ksh | 76 # value. Simply setting refreserv == quota can allow enough writes to 115 log_must $ZFS set quota=25M $ds 122 log_must $ZFS set quota=none $ds
|
H A D | refreserv_004_pos.ksh | 44 # 1. Setting quota and refreservation on parent filesystem. 84 log_must $ZFS set quota=25M $ds 99 log_must $ZFS set quota=none $ds
|
/freebsd-12-stable/tests/sys/cddl/zfs/tests/userquota/ |
H A D | userquota_007_pos.ksh | 40 # userquota/groupquota can be set beyond the fs quota 44 # 1. set quota to a fs and set a larger size of userquota and groupquota 63 log_must $ZFS set quota=none $QFS 68 log_assert "Check set user|group quota to larger than the quota size of a fs" 70 log_must $ZFS set quota=200m $QFS 82 log_note "set user|group quota at a smaller size than it current usage" 89 log_pass "set user|group quota to larger than quota size of a fs pass as expect"
|
/freebsd-12-stable/share/man/man5/ |
H A D | Makefile | 60 quota.user.5 \ 83 MLINKS+=quota.user.5 quota.group.5
|