Module Name: src
Committed By: bouyer
Date: Mon Jan 31 15:19:21 UTC 2011
Modified Files:
src/sys/ufs/ufs [bouyer-quota2]: quota.h quota2.h
Log Message:
Rename defininition for limits Q2V_* to QL_* and move from quota2.h to quota.h.
To generate a diff of this commit:
cvs rdiff -u -r1.25.64.1 -r1.25.64.2 src/sys/ufs/ufs/quota.h
cvs rdiff -u -r1.1.2.4 -r1.1.2.5 src/sys/ufs/ufs/quota2.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/ufs/ufs/quota.h
diff -u src/sys/ufs/ufs/quota.h:1.25.64.1 src/sys/ufs/ufs/quota.h:1.25.64.2
--- src/sys/ufs/ufs/quota.h:1.25.64.1 Thu Jan 20 14:25:03 2011
+++ src/sys/ufs/ufs/quota.h Mon Jan 31 15:19:21 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: quota.h,v 1.25.64.1 2011/01/20 14:25:03 bouyer Exp $ */
+/* $NetBSD: quota.h,v 1.25.64.2 2011/01/31 15:19:21 bouyer Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -54,13 +54,23 @@
#define GRPQUOTA 1 /* element used for group quotas */
/*
- * Definitions for the default names of the quotas files.
+ * Definitions for the default names of the quotas files/quota types.
*/
#define INITQFNAMES { \
"user", /* USRQUOTA */ \
"group", /* GRPQUOTA */ \
"undefined", \
}
+
+/* definition of limits types for each quota */
+#define QL_BLOCK 0
+#define QL_FILE 1
+#define N_QL 2
+
+#define INITQLNAMES {"block", "file", "undefined" }
+
+
+
#ifdef _KERNEL
#include <sys/cdefs.h>
Index: src/sys/ufs/ufs/quota2.h
diff -u src/sys/ufs/ufs/quota2.h:1.1.2.4 src/sys/ufs/ufs/quota2.h:1.1.2.5
--- src/sys/ufs/ufs/quota2.h:1.1.2.4 Sat Jan 29 23:22:00 2011
+++ src/sys/ufs/ufs/quota2.h Mon Jan 31 15:19:21 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: quota2.h,v 1.1.2.4 2011/01/29 23:22:00 bouyer Exp $ */
+/* $NetBSD: quota2.h,v 1.1.2.5 2011/01/31 15:19:21 bouyer Exp $ */
/*-
* Copyright (c) 2010 Manuel Bouyer
* All rights reserved.
@@ -55,11 +55,6 @@
int64_t q2v_time; /* grace expiration date for softlimit overflow */
int64_t q2v_grace; /* allowed time for softlimit overflow */
};
-#define Q2V_BLOCK 0
-#define Q2V_FILE 1
-#define NQ2V 2
-
-#define QUOTA2_VALNAMES_INIT {"block", "file"}
/*
* Description of a user or group quota
@@ -69,7 +64,7 @@
struct quota2_entry {
/* block & inode limits and status */
- struct quota2_val q2e_val[NQ2V];
+ struct quota2_val q2e_val[N_QL];
/* pointer to next entry for this list (offset in the file) */
uint64_t q2e_next;
/* ownerchip information */