Home
last modified time | relevance | path

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

/titanic_50/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 …]
/titanic_50/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 …]
/titanic_50/usr/src/uts/common/sys/fs/
H A Dufs_quota.h76 struct dqblk { struct
87 #define dqoff(UID) (((offset_t)(UID) * sizeof (struct dqblk))) argument
108 struct dqblk dq_dqb; /* actual usage & quotas */
/titanic_50/usr/src/uts/common/fs/ufs/
H A Dquota.c266 sizeof (struct dqblk), dqoff(uid), UIO_SYSSPACE, in getdiskquota()
316 bzero(&dqp->dq_dqb, sizeof (struct dqblk)); in getdiskquota()
419 TRANS_DELTA(ufsvfsp, dqp->dq_mof, sizeof (struct dqblk),
422 (int)(sizeof (struct dqblk)), NULL, 0);
436 sizeof (struct dqblk),
H A Dquotacalls.c497 struct dqblk newlim; in setquota()
523 if (copyin(addr, (caddr_t)&newlim, sizeof (struct dqblk)) != 0) { in setquota()
640 sizeof (struct dqblk), dqoff(uid), UIO_SYSSPACE, in setquota()
685 struct dqblk dqb; in getquota()
707 bcopy(&dqp->dq_dqb, &dqb, sizeof (struct dqblk)); in getquota()
712 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()
/titanic_50/usr/src/cmd/fs.d/ufs/repquota/
H A Drepquota.c74 static void prquota(uid_t, struct dqblk *);
236 struct dqblk dqbuf; in repquota()
265 (void) fread(&dqbuf, sizeof (struct dqblk), 1, qf); in repquota()
287 prquota(uid_t uid, struct dqblk *dqp) in prquota()
/titanic_50/usr/src/cmd/fs.d/ufs/edquota/
H A Dedquota.c77 struct dqblk fsq_dqb;
717 sizeof (struct dqblk))) { in getdiscq()
724 sizeof (struct dqblk)); in getdiscq()
727 case sizeof (struct dqblk): /* OK */ in getdiscq()
758 sizeof (struct dqblk)) != sizeof (struct dqblk)) { in putdiscq()
/titanic_50/usr/src/cmd/fs.d/ufs/quotacheck/
H A Dquotacheck.c115 struct dqblk zerodqbuf;
433 struct dqblk dqbuf; in chkquota()
513 (void) fread(&dqbuf, sizeof (struct dqblk), 1, qf); in chkquota()
579 (void) fwrite(&dqbuf, sizeof (struct dqblk), 1, qf); in chkquota()