From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Theodore Tso <tytso@mit.edu>
Cc: linux-ext4@vger.kernel.org
Subject: Re: [Take 2]e2fsprogs: Undo I/O manager
Date: Fri, 20 Jul 2007 08:35:09 +0530 [thread overview]
Message-ID: <46A02665.9090200@linux.vnet.ibm.com> (raw)
In-Reply-To: <20070719212027.GB26752@thunk.org>
Theodore Tso wrote:
> On Thu, Jul 19, 2007 at 11:28:06PM +0530, Aneesh Kumar K.V wrote:
>> This patch fixes some bugs found during testing of the large
>> inode migration patches.
>
> How are you testing it? I notice you haven't wired these into any of
> the existing e2fsprogs programs.
>
> Regards,
>
Attaching below is a simple test program i used to verify this. I also used
this along with the ext3 ext4 migration tool.
-aneesh
diff --git a/test.aneesh/test.c b/test.aneesh/test.c
new file mode 100644
index 0000000..7d0a3e3
--- /dev/null
+++ b/test.aneesh/test.c
@@ -0,0 +1,25 @@
+
+#include "ext2fs/ext2_fs.h"
+#include "ext2fs/ext2fs.h"
+
+main(int argc, char *argv[])
+{
+ char *dev_name, *file_name;
+ int flags, superblock = 0;
+ unsigned int block_size = 0;
+ ext2_filsys current_fs = NULL;
+
+ dev_name = argv[1];
+ file_name = argv[2];
+ flags = EXT2_FLAG_SOFTSUPP_FEATURES | EXT2_FLAG_RW;
+ set_undo_io_backing_manager(unix_io_manager);
+ set_undo_io_backup_file(file_name);
+ ext2fs_open2(dev_name, 0,
+ flags, superblock, block_size,
+ undo_io_manager, ¤t_fs);
+
+ /* Now write super block with junk */
+ memcpy(current_fs->super, "crash me", 8);
+ ext2fs_mark_super_dirty(current_fs);
+ ext2fs_close(current_fs);
+}
prev parent reply other threads:[~2007-07-20 3:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-19 17:58 [Take 2]e2fsprogs: Undo I/O manager Aneesh Kumar K.V
[not found] ` <42dd5d5526f5d0009749a1d612da840a03d58722.1184867582.git.aneesh.kumar@linux.vnet.ibm.com>
2007-07-19 17:58 ` [PATCH 1/2] e2fsprogs: Add undo " Aneesh Kumar K.V
[not found] ` <461b5300ebb5cace30c279c531ed3bb4d84741d4.1184867582.git.aneesh.kumar@linux.vnet.ibm.com>
2007-07-19 17:58 ` [PATCH 2/2] e2fsprogs: Add undoe2fs Aneesh Kumar K.V
2007-07-19 21:20 ` [Take 2]e2fsprogs: Undo I/O manager Theodore Tso
2007-07-20 3:05 ` Aneesh Kumar K.V [this message]
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=46A02665.9090200@linux.vnet.ibm.com \
--to=aneesh.kumar@linux.vnet.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).