/*
- * $Id: quota.c,v 1.22.8.11.2.2 2006-02-08 04:26:00 didg Exp $
+ * $Id: quota.c,v 1.22.8.11.2.3 2006-09-11 08:05:02 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#include "volume.h"
#include "unix.h"
+/* if you want to debug quota
#define DEBUG_QUOTA 0
+*/
#define WANT_USER_QUOTA 0
#define WANT_GROUP_QUOTA 1
this_bsize = dqblk.bsize;
#endif
-#if DEBUG_QUOTA
+#ifdef DEBUG_QUOTA
LOG(log_info, logtype_afpd, "after calling getquota in uquota_getvolspace!" );
LOG(log_info, logtype_afpd, "dqb_ihardlimit: %u", dqblk.dqb_ihardlimit );
LOG(log_info, logtype_afpd, "dqb_isoftlimit: %u", dqblk.dqb_isoftlimit );
tobytes( dqblk.dqb_curblocks, this_bsize );
}
-#if DEBUG_QUOTA
+#ifdef DEBUG_QUOTA
LOG(log_info, logtype_afpd, "bfree : %u", *bfree );
LOG(log_info, logtype_afpd, "btotal : %u", *btotal );
LOG(log_info, logtype_afpd, "bfree : %uKB", *bfree/1024 );