linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] __btrfs_drop_extents() BUG_ON reproducer
@ 2014-02-07 10:35 David Disseldorp
  2014-02-07 10:35 ` [PATCH v3 1/3] btrfs: add small program for clone testing David Disseldorp
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: David Disseldorp @ 2014-02-07 10:35 UTC (permalink / raw)
  To: xfs; +Cc: linux-btrfs

This patch-set provides a reproducer for hitting the 3.14.0-rc1 BUG_ON()
at:
 692 int __btrfs_drop_extents(struct btrfs_trans_handle *trans,
...
 839                 /*
 840                  *  | ---- range to drop ----- |
 841                  *      | -------- extent -------- |
 842                  */
 843                 if (start <= key.offset && end < extent_end) {
 844                         BUG_ON(extent_type == BTRFS_FILE_EXTENT_INLINE);
 845 
 846                         memcpy(&new_key, &key, sizeof(new_key));

The first patch adds a small cloner binary which is used by btrfs/035 to
dispatch BTRFS_IOC_CLONE_RANGE requests.

This workload resembles that of Samba's vfs_btrfs module, when a Windows
client restores a file from a shadow-copy (snapshot) using server-side
copy requests.

Changes since V2:
- Remove explicit write error checks

Changes since V1:
- Use strtoull instead of atoi
- Print error conditions in cloner
- Check for cloner binary before running test
- Continue test on failure
- Add cloner to .gitignore

Feedback appreciated.

Cheers, David


 .gitignore          |   1 +
 configure.ac        |   1 +
 src/Makefile        |   2 +-
 src/cloner.c        | 192 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/btrfs/035     |  77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/btrfs/035.out |   3 +++
 tests/btrfs/group   |   1 +
 7 files changed, 276 insertions(+), 1 deletion(-)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-02-14 13:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-07 10:35 [PATCH v3 0/3] __btrfs_drop_extents() BUG_ON reproducer David Disseldorp
2014-02-07 10:35 ` [PATCH v3 1/3] btrfs: add small program for clone testing David Disseldorp
2014-02-07 10:35 ` [PATCH v3 2/3] src/cloner: use btrfs/ioctl.h header if present David Disseldorp
2014-02-07 10:35 ` [PATCH v3 3/3] btrfs/035: add new clone overwrite regression test David Disseldorp
2014-02-14 12:46 ` [PATCH v3 0/3] __btrfs_drop_extents() BUG_ON reproducer David Disseldorp
2014-02-14 13:39   ` Filipe David Manana

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).