All of lore.kernel.org
 help / color / mirror / Atom feed
* What can I do to make btrfs work?
@ 2013-02-12 18:54 Richard W.M. Jones
  2013-02-12 19:02 ` Chris Mason
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Richard W.M. Jones @ 2013-02-12 18:54 UTC (permalink / raw)
  To: linux-btrfs

Btrfs has been broken for me for ages.  I first reported it on this
list 5 months ago[1].  Below is a very simple reproducer that anyone
can run.

*NB* before you run this, adjust /dev/sda & /dev/sda1 to point to an
unused block device!

----------------------------------------------------------------------
#!/bin/sh -
set -e
while true; do
  parted -s -- /dev/sda mklabel msdos
  parted -s -- /dev/sda mkpart primary 64s -64s
  wipefs -a /dev/sda1
  mkfs.btrfs --label TEST /dev/sda1
  mount /dev/sda1 /sysroot
  touch /sysroot/foo
  mkdir /sysroot/bar
  umount /sysroot
done
----------------------------------------------------------------------

On the latest 3.8.0 kernel, this fails immediately (at the mount), and
on 3.7.x it usually fails after a very few iterations.  I see a
variety of errors, but the latest kernel error is:

[    8.474934] device label ROOT devid 1 transid 2 /dev/sda2
[    8.570619] device label ROOT devid 1 transid 2 /dev/sda2
[    8.581891] btrfs: disk space caching is enabled
[    8.594146] btrfs bad tree block start 0 4194304
[    8.595144] btrfs: failed to read tree root on sda2
[    8.605308] btrfs: open_ctree failed

I would really like btrfs to work.  What can I do?

Rich.

[1] http://article.gmane.org/gmane.comp.file-systems.btrfs/20257

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW

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

end of thread, other threads:[~2013-02-15 18:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-12 18:54 What can I do to make btrfs work? Richard W.M. Jones
2013-02-12 19:02 ` Chris Mason
2013-02-12 19:16 ` Josef Bacik
2013-02-12 21:05   ` Richard W.M. Jones
2013-02-12 21:42     ` Chris Mason
2013-02-13 11:00       ` Richard W.M. Jones
2013-02-13 13:10         ` Richard W.M. Jones
2013-02-13 13:31           ` Chris Mason
2013-02-15 18:38             ` Chris Mason
2013-02-12 19:44 ` Zach Brown
2013-02-12 21:06   ` Richard W.M. Jones
2013-02-12 20:08 ` Roman Mamedov

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.