Symbol: dqblk
lib/libquota/quota_oldfiles.c
322
dqblk_getblocks(const struct dqblk *dq, struct quotaval *qv)
lib/libquota/quota_oldfiles.c
332
dqblk_getfiles(const struct dqblk *dq, struct quotaval *qv)
lib/libquota/quota_oldfiles.c
342
dqblk_putblocks(const struct quotaval *qv, struct dqblk *dq)
lib/libquota/quota_oldfiles.c
352
dqblk_putfiles(const struct quotaval *qv, struct dqblk *dq)
lib/libquota/quota_oldfiles.c
485
struct dqblk dq;
lib/libquota/quota_oldfiles.c
509
pos = qk->qk_id * sizeof(struct dqblk);
lib/libquota/quota_oldfiles.c
572
struct dqblk dq;
lib/libquota/quota_oldfiles.c
596
pos = qk->qk_id * sizeof(struct dqblk);
lib/libquota/quota_oldfiles.c
740
oqc->oqc_numusers = st.st_size / sizeof(struct dqblk);
lib/libquota/quota_oldfiles.c
748
oqc->oqc_numgroups = st.st_size / sizeof(struct dqblk);
sys/compat/common/compat_50_quota.c
124
quotavals_to_dqblk(&blocks, &files, &dqblk);
sys/compat/common/compat_50_quota.c
125
error = copyout(&dqblk, SCARG(uap, arg), sizeof(dqblk));
sys/compat/common/compat_50_quota.c
129
error = copyin(SCARG(uap, arg), &dqblk, sizeof(dqblk));
sys/compat/common/compat_50_quota.c
133
dqblk_to_quotavals(&dqblk, &blocks, &files);
sys/compat/common/compat_50_quota.c
72
struct dqblk dqblk;
sys/fs/nfs/common/nfs_commonsubs.c
2060
struct dqblk dqb;
sys/fs/nfs/common/nfs_commonsubs.c
832
struct dqblk dqb;
sys/ufs/lfs/ulfs_quota.h
70
struct dqblk dq1_dqb; /* d: actual usage & quotas */
sys/ufs/lfs/ulfs_quota1.c
538
struct dqblk dqb;
sys/ufs/lfs/ulfs_quota1.c
646
setquota1(struct mount *mp, u_long id, int type, struct dqblk *dqb)
sys/ufs/lfs/ulfs_quota1.c
701
struct dqblk usage;
sys/ufs/lfs/ulfs_quota1.c
704
error = copyin(addr, (void *)&usage, sizeof (struct dqblk));
sys/ufs/lfs/ulfs_quota1.c
803
aiov.iov_len = sizeof (struct dqblk);
sys/ufs/lfs/ulfs_quota1.c
804
auio.uio_resid = sizeof (struct dqblk);
sys/ufs/lfs/ulfs_quota1.c
805
auio.uio_offset = (off_t)id * sizeof (struct dqblk);
sys/ufs/lfs/ulfs_quota1.c
809
if (auio.uio_resid == sizeof(struct dqblk) && error == 0)
sys/ufs/lfs/ulfs_quota1.c
810
memset((void *)&dq->dq_un.dq1_dqb, 0, sizeof(struct dqblk));
sys/ufs/lfs/ulfs_quota1.c
857
aiov.iov_len = sizeof (struct dqblk);
sys/ufs/lfs/ulfs_quota1.c
858
auio.uio_resid = sizeof (struct dqblk);
sys/ufs/lfs/ulfs_quota1.c
859
auio.uio_offset = (off_t)dq->dq_id * sizeof (struct dqblk);
sys/ufs/lfs/ulfs_quota1.h
100
void lfs_dqblk_to_quotavals(const struct dqblk *,
sys/ufs/lfs/ulfs_quota1.h
103
struct dqblk *);
sys/ufs/lfs/ulfs_quota1_subr.c
58
lfs_dqblk_to_quotavals(const struct dqblk *dqblk,
sys/ufs/lfs/ulfs_quota1_subr.c
63
blocks->qv_hardlimit = dqblk2q2e_limit(dqblk->dqb_bhardlimit);
sys/ufs/lfs/ulfs_quota1_subr.c
64
blocks->qv_softlimit = dqblk2q2e_limit(dqblk->dqb_bsoftlimit);
sys/ufs/lfs/ulfs_quota1_subr.c
65
blocks->qv_usage = dqblk->dqb_curblocks;
sys/ufs/lfs/ulfs_quota1_subr.c
66
blocks->qv_expiretime = dqblk->dqb_btime;
sys/ufs/lfs/ulfs_quota1_subr.c
68
files->qv_hardlimit = dqblk2q2e_limit(dqblk->dqb_ihardlimit);
sys/ufs/lfs/ulfs_quota1_subr.c
69
files->qv_softlimit = dqblk2q2e_limit(dqblk->dqb_isoftlimit);
sys/ufs/lfs/ulfs_quota1_subr.c
70
files->qv_usage = dqblk->dqb_curinodes;
sys/ufs/lfs/ulfs_quota1_subr.c
71
files->qv_expiretime = dqblk->dqb_itime;
sys/ufs/lfs/ulfs_quota1_subr.c
76
struct dqblk *dqblk)
sys/ufs/lfs/ulfs_quota1_subr.c
80
dqblk->dqb_bhardlimit = q2e2dqblk_limit(blocks->qv_hardlimit);
sys/ufs/lfs/ulfs_quota1_subr.c
81
dqblk->dqb_bsoftlimit = q2e2dqblk_limit(blocks->qv_softlimit);
sys/ufs/lfs/ulfs_quota1_subr.c
82
dqblk->dqb_curblocks = blocks->qv_usage;
sys/ufs/lfs/ulfs_quota1_subr.c
83
dqblk->dqb_btime = blocks->qv_expiretime;
sys/ufs/lfs/ulfs_quota1_subr.c
85
dqblk->dqb_ihardlimit = q2e2dqblk_limit(files->qv_hardlimit);
sys/ufs/lfs/ulfs_quota1_subr.c
86
dqblk->dqb_isoftlimit = q2e2dqblk_limit(files->qv_softlimit);
sys/ufs/lfs/ulfs_quota1_subr.c
87
dqblk->dqb_curinodes = files->qv_usage;
sys/ufs/lfs/ulfs_quota1_subr.c
88
dqblk->dqb_itime = files->qv_expiretime;
sys/ufs/ufs/quota1.h
102
struct dqblk *);
sys/ufs/ufs/quota1.h
99
void dqblk_to_quotavals(const struct dqblk *,
sys/ufs/ufs/quota1_subr.c
58
dqblk_to_quotavals(const struct dqblk *dqblk,
sys/ufs/ufs/quota1_subr.c
63
blocks->qv_hardlimit = dqblk2q2e_limit(dqblk->dqb_bhardlimit);
sys/ufs/ufs/quota1_subr.c
64
blocks->qv_softlimit = dqblk2q2e_limit(dqblk->dqb_bsoftlimit);
sys/ufs/ufs/quota1_subr.c
65
blocks->qv_usage = dqblk->dqb_curblocks;
sys/ufs/ufs/quota1_subr.c
66
blocks->qv_expiretime = dqblk->dqb_btime;
sys/ufs/ufs/quota1_subr.c
68
files->qv_hardlimit = dqblk2q2e_limit(dqblk->dqb_ihardlimit);
sys/ufs/ufs/quota1_subr.c
69
files->qv_softlimit = dqblk2q2e_limit(dqblk->dqb_isoftlimit);
sys/ufs/ufs/quota1_subr.c
70
files->qv_usage = dqblk->dqb_curinodes;
sys/ufs/ufs/quota1_subr.c
71
files->qv_expiretime = dqblk->dqb_itime;
sys/ufs/ufs/quota1_subr.c
76
struct dqblk *dqblk)
sys/ufs/ufs/quota1_subr.c
80
dqblk->dqb_bhardlimit = q2e2dqblk_limit(blocks->qv_hardlimit);
sys/ufs/ufs/quota1_subr.c
81
dqblk->dqb_bsoftlimit = q2e2dqblk_limit(blocks->qv_softlimit);
sys/ufs/ufs/quota1_subr.c
82
dqblk->dqb_curblocks = blocks->qv_usage;
sys/ufs/ufs/quota1_subr.c
83
dqblk->dqb_btime = blocks->qv_expiretime;
sys/ufs/ufs/quota1_subr.c
85
dqblk->dqb_ihardlimit = q2e2dqblk_limit(files->qv_hardlimit);
sys/ufs/ufs/quota1_subr.c
86
dqblk->dqb_isoftlimit = q2e2dqblk_limit(files->qv_softlimit);
sys/ufs/ufs/quota1_subr.c
87
dqblk->dqb_curinodes = files->qv_usage;
sys/ufs/ufs/quota1_subr.c
88
dqblk->dqb_itime = files->qv_expiretime;
sys/ufs/ufs/ufs_quota.h
69
struct dqblk dq1_dqb; /* d: actual usage & quotas */
sys/ufs/ufs/ufs_quota1.c
551
struct dqblk dqb;
sys/ufs/ufs/ufs_quota1.c
659
setquota1(struct mount *mp, u_long id, int type, struct dqblk *dqb)
sys/ufs/ufs/ufs_quota1.c
714
struct dqblk usage;
sys/ufs/ufs/ufs_quota1.c
717
error = copyin(addr, (void *)&usage, sizeof (struct dqblk));
sys/ufs/ufs/ufs_quota1.c
816
aiov.iov_len = sizeof (struct dqblk);
sys/ufs/ufs/ufs_quota1.c
817
auio.uio_resid = sizeof (struct dqblk);
sys/ufs/ufs/ufs_quota1.c
818
auio.uio_offset = (off_t)id * sizeof (struct dqblk);
sys/ufs/ufs/ufs_quota1.c
822
if (auio.uio_resid == sizeof(struct dqblk) && error == 0)
sys/ufs/ufs/ufs_quota1.c
823
memset((void *)&dq->dq_un.dq1_dqb, 0, sizeof(struct dqblk));
sys/ufs/ufs/ufs_quota1.c
870
aiov.iov_len = sizeof (struct dqblk);
sys/ufs/ufs/ufs_quota1.c
871
auio.uio_resid = sizeof (struct dqblk);
sys/ufs/ufs/ufs_quota1.c
872
auio.uio_offset = (off_t)dq->dq_id * sizeof (struct dqblk);
usr.sbin/edquota/edquota.c
307
struct dqblk dqblk;
usr.sbin/edquota/edquota.c
312
&dqblk);
usr.sbin/edquota/edquota.c
319
(off_t)(id * (long)sizeof (struct dqblk)),
usr.sbin/edquota/edquota.c
321
if (write(fd, &dqblk, sizeof (struct dqblk)) !=
usr.sbin/edquota/edquota.c
322
sizeof (struct dqblk))
usr.sbin/edquota/edquota.c
335
struct dqblk dqblk;
usr.sbin/edquota/edquota.c
373
(void)lseek(fd, (off_t)(id * sizeof(struct dqblk)),
usr.sbin/edquota/edquota.c
375
switch (read(fd, &dqblk, sizeof(struct dqblk))) {
usr.sbin/edquota/edquota.c
381
memset(&dqblk, 0, sizeof(struct dqblk));
usr.sbin/edquota/edquota.c
384
case sizeof(struct dqblk): /* OK */
usr.sbin/edquota/edquota.c
396
dqblk_to_quotavals(&dqblk,
usr.sbin/quotacheck/quotacheck.c
486
struct dqblk dqbuf;
usr.sbin/quotacheck/quotacheck.c
487
static struct dqblk zerodqbuf;
usr.sbin/quotacheck/quotacheck.c
530
if (fread((char *)&dqbuf, sizeof(struct dqblk), 1, qfi) == 0)
usr.sbin/quotacheck/quotacheck.c
591
(void) fseeko(qfo, (off_t)id * sizeof(struct dqblk),
usr.sbin/quotacheck/quotacheck.c
595
(void) fwrite(&dqbuf, sizeof(struct dqblk), 1, qfo);
usr.sbin/quotacheck/quotacheck.c
608
(off_t)((highid[type] + 1) * sizeof(struct dqblk)));
usr.sbin/quotacheck/quotacheck.c
616
struct dqblk dqbuf;
usr.sbin/quotacheck/quotacheck.c
619
(void)fseeko(qfi, (off_t)to * sizeof(struct dqblk), SEEK_SET);
usr.sbin/quotacheck/quotacheck.c
627
if (fread((char *)&dqbuf, sizeof(struct dqblk), 1, qfi) == 0)
usr.sbin/quotacheck/quotacheck.c
636
(void)fseek(qfi, -(long)sizeof(struct dqblk), SEEK_CUR);