From: Theodore Ts'o <tytso@mit.edu>
To: Ashlie Martinez <ashmrtn@utexas.edu>
Cc: Vijay Chidambaram <vvijay03@gmail.com>,
Ext4 <linux-ext4@vger.kernel.org>
Subject: Re: ext4 fix for interaction between i_size, fallocate, and delalloc after a crash
Date: Tue, 28 Nov 2017 15:45:26 -0500 [thread overview]
Message-ID: <20171128204525.ijpis74t75f4bbsc@thunk.org> (raw)
In-Reply-To: <CAFk8rvbxaQ72rvOg6NXDQYG1rXtuZsdzJ5SrbR=C6ftAU0YyPA@mail.gmail.com>
On Tue, Nov 28, 2017 at 07:04:54AM -0600, Ashlie Martinez wrote:
> No biggie, part of the reason this was so hard for me to wrap my head
> around is I don't have a physical machine that I can reproduce this on
> (and I never got around to getting a GCE instance to test on). Not
> being able to poke around a reproducing system makes it a little bit
> harder for me to reason about :)
This does reproduce easily using kvm-xfstests[1]; using gce-xfstests
was not necessary. That's actually how I debugged it, since kvm
starts up in under 5 seconds, while starting up a cloud VM takes a bit
longer. So if you want a quick edit/compile/debug cycle, or if you
attach a debugger to the running kernel, using kvm-xfstests is the
right tool to use. 99% of the command syntax and test appliance
implementation is the same between kvm-xfstests and gce-xfstests.
[1] https://github.com/tytso/xfstests-bld/blob/master/Documentation/kvm-quickstart.md
I've been trying to promote the use of kvm-xfstests for researchers
who are interested in doing file system work. So if you can help
promote {kvm,gce}-xfstests amongst your fellow students and
professors, that would be great!
You can run the reproducer automatically via "kvm-xfstests -c 4k
generic/456". But you can also run "kvm-xfstests shell", and then run
the following commands;
kvm-xfstests# export FSTESTSET=generic/456
kvm-xfstests# ./runtests.sh
You can then edit the test script to add debugging commands; it can be
found in /root/xfstests/tests/generic/456 and then rerun the tests
using the "./runtests.sh" script.
Sorry, the only editor available is /bin/ed. If you want to use some
other editor, and are willing to build your own test-appliance VM
image instead of just downloading the rebuilt test applinace image,
you can add it to the xfstests-packages file in the
kvm-xfstests/test-appliance directory, and generate your own test
appliance. See [2] for more details.
[2] https://github.com/tytso/xfstests-bld/blob/master/Documentation/building-rootfs.md
This is actually how I figured out what was happening; I added
commands such as "debugfs -R 'stat <11>'" so I could see was going on
with the file system before the _flakey_drop_and_remount statement,
and then varied the number of operations in the fsx operations to
replay list.
Regards,
- Ted
next prev parent reply other threads:[~2017-11-28 20:45 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-17 15:43 ext4 fix for interaction between i_size, fallocate, and delalloc after a crash Ashlie Martinez
2017-11-21 16:17 ` Ashlie Martinez
2017-11-22 18:03 ` Theodore Ts'o
2017-11-23 5:39 ` Amir Goldstein
2017-11-27 14:31 ` Ashlie Martinez
2017-11-27 16:11 ` Theodore Ts'o
2017-11-28 13:04 ` Ashlie Martinez
2017-11-28 20:45 ` Theodore Ts'o [this message]
2017-11-28 21:27 ` Ashlie Martinez
2017-11-29 3:37 ` Amir Goldstein
2017-11-29 6:13 ` Theodore Ts'o
2017-11-29 8:07 ` Amir Goldstein
2017-11-29 19:58 ` Ashlie Martinez
2017-11-30 0:48 ` Theodore Ts'o
2017-11-30 1:46 ` Ashlie Martinez
2017-11-30 4:46 ` Theodore Ts'o
2017-11-30 14:22 ` Theodore Ts'o
2017-11-30 14:51 ` Ashlie Martinez
2017-11-30 15:27 ` Theodore Ts'o
2017-11-30 15:40 ` Ashlie Martinez
2017-12-02 20:00 ` Ashlie Martinez
2017-11-30 0:24 ` Theodore Ts'o
2017-11-30 6:46 ` Amir Goldstein
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=20171128204525.ijpis74t75f4bbsc@thunk.org \
--to=tytso@mit.edu \
--cc=ashmrtn@utexas.edu \
--cc=linux-ext4@vger.kernel.org \
--cc=vvijay03@gmail.com \
/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