• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/diskdev_cmds-572.1.1/edquota.tproj/

Lines Matching refs:dqblk

111 	struct	dqblk dqblk;
132 int qflookup(int, uid_t, int, struct dqblk *);
133 int qfupdate(int, uid_t, int, struct dqblk *);
188 qup->dqblk.dqb_btime = 0;
189 qup->dqblk.dqb_itime = 0;
199 qup->dqblk.dqb_id = id;
357 if (quotactl(fst[i].f_mntonname, qcmd, id, (char *)&qup->dqblk) != 0) {
384 if (qflookup(fd, id, quotatype, &qup->dqblk) != 0) {
431 if (quotactl(fs->fs_file, qcmd, id, &qup->dqblk) != 0) {
452 lseek(fd, (off_t)(id * sizeof(struct dqblk)), L_SET);
453 switch (read(fd, &qup->dqblk, sizeof(struct dqblk))) {
457 * into an explicit one (zero'ed dqblk)
459 bzero((caddr_t)&qup->dqblk,
460 sizeof(struct dqblk));
463 case sizeof(struct dqblk): /* OK */
537 (void) ftruncate(fd, (off_t)((max + 1) * sizeof(struct dqblk)));
558 struct dqblk *dqbp;
564 bzero(dqbp, sizeof(struct dqblk));
590 if (read(fd, dqbp, sizeof(struct dqblk)) < sizeof(struct dqblk))
629 if (quotactl(qup->fsname, qcmd, id, (char *)&qup->dqblk) == 0)
635 if (qfupdate(fd, id, quotatype, &qup->dqblk) != 0) {
644 (off_t)(id * (long)sizeof (struct dqblk)), L_SET);
645 if (write(fd, &qup->dqblk, sizeof (struct dqblk)) !=
646 sizeof (struct dqblk)) {
665 struct dqblk *dqbp;
667 struct dqblk dqbuf;
696 if (read(fd, &dqbuf, sizeof(struct dqblk)) < sizeof(struct dqblk))
704 struct dqblk tblk;
717 if (write(fd, &tblk, sizeof (struct dqblk)) !=
718 sizeof (struct dqblk)) {
804 qup->dqblk.dqb_curbytes / 1024,
805 qup->dqblk.dqb_bsoftlimit / 1024,
806 qup->dqblk.dqb_bhardlimit / 1024);
810 dbtob(qup->dqblk.dqb_curblocks) / 1024,
811 dbtob(qup->dqblk.dqb_bsoftlimit) / 1024,
812 dbtob(qup->dqblk.dqb_bhardlimit) / 1024);
816 "\tinodes in use:", qup->dqblk.dqb_curinodes,
817 qup->dqblk.dqb_isoftlimit, qup->dqblk.dqb_ihardlimit);
835 struct dqblk dqblk;
863 &dqblk.dqb_curbytes, &dqblk.dqb_bsoftlimit,
864 &dqblk.dqb_bhardlimit);
871 dqblk.dqb_curbytes = dqblk.dqb_curbytes * 1024;
872 dqblk.dqb_bsoftlimit = dqblk.dqb_bsoftlimit * 1024;
873 dqblk.dqb_bhardlimit = dqblk.dqb_bhardlimit * 1024;
877 &dqblk.dqb_curblocks, &dqblk.dqb_bsoftlimit,
878 &dqblk.dqb_bhardlimit);
883 dqblk.dqb_curblocks = btodb(dqblk.dqb_curblocks * 1024);
884 dqblk.dqb_bsoftlimit = btodb(dqblk.dqb_bsoftlimit * 1024);
885 dqblk.dqb_bhardlimit = btodb(dqblk.dqb_bhardlimit * 1024);
894 &dqblk.dqb_curinodes, &dqblk.dqb_isoftlimit,
895 &dqblk.dqb_ihardlimit);
910 if (dqblk.dqb_bsoftlimit &&
911 qup->dqblk.dqb_curbytes >= dqblk.dqb_bsoftlimit &&
912 (qup->dqblk.dqb_bsoftlimit == 0 ||
913 qup->dqblk.dqb_curbytes <
914 qup->dqblk.dqb_bsoftlimit))
915 qup->dqblk.dqb_btime = 0;
917 if (dqblk.dqb_bsoftlimit &&
918 qup->dqblk.dqb_curblocks >= dqblk.dqb_bsoftlimit &&
919 (qup->dqblk.dqb_bsoftlimit == 0 ||
920 qup->dqblk.dqb_curblocks <
921 qup->dqblk.dqb_bsoftlimit))
922 qup->dqblk.dqb_btime = 0;
924 if (dqblk.dqb_isoftlimit &&
925 qup->dqblk.dqb_curinodes >= dqblk.dqb_isoftlimit &&
926 (qup->dqblk.dqb_isoftlimit == 0 ||
927 qup->dqblk.dqb_curinodes <
928 qup->dqblk.dqb_isoftlimit))
929 qup->dqblk.dqb_itime = 0;
930 qup->dqblk.dqb_bsoftlimit = dqblk.dqb_bsoftlimit;
931 qup->dqblk.dqb_bhardlimit = dqblk.dqb_bhardlimit;
932 qup->dqblk.dqb_isoftlimit = dqblk.dqb_isoftlimit;
933 qup->dqblk.dqb_ihardlimit = dqblk.dqb_ihardlimit;
936 if (dqblk.dqb_curbytes == qup->dqblk.dqb_curbytes &&
937 dqblk.dqb_curinodes == qup->dqblk.dqb_curinodes)
940 if (dqblk.dqb_curblocks == qup->dqblk.dqb_curblocks &&
941 dqblk.dqb_curinodes == qup->dqblk.dqb_curinodes)
958 qup->dqblk.dqb_bsoftlimit = 0;
959 qup->dqblk.dqb_bhardlimit = 0;
960 qup->dqblk.dqb_isoftlimit = 0;
961 qup->dqblk.dqb_ihardlimit = 0;
991 qup->fsname, cvtstoa(qup->dqblk.dqb_btime));
993 cvtstoa(qup->dqblk.dqb_itime));
1049 qup->dqblk.dqb_btime = (uint32_t) bseconds;
1050 qup->dqblk.dqb_itime = (uint32_t) iseconds;
1065 qup->dqblk.dqb_btime = 0;
1066 qup->dqblk.dqb_itime = 0;