Home
last modified time | relevance | path

Searched refs:ufs_dqblk (Results 1 – 7 of 7) sorted by relevance

/dragonfly/libexec/rpc.rquotad/
H A Drquotad.c39 static int getfsquota(long id, char *path, struct ufs_dqblk *dqblk);
138 struct ufs_dqblk dqblk; in sendquota()
223 getfsquota(long id, char *path, struct ufs_dqblk *dqblk) in getfsquota()
247 if (lseek(fd, (off_t)(id * sizeof(struct ufs_dqblk)), L_SET) == (off_t)-1) { in getfsquota()
251 switch (read(fd, dqblk, sizeof(struct ufs_dqblk))) { in getfsquota()
257 bzero((caddr_t) dqblk, sizeof(struct ufs_dqblk)); in getfsquota()
260 case sizeof(struct ufs_dqblk): /* OK */ in getfsquota()
/dragonfly/sys/vfs/ufs/
H A Dufs_quota.c576 struct ufs_dqblk newlim; in ufs_setquota()
633 struct ufs_dqblk usage; in ufs_setuse()
636 error = copyin(addr, (caddr_t)&usage, sizeof (struct ufs_dqblk)); in ufs_setuse()
822 aiov.iov_len = sizeof (struct ufs_dqblk); in ufs_dqget()
823 auio.uio_resid = sizeof (struct ufs_dqblk); in ufs_dqget()
824 auio.uio_offset = (off_t)(id * sizeof (struct ufs_dqblk)); in ufs_dqget()
829 if (auio.uio_resid == sizeof(struct ufs_dqblk) && error == 0) in ufs_dqget()
830 bzero((caddr_t)&dq->dq_dqb, sizeof(struct ufs_dqblk)); in ufs_dqget()
925 aiov.iov_len = sizeof (struct ufs_dqblk); in ufs_dqsync()
926 auio.uio_resid = sizeof (struct ufs_dqblk); in ufs_dqsync()
[all …]
H A Dquota.h99 struct ufs_dqblk { struct
128 struct ufs_dqblk dq_dqb; /* actual usage & quotas */ argument
/dragonfly/usr.sbin/edquota/
H A Dedquota.c66 struct ufs_dqblk dqblk;
361 lseek(fd, (long)(id * sizeof(struct ufs_dqblk)), L_SET); in getprivs()
362 switch (read(fd, &qup->dqblk, sizeof(struct ufs_dqblk))) { in getprivs()
369 sizeof(struct ufs_dqblk)); in getprivs()
372 case sizeof(struct ufs_dqblk): /* OK */ in getprivs()
412 lseek(fd, (long)id * (long)sizeof(struct ufs_dqblk), 0); in putprivs()
413 if (write(fd, &qup->dqblk, sizeof(struct ufs_dqblk)) != in putprivs()
414 sizeof(struct ufs_dqblk)) { in putprivs()
506 struct ufs_dqblk dqblk; in readprivs()
/dragonfly/sbin/quotacheck/
H A Dquotacheck.c300 struct ufs_dqblk dqbuf; in update()
302 static struct ufs_dqblk zerodqbuf; in update()
330 id++, offset += sizeof(struct ufs_dqblk)) { in update()
331 if (fread((char *)&dqbuf, sizeof(struct ufs_dqblk), 1, qfi) == 0) in update()
373 fwrite((char *)&dqbuf, sizeof(struct ufs_dqblk), 1, qfo); in update()
382 (off_t)((highid[type] + 1) * sizeof(struct ufs_dqblk))); in update()
/dragonfly/usr.bin/quota/
H A Dquota.c71 struct ufs_dqblk dqblk;
537 lseek(fd, (off_t)(id * sizeof(struct ufs_dqblk)), L_SET); in getufsquota()
538 switch (read(fd, &qup->dqblk, sizeof(struct ufs_dqblk))) { in getufsquota()
544 bzero(&qup->dqblk, sizeof(struct ufs_dqblk)); in getufsquota()
546 case sizeof(struct ufs_dqblk): /* OK */ in getufsquota()
563 struct ufs_dqblk *dqp = &qup->dqblk; in getnfsquota()
/dragonfly/usr.sbin/repquota/
H A Drepquota.c71 struct ufs_dqblk fu_dqblk;
182 struct ufs_dqblk dqbuf; in repquota()
183 static struct ufs_dqblk zerodqblk; in repquota()
203 fread(&dqbuf, sizeof(struct ufs_dqblk), 1, qf); in repquota()