From: "Jose R. Santos" <jrs@us.ibm.com>
To: "Theodore Ts'o" <tytso@mit.edu>, linux-ext4@vger.kernel.org
Subject: [PATCH][e2fsprogs] Allow user to disable Undo manager through MKE2FS_SCRATCH_DIR
Date: Fri, 04 Apr 2008 09:02:35 -0500 [thread overview]
Message-ID: <20080404140235.28080.97243.stgit@gara.konoha.net> (raw)
From: Jose R. Santos <jrs@us.ibm.com>
Allow user to disable Undo manager through MKE2FS_SCRATCH_DIR
Undo manager is a bit annoying when doing e2fsprogs testing since it
makes mke2fs significatly slower. Use the MKE2FS_SCRATCH_DIR=disable
enviroment value to disable undo manager for those of us that blow up
filesystems on a regular basis.
Signed-off-by: Jose R. Santos <jrs@us.ibm.com>
--
misc/mke2fs.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/misc/mke2fs.c b/misc/mke2fs.c
index c8170f0..3f9cbe2 100644
--- a/misc/mke2fs.c
+++ b/misc/mke2fs.c
@@ -1802,6 +1802,13 @@ static int filesystem_exist(const char *name)
__u16 s_magic;
struct ext2_super_block super;
io_manager manager = unix_io_manager;
+ char *tdb_dir;
+
+ tdb_dir = getenv("MKE2FS_SCRATCH_DIR");
+ if (tdb_dir && !strcmp(tdb_dir, "disable")) {
+ retval = 0;
+ goto open_err_out;
+ }
retval = manager->open(name, IO_FLAG_EXCLUSIVE, &channel);
if (retval) {
next reply other threads:[~2008-04-04 14:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-04 14:02 Jose R. Santos [this message]
2008-04-06 22:19 ` [PATCH][e2fsprogs] Allow user to disable Undo manager through MKE2FS_SCRATCH_DIR Theodore Tso
2008-04-07 1:44 ` Eric Sandeen
2008-04-07 4:20 ` Theodore Tso
2008-04-07 15:02 ` Aneesh Kumar K.V
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=20080404140235.28080.97243.stgit@gara.konoha.net \
--to=jrs@us.ibm.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/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.