Lines Matching defs:dq
522 static int getfsquota(struct vol *vol, const int uid, struct dqblk *dq)
536 qc.addr = (caddr_t)dq;
543 if ( quota( Q_GETDLIM, uid, vol->v_gvs, dq ) != 0 ) {
564 uid, (char *)dq ) != 0 ) {
580 uid, (char *)dq ) != 0 ) {
588 if (get_linux_quota (WANT_USER_QUOTA, vol->v_gvs, uid, dq) !=0) {
610 ( overquota( dq ) ? 0 : ( dq->dqb_bhardlimit ? dq->dqb_bhardlimit -
611 dq->dqb_curblocks : ~((u_int64_t) 0) ) )
621 dq->dqb_curblocks = dqg.dqb_curblocks;
622 dq->dqb_bhardlimit = dqg.dqb_bhardlimit;
623 dq->dqb_bsoftlimit = dqg.dqb_bsoftlimit;
624 dq->dqb_btimelimit = dqg.dqb_btimelimit;
636 static int getquota( struct vol *vol, struct dqblk *dq, const u_int32_t bsize)
697 result = getnfsquota(vol, uuid, bsize, dq);
708 return getnfsquota(vol, uuid, bsize, dq);
711 return getfsquota(vol, uuid, dq);
714 return vol->v_nfs ? getnfsquota(vol, uuid, bsize, dq) :
715 getfsquota(vol, uuid, dq);