FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 10-30-2009, 09:00 AM
Steven Whitehouse
 
Default gfs2: add barrier/nobarrier mount options

Hi,

Thanks for the patch. I've pushed it to the -nmw tree now. I've also
added a two-liner of my own to display the nobarrier option
in /proc/mounts,

Steve.

On Fri, 2009-10-30 at 08:03 +0100, Christoph Hellwig wrote:
> Currently gfs2 issues barrier unconditionally. There are various reasons
> to disable them, be that just for testing or for stupid devices flushing
> large battert backed caches. Add a nobarrier option that matches xfs and
> btrfs for this. Also add a symmetric barrier option to turn it back on
> at remount time.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
>
> Index: linux-2.6/fs/gfs2/incore.h
> ================================================== =================
> --- linux-2.6.orig/fs/gfs2/incore.h 2009-10-30 07:43:42.246023792 +0100
> +++ linux-2.6/fs/gfs2/incore.h 2009-10-30 07:44:11.173255988 +0100
> @@ -429,6 +429,7 @@ struct gfs2_args {
> unsigned int ar_meta:1; /* mount metafs */
> unsigned int ar_discard:1; /* discard requests */
> unsigned int ar_errors:2; /* errors=withdraw | panic */
> + unsigned int ar_nobarrier:1; /* do not send barriers */
> int ar_commit; /* Commit interval */
> };
>
> Index: linux-2.6/fs/gfs2/super.c
> ================================================== =================
> --- linux-2.6.orig/fs/gfs2/super.c 2009-10-30 07:44:29.832024397 +0100
> +++ linux-2.6/fs/gfs2/super.c 2009-10-30 07:53:24.117033618 +0100
> @@ -70,6 +70,8 @@ enum {
> Opt_commit,
> Opt_err_withdraw,
> Opt_err_panic,
> + Opt_barrier,
> + Opt_nobarrier,
> Opt_error,
> };
>
> @@ -98,6 +100,8 @@ static const match_table_t tokens = {
> {Opt_meta, "meta"},
> {Opt_discard, "discard"},
> {Opt_nodiscard, "nodiscard"},
> + {Opt_barrier, "barrier"},
> + {Opt_nobarrier, "nobarrier"},
> {Opt_commit, "commit=%d"},
> {Opt_err_withdraw, "errors=withdraw"},
> {Opt_err_panic, "errors=panic"},
> @@ -207,6 +211,12 @@ int gfs2_mount_args(struct gfs2_sbd *sdp
> case Opt_nodiscard:
> args->ar_discard = 0;
> break;
> + case Opt_barrier:
> + args->ar_nobarrier = 0;
> + break;
> + case Opt_nobarrier:
> + args->ar_nobarrier = 1;
> + break;
> case Opt_commit:
> rv = match_int(&tmp[0], &args->ar_commit);
> if (rv || args->ar_commit <= 0) {
> @@ -1097,6 +1107,10 @@ static int gfs2_remount_fs(struct super_
> sb->s_flags |= MS_POSIXACL;
> else
> sb->s_flags &= ~MS_POSIXACL;
> + if (sdp->sd_args.ar_nobarrier)
> + set_bit(SDF_NOBARRIERS, &sdp->sd_flags);
> + else
> + clear_bit(SDF_NOBARRIERS, &sdp->sd_flags);
> spin_lock(&gt->gt_spin);
> gt->gt_log_flush_secs = args.ar_commit;
> spin_unlock(&gt->gt_spin);
> Index: linux-2.6/fs/gfs2/ops_fstype.c
> ================================================== =================
> --- linux-2.6.orig/fs/gfs2/ops_fstype.c 2009-10-30 07:52:11.050003877 +0100
> +++ linux-2.6/fs/gfs2/ops_fstype.c 2009-10-30 07:52:53.053005337 +0100
> @@ -1143,6 +1143,8 @@ static int fill_super(struct super_block
> }
> if (sdp->sd_args.ar_posix_acl)
> sb->s_flags |= MS_POSIXACL;
> + if (sdp->sd_args.ar_nobarrier)
> + set_bit(SDF_NOBARRIERS, &sdp->sd_flags);
>
> sb->s_magic = GFS2_MAGIC;
> sb->s_op = &gfs2_super_ops;


Fri Oct 30 12:30:02 2009
Return-path: <bounce-debian-user=tom=linux-archive.org@lists.debian.org>
Envelope-to: tom@linux-archive.org
Delivery-date: Fri, 30 Oct 2009 11:39:29 +0200
Received: from liszt.debian.org ([82.195.75.100]:56117)
by s2.java-tips.org with esmtps (TLSv1:AES256-SHA:256)
(Exim 4.69)
(envelope-from <bounce-debian-user=tom=linux-archive.org@lists.debian.org>)
id 1N3nxA-0006s3-Hg
for tom@linux-archive.org; Fri, 30 Oct 2009 11:39:28 +0200
Received: from localhost (localhost [127.0.0.1])
by liszt.debian.org (Postfix) with QMQP
id C427013A656C; Fri, 30 Oct 2009 10:01:23 +0000 (UTC)
Old-Return-Path: <gpall@ccf.auth.gr>
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on liszt.debian.org
X-Spam-Level:
X-Spam-Status: No, score=-11.0 required=4.0 tests=LDOSUBSCRIBER,LDO_WHITELIST
autolearn=failed version=3.2.5
X-Original-To: lists-debian-user@liszt.debian.org
Delivered-To: lists-debian-user@liszt.debian.org
Received: from localhost (localhost [127.0.0.1])
by liszt.debian.org (Postfix) with ESMTP id 1F31813A651D
for <lists-debian-user@liszt.debian.org>; Fri, 30 Oct 2009 10:01:17 +0000 (UTC)
X-Virus-Scanned: at lists.debian.org with policy bank en-ht
X-Amavis-Spam-Status: No, score=-7 tagged_above=-10000 required=5.3
tests=[BAYES_00=-2, LDO_WHITELIST=-5] autolearn=ham
Received: from liszt.debian.org ([127.0.0.1])
by localhost (lists.debian.org [127.0.0.1]) (amavisd-new, port 2525)
with ESMTP id hN5zsw0s9qA9 for <lists-debian-user@liszt.debian.org>;
Fri, 30 Oct 2009 10:01:09 +0000 (UTC)
X-policyd-weight: DYN_NJABL=SKIP(0) NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 DSBL_ORG=SKIP(0) CL_IP_EQ_HELO_IP=-2 (check from: .auth. - helo: .artemis.ccf.auth. - helo-domain: .auth.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7
Received: from artemis.ccf.auth.gr (artemis.ccf.auth.gr [155.207.1.4])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client CN "AUTH Mail Servers", Issuer "AUTH Network Operations Center Certification Authority R3" (not verified))
by liszt.debian.org (Postfix) with ESMTPS id 7243D13A6504
for <debian-user@lists.debian.org>; Fri, 30 Oct 2009 10:01:08 +0000 (UTC)
Received: from [155.207.112.12] (aris.ccf2.auth.gr [155.207.112.12])
(authenticated bits=0)
by artemis.ccf.auth.gr (8.14.3/8.14.3) with ESMTP id n9UA139d015987
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);
Fri, 30 Oct 2009 12:01:04 +0200
X-Virus-Status: Clean
X-Virus-Scanned: clamav-milter 0.95.3 at vs-a-1
Message-ID: <4AEAB95F.5090107@ccf.auth.gr>
Date: Fri, 30 Oct 2009 12:01:03 +0200
From: =?UTF-8?B?zpPOuc+Oz4HOs86/z4IgzqDOrM67zrvOsc+C?=
<gpall@ccf.auth.gr>
User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706)
MIME-Version: 1.0
To: jagginess <jagginess@videotron.ca>,
debian Users ENG <debian-user@lists.debian.org>
Subject: Re: reportbug reportbug?
References: <4AEA6DD9.70603@videotron.ca>
In-Reply-To: <4AEA6DD9.70603@videotron.ca>
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms040406030206040604020903"
X-Rc-Virus: 2007-09-13_01
X-Rc-Spam: 2008-11-04_01
Resent-Message-ID: <S_5iHlCch-J.A.itG.zlr6KB@liszt>
Resent-From: debian-user@lists.debian.org
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/562219
X-Loop: debian-user@lists.debian.org
List-Id: <debian-user.lists.debian.org>
List-Post: <mailto:debian-user@lists.debian.org>
List-Help: <mailto:debian-user-request@lists.debian.org?subject=help>
List-Subscribe: <mailto:debian-user-request@lists.debian.org?subject=subscribe>
List-Unsubscribe: <mailto:debian-user-request@lists.debian.org?subject=unsubscribe>
Precedence: list
Resent-Sender: debian-user-request@lists.debian.org
Resent-Date: Fri, 30 Oct 2009 10:01:23 +0000 (UTC)

This is a cryptographically signed message in MIME format.

--------------ms040406030206040604020903
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

jagginess wrote:
> Is there a way to determine if reportbug is misbehaving?
>
> I dont like having to copy and paste the template made from console
> everytime to my icedove thunderbird.. are there any alternatives?
>
> I'm at a lost.. I had reportbug working and now i only get smtp-auth..
> I have no idea if its my isp's fault or if its reportbug :/.. it's
> funny its been working dozens of times..
>
>
>

Most probably something changed in the way reportbug was sending the
email report. Send us the error message please.

BTW, here is my /etc/reportbug.cfg that works (comment lines omitted):


submit

query-bts

cc

config-files

compress

email "gpall@ccf.auth.gr"
realname "Giorgos Pallas"

smtphost localhost

verify



--------------ms040406030206040604020903
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCS qGSIb3DQEHAQAAoIIiFjCC
CBUwggb9oAMCAQICBQEAAAAIMA0GCSqGSIb3DQEBBAUAMIGVMQ swCQYDVQQGEwJHUjFEMEIG
A1UEChM7SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIE luc3RpdHV0aW9ucyBDZXJ0
LiBBdXRob3JpdHkxQDA+BgNVBAMTN0hlbGxlbmljIEFjYWRlbW ljIGFuZCBSZXNlYXJjaCBJ
bnN0aXR1dGlvbnMgUm9vdENBIDIwMDYwHhcNMDgwMTA5MTExND U4WhcNMTYwMTA3MTExNDU4
WjCBoTELMAkGA1UEBhMCR1IxLTArBgNVBAoTJEFyaXN0b3RsZS BVbml2ZXJzaXR5IG9mIFRo
ZXNzYWxvbmlraTE9MDsGA1UEAxM0QXJpc3RvdGxlIFVuaXZlcn NpdHkgb2YgVGhlc3NhbG9u
aWtpIENlbnRyYWwgQ0EgMjAwODEkMCIGCSqGSIb3DQEJARYVY2 VudHJhbGNhMjAwOEBhdXRo
LmdyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzu AGtNJF5Cll1dCbr2k86e+v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eXnwOBZe/cw3sYG35kCfvc52ScaQQDAo1GN
rDNjZ6rl1oL45L/8xPXO5+A972f9HH1a3l8wnm3sA+6p6KvwlWquR2K8e07pP0DJq hehwAvW
Cff4G0beqpI8+/8AAAAAAAA=
--------------ms040406030206040604020903--


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-25-2009, 01:30 PM
Steven Whitehouse
 
Default GFS2: add barrier/nobarrier mount options

From: Christoph Hellwig <hch@lst.de>

Currently gfs2 issues barrier unconditionally. There are various reasons
to disable them, be that just for testing or for stupid devices flushing
large battert backed caches. Add a nobarrier option that matches xfs and
btrfs for this. Also add a symmetric barrier option to turn it back on
at remount time.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
---
fs/gfs2/incore.h | 1 +
fs/gfs2/ops_fstype.c | 2 ++
fs/gfs2/super.c | 14 ++++++++++++++
3 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index c239b0f..4792200 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -429,6 +429,7 @@ struct gfs2_args {
unsigned int ar_meta:1; /* mount metafs */
unsigned int ar_discard:1; /* discard requests */
unsigned int ar_errors:2; /* errors=withdraw | panic */
+ unsigned int ar_nobarrier:1; /* do not send barriers */
int ar_commit; /* Commit interval */
int ar_statfs_quantum; /* The fast statfs interval */
int ar_quota_quantum; /* The quota interval */
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c
index 9744ee9..edfee24 100644
--- a/fs/gfs2/ops_fstype.c
+++ b/fs/gfs2/ops_fstype.c
@@ -1131,6 +1131,8 @@ static int fill_super(struct super_block *sb, struct gfs2_args *args, int silent
}
if (sdp->sd_args.ar_posix_acl)
sb->s_flags |= MS_POSIXACL;
+ if (sdp->sd_args.ar_nobarrier)
+ set_bit(SDF_NOBARRIERS, &sdp->sd_flags);

sb->s_magic = GFS2_MAGIC;
sb->s_op = &gfs2_super_ops;
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c
index b1dcfab..5e4b314 100644
--- a/fs/gfs2/super.c
+++ b/fs/gfs2/super.c
@@ -73,6 +73,8 @@ enum {
Opt_statfs_quantum,
Opt_statfs_percent,
Opt_quota_quantum,
+ Opt_barrier,
+ Opt_nobarrier,
Opt_error,
};

@@ -107,6 +109,8 @@ static const match_table_t tokens = {
{Opt_statfs_quantum, "statfs_quantum=%d"},
{Opt_statfs_percent, "statfs_percent=%d"},
{Opt_quota_quantum, "quota_quantum=%d"},
+ {Opt_barrier, "barrier"},
+ {Opt_nobarrier, "nobarrier"},
{Opt_error, NULL}
};

@@ -253,6 +257,12 @@ int gfs2_mount_args(struct gfs2_args *args, char *options)
}
args->ar_errors = GFS2_ERRORS_PANIC;
break;
+ case Opt_barrier:
+ args->ar_nobarrier = 0;
+ break;
+ case Opt_nobarrier:
+ args->ar_nobarrier = 1;
+ break;
case Opt_error:
default:
printk(KERN_WARNING "GFS2: invalid mount option: %s
", o);
@@ -1143,6 +1153,10 @@ static int gfs2_remount_fs(struct super_block *sb, int *flags, char *data)
sb->s_flags |= MS_POSIXACL;
else
sb->s_flags &= ~MS_POSIXACL;
+ if (sdp->sd_args.ar_nobarrier)
+ set_bit(SDF_NOBARRIERS, &sdp->sd_flags);
+ else
+ clear_bit(SDF_NOBARRIERS, &sdp->sd_flags);
spin_lock(&gt->gt_spin);
gt->gt_log_flush_secs = args.ar_commit;
gt->gt_quota_quantum = args.ar_quota_quantum;
--
1.6.2.5
 

Thread Tools




All times are GMT. The time now is 09:49 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org