• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/etc/afpd/

Lines Matching defs:dqblk

64 static int overquota( struct dqblk *);
86 static int get_linux_xfs_quota(int, char*, uid_t, struct dqblk *);
87 static int get_linux_fs_quota(int, char*, uid_t, struct dqblk *);
178 static int get_linux_quota(int what, char *path, uid_t euser_id, struct dqblk *dp)
194 static int get_linux_xfs_quota(int what, char *path, uid_t euser_id, struct dqblk *dqb)
221 static int get_linux_fs_quota(int what, char *path, uid_t euser_id, struct dqblk *dqb)
431 static int getfsquota(struct vol *vol, const int uid, struct dqblk *dq)
434 struct dqblk dqg;
545 static int getquota( struct vol *vol, struct dqblk *dq, const u_int32_t bsize)
628 static int overquota( struct dqblk *dqblk)
632 if ( dqblk->dqb_curblocks > dqblk->dqb_bhardlimit &&
633 dqblk->dqb_bhardlimit != 0 ) {
637 if ( dqblk->dqb_curblocks < dqblk->dqb_bsoftlimit ||
638 dqblk->dqb_bsoftlimit == 0 ) {
642 if ( dqblk->dqb_bwarn ) {
650 if ( dqblk->dqb_btimelimit && dqblk->dqb_btimelimit > tv.tv_sec ) {
686 struct dqblk dqblk;
690 if (getquota( vol, &dqblk, bsize) != 0 ) {
695 this_bsize = dqblk.bsize;
700 LOG(log_debug, logtype_afpd, "dqb_ihardlimit: %u", dqblk.dqb_ihardlimit );
701 LOG(log_debug, logtype_afpd, "dqb_isoftlimit: %u", dqblk.dqb_isoftlimit );
702 LOG(log_debug, logtype_afpd, "dqb_curinodes : %u", dqblk.dqb_curinodes );
703 LOG(log_debug, logtype_afpd, "dqb_bhardlimit: %u", dqblk.dqb_bhardlimit );
704 LOG(log_debug, logtype_afpd, "dqb_bsoftlimit: %u", dqblk.dqb_bsoftlimit );
705 LOG(log_debug, logtype_afpd, "dqb_curblocks : %u", dqblk.dqb_curblocks );
706 LOG(log_debug, logtype_afpd, "dqb_btime : %u", dqblk.dqb_btime );
707 LOG(log_debug, logtype_afpd, "dqb_itime : %u", dqblk.dqb_itime );
709 LOG(log_debug, logtype_afpd, "dqblk.dqb_bhardlimit size: %u", tobytes( dqblk.dqb_bhardlimit, this_bsize ));
710 LOG(log_debug, logtype_afpd, "dqblk.dqb_bsoftlimit size: %u", tobytes( dqblk.dqb_bsoftlimit, this_bsize ));
711 LOG(log_debug, logtype_afpd, "dqblk.dqb_curblocks size: %u", tobytes( dqblk.dqb_curblocks, this_bsize ));
715 if (dqblk.dqb_bsoftlimit == 0 && dqblk.dqb_bhardlimit == 0) {
717 } else if ( overquota( &dqblk )) {
718 if ( tobytes( dqblk.dqb_curblocks, this_bsize ) > tobytes( dqblk.dqb_bsoftlimit, this_bsize ) ) {
719 *btotal = tobytes( dqblk.dqb_curblocks, this_bsize );
723 *btotal = tobytes( dqblk.dqb_bsoftlimit, this_bsize );
724 *bfree = tobytes( dqblk.dqb_bsoftlimit, this_bsize ) -
725 tobytes( dqblk.dqb_curblocks, this_bsize );
728 *btotal = tobytes( dqblk.dqb_bhardlimit, this_bsize );
729 *bfree = tobytes( dqblk.dqb_bhardlimit, this_bsize ) -
730 tobytes( dqblk.dqb_curblocks, this_bsize );