/*
- * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
#ifndef KERNEL
__BEGIN_DECLS
-int quotactl(char *, int, int, caddr_t);
+int quotactl(const char *, int, int, caddr_t);
__END_DECLS
#endif /* !KERNEL */
struct quotafile {
lck_mtx_t qf_lock; /* quota file mutex */
struct vnode *qf_vp; /* quota file vnode */
- struct ucred *qf_cred; /* quota file access cred */
+ kauth_cred_t qf_cred; /* quota file access cred */
int qf_shift; /* primary hash shift */
int qf_maxentries; /* size of hash table (power of 2) */
int qf_entrycnt; /* count of active entries */
struct dquot {
LIST_ENTRY(dquot) dq_hash; /* hash list */
TAILQ_ENTRY(dquot) dq_freelist; /* free list */
- uint32_t dq_cnt; /* count of active references */
u_int16_t dq_flags; /* flags, see below */
+ u_int16_t dq_cnt_unused; /* Replaced by dq_cnt below */
u_int16_t dq_lflags; /* protected by the quota list lock */
u_int16_t dq_type; /* quota type of this dquot */
u_int32_t dq_id; /* identifier this applies to */
u_int32_t dq_index; /* index into quota file */
struct quotafile *dq_qfile; /* quota file that this is taken from */
struct dqblk dq_dqb; /* actual usage & quotas */
+ uint32_t dq_cnt; /* count of active references */
};
/*
void dqfileclose(struct quotafile *, int);
void dqflush(struct vnode *);
int dqget(u_long, struct quotafile *, int, struct dquot **);
+void dqhashinit(void);
void dqinit(void);
+int dqisinitialized(void);
void dqref(struct dquot *);
void dqrele(struct dquot *);
void dqreclaim(struct dquot *);