• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/netatalk-2.2.5/etc/afpd/

Lines Matching refs:dqblk

155 static int overquota( struct dqblk *);
177 static int get_linux_xfs_quota(int, char*, uid_t, struct dqblk *);
178 static int get_linux_fs_quota(int, char*, uid_t, struct dqblk *);
269 static int get_linux_quota(int what, char *path, uid_t euser_id, struct dqblk *dp)
285 static int get_linux_xfs_quota(int what, char *path, uid_t euser_id, struct dqblk *dqb)
312 static int get_linux_fs_quota(int what, char *path, uid_t euser_id, struct dqblk *dqb)
522 static int getfsquota(struct vol *vol, const int uid, struct dqblk *dq)
525 struct dqblk dqg;
636 static int getquota( struct vol *vol, struct dqblk *dq, const u_int32_t bsize)
719 static int overquota( struct dqblk *dqblk)
723 if ( dqblk->dqb_curblocks > dqblk->dqb_bhardlimit &&
724 dqblk->dqb_bhardlimit != 0 ) {
728 if ( dqblk->dqb_curblocks < dqblk->dqb_bsoftlimit ||
729 dqblk->dqb_bsoftlimit == 0 ) {
733 if ( dqblk->dqb_bwarn ) {
741 if ( dqblk->dqb_btimelimit && dqblk->dqb_btimelimit > tv.tv_sec ) {
777 struct dqblk dqblk;
781 if (getquota( vol, &dqblk, bsize) != 0 ) {
786 this_bsize = dqblk.bsize;
791 LOG(log_debug, logtype_afpd, "dqb_ihardlimit: %u", dqblk.dqb_ihardlimit );
792 LOG(log_debug, logtype_afpd, "dqb_isoftlimit: %u", dqblk.dqb_isoftlimit );
793 LOG(log_debug, logtype_afpd, "dqb_curinodes : %u", dqblk.dqb_curinodes );
794 LOG(log_debug, logtype_afpd, "dqb_bhardlimit: %u", dqblk.dqb_bhardlimit );
795 LOG(log_debug, logtype_afpd, "dqb_bsoftlimit: %u", dqblk.dqb_bsoftlimit );
796 LOG(log_debug, logtype_afpd, "dqb_curblocks : %u", dqblk.dqb_curblocks );
797 LOG(log_debug, logtype_afpd, "dqb_btime : %u", dqblk.dqb_btime );
798 LOG(log_debug, logtype_afpd, "dqb_itime : %u", dqblk.dqb_itime );
800 LOG(log_debug, logtype_afpd, "dqblk.dqb_bhardlimit size: %u", tobytes( dqblk.dqb_bhardlimit, this_bsize ));
801 LOG(log_debug, logtype_afpd, "dqblk.dqb_bsoftlimit size: %u", tobytes( dqblk.dqb_bsoftlimit, this_bsize ));
802 LOG(log_debug, logtype_afpd, "dqblk.dqb_curblocks size: %u", tobytes( dqblk.dqb_curblocks, this_bsize ));
806 if (dqblk.dqb_bsoftlimit == 0 && dqblk.dqb_bhardlimit == 0) {
808 } else if ( overquota( &dqblk )) {
809 if ( tobytes( dqblk.dqb_curblocks, this_bsize ) > tobytes( dqblk.dqb_bsoftlimit, this_bsize ) ) {
810 *btotal = tobytes( dqblk.dqb_curblocks, this_bsize );
814 *btotal = tobytes( dqblk.dqb_bsoftlimit, this_bsize );
815 *bfree = tobytes( dqblk.dqb_bsoftlimit, this_bsize ) -
816 tobytes( dqblk.dqb_curblocks, this_bsize );
819 *btotal = tobytes( dqblk.dqb_bhardlimit, this_bsize );
820 *bfree = tobytes( dqblk.dqb_bhardlimit, this_bsize ) -
821 tobytes( dqblk.dqb_curblocks, this_bsize );