Restore accidentally lost initialization of quotatypes[].

Fixes (null) in the kernel message triggered when you go over quota, and
maybe other things. Reported by Matthew Mondor.
This commit is contained in:
dholland 2012-07-29 08:32:27 +00:00
parent e5129e3384
commit 25f0cf9440
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ufs_quota.c,v 1.109 2012/02/18 06:13:23 matt Exp $ */ /* $NetBSD: ufs_quota.c,v 1.110 2012/07/29 08:32:27 dholland Exp $ */
/* /*
* Copyright (c) 1982, 1986, 1990, 1993, 1995 * Copyright (c) 1982, 1986, 1990, 1993, 1995
@ -35,7 +35,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ufs_quota.c,v 1.109 2012/02/18 06:13:23 matt Exp $"); __KERNEL_RCSID(0, "$NetBSD: ufs_quota.c,v 1.110 2012/07/29 08:32:27 dholland Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#include "opt_quota.h" #include "opt_quota.h"
@ -52,6 +52,7 @@ __KERNEL_RCSID(0, "$NetBSD: ufs_quota.c,v 1.109 2012/02/18 06:13:23 matt Exp $")
#include <sys/quotactl.h> #include <sys/quotactl.h>
#include <ufs/ufs/quota.h> #include <ufs/ufs/quota.h>
#include <ufs/ufs/quota1.h> /* for INITQFNAMES; should be moved to quota.h */
#include <ufs/ufs/inode.h> #include <ufs/ufs/inode.h>
#include <ufs/ufs/ufsmount.h> #include <ufs/ufs/ufsmount.h>
#include <ufs/ufs/ufs_extern.h> #include <ufs/ufs/ufs_extern.h>
@ -59,7 +60,7 @@ __KERNEL_RCSID(0, "$NetBSD: ufs_quota.c,v 1.109 2012/02/18 06:13:23 matt Exp $")
kmutex_t dqlock; kmutex_t dqlock;
kcondvar_t dqcv; kcondvar_t dqcv;
const char *quotatypes[MAXQUOTAS]; const char *quotatypes[MAXQUOTAS] = INITQFNAMES;
/* /*
* Code pertaining to management of the in-core dquot data structures. * Code pertaining to management of the in-core dquot data structures.