Home
last modified time | relevance | path

Searched refs:dqblk (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/cmd/fs.d/ufs/quota/
H A Dquota.c86 static int getzfsquota(char *, char *, struct dqblk *);
87 static int getnfsquota(char *, char *, uid_t, struct dqblk *);
90 static void warn(struct mnttab *, struct dqblk *);
92 static void prquota(struct mnttab *, struct dqblk *);
244 struct dqblk dqblk; in showquotas() local
269 bzero(&dqblk, sizeof (dqblk)); in showquotas()
270 if (getzfsquota(name, mnt.mnt_special, &dqblk)) in showquotas()
275 mnt.mnt_mountp, uid, &dqblk) != 0 && in showquotas()
276 !(vflag && getdiskquota(&mnt, uid, &dqblk)))) in showquotas()
381 rc = getnfsquota(rl[0].host, rl[0].path, uid, &dqblk); in showquotas()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/rquotad/
H A Drpc.rquotad.c278 getzfsquota(uid_t user, char *dataset, struct dqblk *zq) in getzfsquota()
318 struct dqblk dqblk; local
345 bzero(&dqblk, sizeof (dqblk));
347 if (getzfsquota(gqa.gqa_uid, fsqp->fsq_devname, &dqblk)) {
354 (uid_t)gqa.gqa_uid, &dqblk) != 0) {
367 (uid_t)gqa.gqa_uid, &dqblk) < 0 &&
373 &dqblk) == 0) {
389 gqr.gqrslt.rq_btimeleft = dqblk.dqb_btimelimit - tv.tv_sec;
390 gqr.gqrslt.rq_ftimeleft = dqblk.dqb_ftimelimit - tv.tv_sec;
396 gqr.gqrslt.rq_bhardlimit = dqblk.dqb_bhardlimit;
[all …]
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dufs_quota.h74 struct dqblk { struct
85 #define dqoff(UID) (((offset_t)(UID) * sizeof (struct dqblk))) argument
106 struct dqblk dq_dqb; /* actual usage & quotas */
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dquota.c263 sizeof (struct dqblk), dqoff(uid), UIO_SYSSPACE, in getdiskquota()
313 bzero(&dqp->dq_dqb, sizeof (struct dqblk)); in getdiskquota()
416 TRANS_DELTA(ufsvfsp, dqp->dq_mof, sizeof (struct dqblk),
419 (int)(sizeof (struct dqblk)), NULL, 0);
433 sizeof (struct dqblk),
H A Dquotacalls.c494 struct dqblk newlim; in setquota()
520 if (copyin(addr, (caddr_t)&newlim, sizeof (struct dqblk)) != 0) { in setquota()
637 sizeof (struct dqblk), dqoff(uid), UIO_SYSSPACE, in setquota()
682 struct dqblk dqb; in getquota()
704 bcopy(&dqp->dq_dqb, &dqb, sizeof (struct dqblk)); in getquota()
709 if (error == 0 && copyout(&dqb, addr, sizeof (struct dqblk)) != 0) in getquota()
H A Dufs_trans.c549 dqp->dq_mof, (int)sizeof (struct dqblk), NULL, 0); in ufs_trans_push_quota()
609 TRANS_DELTA(qip->i_ufsvfs, dqp->dq_mof, sizeof (struct dqblk), in ufs_trans_quota()
/illumos-gate/usr/src/cmd/fs.d/ufs/repquota/
H A Drepquota.c72 static void prquota(uid_t, struct dqblk *);
234 struct dqblk dqbuf; in repquota()
263 (void) fread(&dqbuf, sizeof (struct dqblk), 1, qf); in repquota()
285 prquota(uid_t uid, struct dqblk *dqp) in prquota()
/illumos-gate/usr/src/cmd/fs.d/ufs/edquota/
H A Dedquota.c76 struct dqblk fsq_dqb;
716 sizeof (struct dqblk))) { in getdiscq()
723 sizeof (struct dqblk)); in getdiscq()
726 case sizeof (struct dqblk): /* OK */ in getdiscq()
757 sizeof (struct dqblk)) != sizeof (struct dqblk)) { in putdiscq()
/illumos-gate/usr/src/cmd/fs.d/ufs/quotacheck/
H A Dquotacheck.c113 struct dqblk zerodqbuf;
431 struct dqblk dqbuf; in chkquota()
511 (void) fread(&dqbuf, sizeof (struct dqblk), 1, qf); in chkquota()
577 (void) fwrite(&dqbuf, sizeof (struct dqblk), 1, qf); in chkquota()