From: adas@sourceware.org <adas@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster gfs-kernel/src/gfs/ops_fstype.c gfs-ke ...
Date: 18 Sep 2006 15:02:40 -0000 [thread overview]
Message-ID: <20060918150240.28275.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4U4
Changes by: adas at sourceware.org 2006-09-18 15:02:39
Modified files:
gfs-kernel/src/gfs: ops_fstype.c mount.c incore.h ops_super.c
gfs/man : gfs_mount.8
Log message:
Undoing Josef's noquota patch to gfs. Does not belong in RHEL4U4
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_fstype.c.diff?cvsroot=cluster&only_with_tag=RHEL4U4&r1=1.13.2.2.6.1&r2=1.13.2.2.6.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/mount.c.diff?cvsroot=cluster&only_with_tag=RHEL4U4&r1=1.8.2.1.12.1&r2=1.8.2.1.12.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/incore.h.diff?cvsroot=cluster&only_with_tag=RHEL4U4&r1=1.17.2.5.4.1&r2=1.17.2.5.4.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_super.c.diff?cvsroot=cluster&only_with_tag=RHEL4U4&r1=1.12.2.4.2.1&r2=1.12.2.4.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/man/gfs_mount.8.diff?cvsroot=cluster&only_with_tag=RHEL4U4&r1=1.3.2.1.12.1&r2=1.3.2.1.12.2
--- cluster/gfs-kernel/src/gfs/ops_fstype.c 2006/09/15 21:44:35 1.13.2.2.6.1
+++ cluster/gfs-kernel/src/gfs/ops_fstype.c 2006/09/18 15:02:39 1.13.2.2.6.2
@@ -170,14 +170,6 @@
if (sdp->sd_args.ar_posix_acls)
sb->s_flags |= MS_POSIXACL;
- /* Turn off quota stuff if we get the noquota mount option, don't
- need to grab the sd_tune lock here since its before anything
- touches the sd_tune values */
- if (sdp->sd_args.ar_noquota) {
- sdp->sd_tune.gt_quota_enforce = 0;
- sdp->sd_tune.gt_quota_account = 0;
- }
-
/* Set up the buffer cache and fill in some fake block size values
to allow us to read-in the on-disk superblock. */
--- cluster/gfs-kernel/src/gfs/mount.c 2006/09/15 21:44:35 1.8.2.1.12.1
+++ cluster/gfs-kernel/src/gfs/mount.c 2006/09/18 15:02:39 1.8.2.1.12.2
@@ -133,9 +133,6 @@
else if (!strcmp(x, "suiddir"))
args->ar_suiddir = TRUE;
- else if (!strcmp(x, "noquota"))
- args->ar_noquota = TRUE;
-
/* Unknown */
else {
--- cluster/gfs-kernel/src/gfs/incore.h 2006/09/15 21:44:35 1.17.2.5.4.1
+++ cluster/gfs-kernel/src/gfs/incore.h 2006/09/18 15:02:39 1.17.2.5.4.2
@@ -843,7 +843,6 @@
(more daemons => faster cleanup) */
int ar_posix_acls; /* Enable posix acls */
int ar_suiddir; /* suiddir support */
- int ar_noquota; /* Turn off quota support */
};
struct gfs_tune {
--- cluster/gfs-kernel/src/gfs/ops_super.c 2006/09/15 21:44:35 1.12.2.4.2.1
+++ cluster/gfs-kernel/src/gfs/ops_super.c 2006/09/18 15:02:39 1.12.2.4.2.2
@@ -315,7 +315,6 @@
gfs_remount_fs(struct super_block *sb, int *flags, char *data)
{
struct gfs_sbd *sdp = vfs2sdp(sb);
- struct gfs_tune *gt = &sdp->sd_tune;
int error = 0;
struct gfs_args *args;
@@ -341,25 +340,6 @@
sb->s_flags &= ~MS_POSIXACL;
}
- if (args->ar_noquota) {
- if (sdp->sd_args.ar_noquota == FALSE)
- printk("GFS: remounting without quota\n");
- sdp->sd_args.ar_noquota = TRUE;
- spin_lock(>->gt_spin);
- gt->gt_quota_enforce = 0;
- gt->gt_quota_account = 0;
- spin_unlock(>->gt_spin);
- }
- else {
- if (sdp->sd_args.ar_noquota == TRUE)
- printk("GFS: remounting with quota\n");
- sdp->sd_args.ar_noquota = FALSE;
- spin_lock(>->gt_spin);
- gt->gt_quota_enforce = 1;
- gt->gt_quota_account = 1;
- spin_unlock(>->gt_spin);
- }
-
if (*flags & (MS_NOATIME | MS_NODIRATIME))
set_bit(SDF_NOATIME, &sdp->sd_flags);
else
@@ -453,8 +433,6 @@
seq_printf(s, ",num_glockd=%u", args->ar_num_glockd);
if (args->ar_posix_acls)
seq_printf(s, ",acl");
- if (args->ar_noquota)
- seq_printf(s, ",noquota");
if (args->ar_suiddir)
seq_printf(s, ",suiddir");
--- cluster/gfs/man/gfs_mount.8 2006/09/15 21:44:36 1.3.2.1.12.1
+++ cluster/gfs/man/gfs_mount.8 2006/09/18 15:02:39 1.3.2.1.12.2
@@ -184,13 +184,6 @@
Strips all execution bits on a new file, if parent directory owner is different
from owner of process creating the file. Set this option only if you know
why you are setting it.
-.TP
-\fBnoquota\fP
-Disables quota accounting and quota enforcement during mount. The effect of
-using this mount option is identical to mounting gfs without \fB-o noquota\fP
-and then invoking \fBgfs_tool settune <mountpoint> quota_account 0\fP. In
-order to enable quotas in the future the quota file must be initialized using
-\fBgfs_quota init -f <mountpoint>\fP. See \fBgfs_quota\fP(8)
.SH LINKS
.TP 30
next reply other threads:[~2006-09-18 15:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-18 15:02 adas [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-09-15 21:44 [Cluster-devel] cluster gfs-kernel/src/gfs/ops_fstype.c gfs-ke adas
2006-09-15 21:42 adas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060918150240.28275.qmail@sourceware.org \
--to=adas@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.