Searched refs:quota (Results 1 - 25 of 76) sorted by relevance

1234

/freebsd-11-stable/contrib/ntp/lib/isc/
H A Dquota.c18 /* $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(&quota->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...]
H A Dmem.c140 size_t quota; member in struct:isc__mem
268 isc__mem_setquota(isc_mem_t *ctx, size_t quota);
539 * Did we hit the quota for this context?
542 if (ctx->quota != 0U && ctx->total + increment > ctx->quota)
611 * hit the quota for this context.
614 * XXXRTH "At quota" notification here.
667 if (ctx->quota != 0U && ctx->total + size > ctx->quota) {
939 ctx->quota
1699 isc__mem_setquota(isc_mem_t *ctx0, size_t quota) argument
1713 size_t quota; local
[all...]
/freebsd-11-stable/contrib/ntp/lib/isc/include/isc/
H A Dquota.h18 /* $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-11-stable/usr.bin/quota/
H A DMakefile4 PROG= quota
/freebsd-11-stable/contrib/sendmail/contrib/
H A Dpasswd-to-alias.pl13 ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$dir,$shell) = @a;
/freebsd-11-stable/etc/rc.d/
H A Dcleartmp39 # + lost+found and quota.* in subdirectories are removed.
45 ! \( \( -name quota.user -or -name quota.group \) \
/freebsd-11-stable/share/man/man5/
H A DMakefile57 quota.user.5 \
77 MLINKS+=quota.user.5 quota.group.5
/freebsd-11-stable/contrib/netbsd-tests/fs/ffs/
H A Dt_clearquota.sh32 "clear quota with ${q} enabled" -b ${e} ${v} ${q}
35 "clear quota with both enabled" -b ${e} ${v} "both"
37 "clear quota for new id with both enabled, WAPBL" -bl ${e} ${v} "both"
63 atf_fail "wrong quota type"
67 #set and check the expected quota
75 env LD_PRELOAD=/usr/lib/librumphijack.so RUMPHIJACK=vfs=getvfsstat,blanket=/mnt quota -${q} -v ${id}
83 #check that we do not get positive reply for any quota type
88 env LD_PRELOAD=/usr/lib/librumphijack.so RUMPHIJACK=vfs=getvfsstat,blanket=/mnt quota -${q} -v ${id}
H A Dt_getquota.sh32 "get quota with ${q} enabled" -b ${e} ${v} ${q}
35 "get quota with both enabled" -b ${e} ${v} "both"
60 atf_fail "wrong quota type"
64 #check that we can get the expected quota
69 env LD_PRELOAD=/usr/lib/librumphijack.so RUMPHIJACK=vfs=getvfsstat,blanket=/mnt quota -${q} -v
76 #check that we do not get positive reply for non-expected quota
81 env LD_PRELOAD=/usr/lib/librumphijack.so RUMPHIJACK=vfs=getvfsstat,blanket=/mnt quota -${q} -v
109 atf_fail "wrong quota type"
H A Dt_setquota.sh32 "set quota with ${q} enabled" -b ${e} ${v} ${q}
34 "set quota for new id with ${q} enabled" -b ${e} ${v} ${q}
36 "set default quota with ${q} enabled" -b ${e} ${v} ${q}
39 "set quota with both enabled" -b ${e} ${v} "both"
41 "set quota for new id with both enabled" -b ${e} ${v} "both"
43 "set quota for new id with both enabled, WAPBL" -bl ${e} ${v} "both"
45 "set default quota with both enabled" -b ${e} ${v} "both"
70 atf_fail "wrong quota type"
74 #check that we can set the expected quota
83 env LD_PRELOAD=/usr/lib/librumphijack.so RUMPHIJACK=vfs=getvfsstat,blanket=/mnt quota
[all...]
H A Dt_quotalimit.sh32 "hit hard limit quota with ${q} enabled" -b ${e} ${v} ${q}
34 "hit hard limit quota with ${q} enabled, WAPBL" -bl ${e} ${v} ${q}
36 "hit soft limit quota with ${q} enabled after grace time" \
39 "hit hard limit ino quota with ${q} enabled" -b ${e} ${v} ${q}
41 "hit hard limit ino quota with ${q} enabled, WAPBL" -bl ${e} ${v} ${q}
43 "hit soft limit ino quota with ${q} enabled after grace time" \
46 "new id herit from default for ${q} quota" -b ${e} ${v} ${q}
48 "new id herit from default for ${q} quota, WAPBL" -bl ${e} ${v} ${q}
50 "new id herit from default for ${q} ino quota, WAPBL" -bl ${e} ${v} ${q}
76 atf_fail "wrong quota typ
[all...]
/freebsd-11-stable/contrib/netbsd-tests/fs/nfs/
H A Dt_rquotad.sh31 "get NFS quota with ${q} enabled" ${e} ${v} ${q}
53 atf_fail "wrong quota type"
83 #set a quota limit (and check that we can read it back)
92 env LD_PRELOAD=/usr/lib/librumphijack.so RUMPHIJACK=vfs=getvfsstat,blanket=/export quota -${q} -v
130 #now try a quota(8) call
137 quota -${q} -v
/freebsd-11-stable/sys/geom/journal/
H A Dg_journal_ufs.c36 #include <ufs/ufs/quota.h>
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Ddsl_dir.c65 * or snapshots, even though they're not exceeding their space quota.
1190 uint64_t parentspace, myspace, quota, used; local
1196 quota = UINT64_MAX;
1206 quota = dsl_dir_phys(dd)->dd_quota;
1214 quota = MIN(quota, poolsize);
1233 if (used > quota) {
1234 /* over quota */
1239 * the space left in our quota
1241 myspace = MIN(parentspace, quota
1261 uint64_t quota; local
1652 dsl_dir_set_quota(const char *ddname, zprop_source_t source, uint64_t quota) argument
[all...]
H A Ddsl_synctask.c215 uint64_t quota = dsl_pool_unreserved_space(dp, local
220 if (used + dst->dst_space * 3 > quota) {
H A Dzcp_synctask.c306 uint64_t quota = dsl_pool_unreserved_space(dp, local
311 if (used + funcspace > quota) {
H A Dzfs_vfsops.c67 #include <ufs/ufs/quota.h>
136 uint64_t quota, used = 0; local
148 buf, sizeof(quota), 1, &quota)) != 0) {
153 * quota(8) uses bsoftlimit as "quoota", and hardlimit as "limit".
156 dqp->dqb_bsoftlimit = dqp->dqb_bhardlimit = btodb(quota);
166 * Setting this to 0 causes FreeBSD quota(8) to print
242 * Look at zfs_fuid_overquota() to look up a quota.
243 * zap_lookup(something, quotaobj, fuidstring, sizeof(long long), 1, &quota)
245 * See zfs_set_userquota() to set a quota
911 zfs_set_userquota(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, const char *domain, uint64_t rid, uint64_t quota) argument
975 uint64_t used, quota, usedobj, quotaobj; local
[all...]
/freebsd-11-stable/usr.sbin/quotaon/
H A Dquotaon.c48 * Turn quota on/off for a filesystem.
53 #include <ufs/ufs/quota.h>
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Dzfs_vfsops.h154 const char *domain, uint64_t rid, uint64_t quota);
/freebsd-11-stable/sys/ufs/ufs/
H A Dufs_gjournal.c42 #include <ufs/ufs/quota.h>
H A Dufs_inode.c52 #include <ufs/ufs/quota.h>
H A Dufs_vfsops.c54 #include <ufs/ufs/quota.h>
/freebsd-11-stable/lib/libprocstat/
H A Dcommon_kvm.c46 #include <ufs/ufs/quota.h>
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/
H A Dmlx4_resource_tracker.c330 if (allocated + count > res_alloc->quota[slave]) {
331 mlx4_warn(dev, "VF %d port %d res %s: quota exceeded, count %d alloc %d quota %d\n",
333 allocated, res_alloc->quota[slave]);
428 res_alloc->quota[vf] = (num_instances / 2) + res_alloc->guaranteed[vf];
435 res_alloc->quota[vf] += dev->caps.reserved_mtts;
461 priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[pf];
463 priv->mfunc.master.res_tracker.res_alloc[RES_CQ].quota[pf];
465 priv->mfunc.master.res_tracker.res_alloc[RES_SRQ].quota[pf];
467 priv->mfunc.master.res_tracker.res_alloc[RES_MTT].quota[p
[all...]
/freebsd-11-stable/contrib/opie/
H A Dopielogin.c146 #include <sys/quota.h>
707 quota(Q_SETUID, 0, 0, 0);
1235 if (quota(Q_SETUID, thisuser.pw_uid, 0, 0) < 0 && errno != EINVAL) {
1243 perror("quota (Q_SETUID)");
1303 quota(Q_DOWARN, thisuser.pw_uid, (dev_t) - 1, 0);

Completed in 175 milliseconds

1234