From 9b2725008ee9951123a0ecc36dd7a7fc1fb1c5b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Tigeot?= Date: Sat, 14 Jul 2012 22:52:43 +0200 Subject: [PATCH] VFS quota: replace MNT_ACCOUNTING by MNT_QUOTA Getting back a bit of MNT_xxx flag space --- sbin/vquota/vquota.c | 4 ++-- sys/kern/vfs_quota.c | 4 ++-- sys/sys/mount.h | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/sbin/vquota/vquota.c b/sbin/vquota/vquota.c index ec4d39459d..d86bf34388 100644 --- a/sbin/vquota/vquota.c +++ b/sbin/vquota/vquota.c @@ -416,8 +416,8 @@ get_fslist(void) /* iterate mounted filesystems */ for (i=0; imnt_op->vfs_account = vfs_stdaccount; - /* mark this filesystem as having accounting enabled */ - mp->mnt_flag |= MNT_ACCOUNTING; + /* mark this filesystem quota enabled */ + mp->mnt_flag |= MNT_QUOTA; if (bootverbose) kprintf("vfs accounting enabled for %s\n", mp->mnt_stat.f_mntonname); diff --git a/sys/sys/mount.h b/sys/sys/mount.h index 096e050491..27e28cf9df 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -293,7 +293,6 @@ struct mount { #define MNT_QUOTA 0x00002000 /* quotas are enabled on filesystem */ #define MNT_ROOTFS 0x00004000 /* identifies the root filesystem */ #define MNT_USER 0x00008000 /* mounted by a user */ -#define MNT_ACCOUNTING 0x00020000 /* accounting is enabled on filesystem */ #define MNT_IGNORE 0x00800000 /* do not show entry in df */ /* @@ -309,7 +308,7 @@ struct mount { MNT_ROOTFS | MNT_NOATIME | MNT_NOCLUSTERR| \ MNT_NOCLUSTERW | MNT_SUIDDIR | MNT_SOFTDEP | \ MNT_IGNORE | MNT_NOSYMFOLLOW | MNT_EXPUBLIC| \ - MNT_ACCOUNTING | MNT_TRIM) + MNT_TRIM) /* * External filesystem command modifier flags. * Unmount can use the MNT_FORCE flag. -- 2.41.0