Re: btrfs restore memory corruption (bug: 82701)

2014-08-22 Thread Gui Hecheng
On Thu, 2014-08-21 at 16:19 +0200, Marc Dietrich wrote: Am Donnerstag, 21. August 2014, 17:52:16 schrieb Gui Hecheng: On Mon, 2014-08-18 at 11:25 +0200, Marc Dietrich wrote: Hi, I did a checkout of the latest btrfs progs to repair my damaged filesystem. Running btrfs restore

Re: Significance of high number of mails on this list?

2014-08-22 Thread Konstantinos Skarlatos
On 22/8/2014 6:40 πμ, Shriramana Sharma wrote: Hello people. Thank you for your detailed replies, esp Duncan. In essence, I plan on using BTRFS for my production data -- mainly programs/documents I write in connection with my academic research. I'm not a professional sysadmin and I'm not

Re: [PATCH] btrfs-progs: init uninitialized output buf for btrfs-restore

2014-08-22 Thread Marc Dietrich
Hi Eric, Am Donnerstag, 21. August 2014, 13:56:49 schrieb Eric Sandeen: On 8/21/14, 1:42 PM, Eric Sandeen wrote: On 8/20/14, 10:35 PM, Gui Hecheng wrote: A memory problem reported by valgrind as follows: === Syscall param pwrite64(buf) points to uninitialised byte(s) When running:

Re: Significance of high number of mails on this list?

2014-08-22 Thread Duncan
Konstantinos Skarlatos posted on Fri, 22 Aug 2014 09:56:55 +0300 as excerpted: I would stay with rsync for a while, because there is always the possibility of a bug that corrupts both your primary filesystem and your backup one, or send propagating corruption from one filesystem to another

Re: btrfs restore

2014-08-22 Thread Mihail Zaporozhets
Marc MERLIN marc at merlins.org writes: On Thu, Aug 21, 2014 at 05:52:01AM +, Mihail Zaporozhets wrote: # btrfs-zero-log /dev/sda1 warning devid 5 not found already Check tree block failed, want=16845270495232, have=0 read block failed check_tree_block

Re: btrfs restore memory corruption (bug: 82701)

2014-08-22 Thread Marc Dietrich
Am Freitag, 22. August 2014, 14:43:45 schrieb Gui Hecheng: On Thu, 2014-08-21 at 16:19 +0200, Marc Dietrich wrote: Am Donnerstag, 21. August 2014, 17:52:16 schrieb Gui Hecheng: On Mon, 2014-08-18 at 11:25 +0200, Marc Dietrich wrote: Hi, I did a checkout of the latest btrfs progs

Re: btrfs restore memory corruption (bug: 82701)

2014-08-22 Thread Gui Hecheng
On Fri, 2014-08-22 at 10:42 +0200, Marc Dietrich wrote: Am Freitag, 22. August 2014, 14:43:45 schrieb Gui Hecheng: On Thu, 2014-08-21 at 16:19 +0200, Marc Dietrich wrote: Am Donnerstag, 21. August 2014, 17:52:16 schrieb Gui Hecheng: On Mon, 2014-08-18 at 11:25 +0200, Marc Dietrich wrote:

Re: Significance of high number of mails on this list?

2014-08-22 Thread Filipe David Manana
On Fri, Aug 22, 2014 at 8:35 AM, Duncan 1i5t5.dun...@cox.net wrote: Konstantinos Skarlatos posted on Fri, 22 Aug 2014 09:56:55 +0300 as excerpted: I would stay with rsync for a while, because there is always the possibility of a bug that corrupts both your primary filesystem and your backup

Re: Significance of high number of mails on this list?

2014-08-22 Thread Austin S Hemmelgarn
On 2014-08-20 23:22, Shriramana Sharma wrote: Hello. People on this list have been kind enough to reply to my technical questions. However, seeing the high number of mails on this list, esp with the title PATCH, I have a question about the development itself: Is this just an indication of a

Distro vs latest kernel for BTRFS?

2014-08-22 Thread Shriramana Sharma
Hello. I've seen repeated advices to use the latest kernel. While hearing of the recent compression bug affecting recent kernels does somewhat warn one off the previous advice, I would like to know what people who are running regular distros do to get the latest kernel. Personally I'm on Kubuntu,

Re: Distro vs latest kernel for BTRFS?

2014-08-22 Thread Austin S Hemmelgarn
On 2014-08-22 07:59, Shriramana Sharma wrote: Hello. I've seen repeated advices to use the latest kernel. While hearing of the recent compression bug affecting recent kernels does somewhat warn one off the previous advice, I would like to know what people who are running regular distros do to

Re: mkfs.btrfs vs fstrim on an SD Card (not SSD)

2014-08-22 Thread Martin K. Petersen
Chris == Chris Murphy li...@colorremedies.com writes: Chris Since the SD Card spec references a completely different command Chris than the ATA spec (TRIM), I don't think either one of these are Chris TRIM, even if functionally equivalent. Instead the SD Card Chris ERASE_* commands are probably

Re: Significance of high number of mails on this list?

2014-08-22 Thread Konstantinos Skarlatos
On 22/8/2014 12:58 μμ, Filipe David Manana wrote: On Fri, Aug 22, 2014 at 8:35 AM, Duncan 1i5t5.dun...@cox.net wrote: Konstantinos Skarlatos posted on Fri, 22 Aug 2014 09:56:55 +0300 as excerpted: I would stay with rsync for a while, because there is always the possibility of a bug that

Re: Significance of high number of mails on this list?

2014-08-22 Thread Marc MERLIN
On Fri, Aug 22, 2014 at 09:56:55AM +0300, Konstantinos Skarlatos wrote: I would stay with rsync for a while, because there is always the possibility of a bug that corrupts both your primary filesystem and your backup one, or send propagating corruption from one filesystem to another (Or maybe

Re: btrfs receive problem on ARM kirkwood NAS with kernel 3.16.0 and btrfs-progs 3.14.2

2014-08-22 Thread Klaus Holler
Hello Zach! Am 2014-08-21 um 23:25 schrieb Zach Brown: On Thu, Aug 21, 2014 at 09:03:16PM +0200, Klaus Holler wrote: Hello Hugo and Zach! a big thanks to both of you! Both Hugo's userspace workaround and Zach's patch work fine for me - the /boot snapshot can be restored completely as

Re: Distro vs latest kernel for BTRFS?

2014-08-22 Thread Marc MERLIN
On Fri, Aug 22, 2014 at 05:29:29PM +0530, Shriramana Sharma wrote: Hello. I've seen repeated advices to use the latest kernel. While hearing of the recent compression bug affecting recent kernels does somewhat warn one off the previous advice, I would like to know what people who are running

Re: [PATCH] btrfs-progs: init uninitialized output buf for btrfs-restore

2014-08-22 Thread Eric Sandeen
On 8/22/14, 2:35 AM, Marc Dietrich wrote: Hi Eric, Am Donnerstag, 21. August 2014, 13:56:49 schrieb Eric Sandeen: On 8/21/14, 1:42 PM, Eric Sandeen wrote: On 8/20/14, 10:35 PM, Gui Hecheng wrote: A memory problem reported by valgrind as follows: === Syscall param pwrite64(buf) points to

Re: [PATCH v2] Btrfs: fix crash on endio of reading corrupted block

2014-08-22 Thread Eric Sandeen
On 8/20/14, 3:51 AM, Liu Bo wrote: The crash is [ cut here ] kernel BUG at fs/btrfs/extent_io.c:2124! invalid opcode: [#1] SMP ... --- v2: - Improve the commit log to be clear, suggested by Eric. Well, I had specifically asked for it to include details

Unclean shutdowns cause google-chrome profile to be corrupted in various ways

2014-08-22 Thread Marc MERLIN
Someone just told me yesterday they had the same problem, so I filed a bug: https://bugzilla.kernel.org/show_bug.cgi?id=83041 Fairly often (over 20 times for me so far with various kernel versions), when I reboot after a crash, my google-chrome profile is damaged in one of 2 ways: 1) open tabs

Re: Unclean shutdowns cause google-chrome profile to be corrupted in various ways

2014-08-22 Thread Eric Sandeen
On 8/22/14, 10:50 AM, Marc MERLIN wrote: But if my kernel hangs due to a bug that isn't btrfs' fault and I need to power off and back on, after reboot my google-chrome profile is almost always broken in some way. Given my experiences with userspace in general, I'd lay money on google-chrome

Re: Significance of high number of mails on this list?

2014-08-22 Thread Duncan
Filipe David Manana posted on Fri, 22 Aug 2014 10:58:33 +0100 as excerpted: On Fri, Aug 22, 2014 at 8:35 AM, Duncan 1i5t5.dun...@cox.net wrote: Konstantinos Skarlatos posted on Fri, 22 Aug 2014 09:56:55 +0300 as excerpted: I would stay with rsync for a while, because there is always the

Re: Distro vs latest kernel for BTRFS?

2014-08-22 Thread Martin Steigerwald
Am Freitag, 22. August 2014, 17:29:29 schrieb Shriramana Sharma: Hello. I've seen repeated advices to use the latest kernel. While hearing of the recent compression bug affecting recent kernels does somewhat warn one off the previous advice, I would like to know what people who are running

Re: Distro vs latest kernel for BTRFS?

2014-08-22 Thread Duncan
Austin S Hemmelgarn posted on Fri, 22 Aug 2014 08:04:12 -0400 as excerpted: On 2014-08-22 07:59, Shriramana Sharma wrote: Hello. I've seen repeated advices to use the latest kernel. While hearing of the recent compression bug affecting recent kernels does somewhat warn one off the previous

Re: Unclean shutdowns cause google-chrome profile to be corrupted in various ways

2014-08-22 Thread Duncan
Marc MERLIN posted on Fri, 22 Aug 2014 08:50:40 -0700 as excerpted: Fairly often (over 20 times for me so far with various kernel versions), when I reboot after a crash, my google-chrome profile is damaged in one of 2 ways: 1) open tabs don't reopen 2) google-chrome says that my profile is

Re: Distro vs latest kernel for BTRFS?

2014-08-22 Thread Rich Freeman
On Fri, Aug 22, 2014 at 8:04 AM, Austin S Hemmelgarn ahferro...@gmail.com wrote: I personally use Gentoo Unstable on all my systems, so I build all my kernels locally anyway, and stay pretty much in-line with the current stable Mainline kernel. Gentoo Unstable probably means gentoo-sources,

Re: Significance of high number of mails on this list?

2014-08-22 Thread Rich Freeman
On Fri, Aug 22, 2014 at 3:35 AM, Duncan 1i5t5.dun...@cox.net wrote: No claim to be a dev, btrfs or otherwise, here, but I believe in this case you /are/ being too paranoid. Both btrfs send and receive only deal with data/metadata they know how to deal with. If it's corrupt in some way or if

Re: Unclean shutdowns cause google-chrome profile to be corrupted in various ways

2014-08-22 Thread Marc MERLIN
On Fri, Aug 22, 2014 at 12:32:27PM -0500, Eric Sandeen wrote: On 8/22/14, 10:50 AM, Marc MERLIN wrote: But if my kernel hangs due to a bug that isn't btrfs' fault and I need to power off and back on, after reboot my google-chrome profile is almost always broken in some way. Given my

Re: Unclean shutdowns cause google-chrome profile to be corrupted in various ways

2014-08-22 Thread Marc MERLIN
On Fri, Aug 22, 2014 at 06:17:38PM +, Duncan wrote: Marc MERLIN posted on Fri, 22 Aug 2014 08:50:40 -0700 as excerpted: Fairly often (over 20 times for me so far with various kernel versions), when I reboot after a crash, my google-chrome profile is damaged in one of 2 ways: 1) open

Re: Distro vs latest kernel for BTRFS?

2014-08-22 Thread Austin S Hemmelgarn
On 2014-08-22 14:22, Rich Freeman wrote: On Fri, Aug 22, 2014 at 8:04 AM, Austin S Hemmelgarn ahferro...@gmail.com wrote: I personally use Gentoo Unstable on all my systems, so I build all my kernels locally anyway, and stay pretty much in-line with the current stable Mainline kernel.

Re: [PATCH] trivial: fs/btrfs/tree-log.c: Fix closing brace followed by if

2014-08-22 Thread Rasmus Villemoes
Josef Bacik jba...@fb.com writes: On 06/20/2014 12:51 PM, Rasmus Villemoes wrote: Maybe else if was meant, but because of the goto out_unlock, it doesn't make a difference. Anyway, I chose the only whitespace fix. Signed-off-by: Rasmus Villemoes li...@rasmusvillemoes.dk ---

Re: btrfs and iostat - how do I measure the live performance of my btrsf filesystems?

2014-08-22 Thread G. Richard Bellamy
An interesting exercise saw me reading data from my RAID10 to a USB device, which produced the following representative iostat: Linux 3.14.17-1-lts (eanna) 08/22/2014 _x86_64_ (24 CPU) avg-cpu: %user %nice %system %iowait %steal %idle 3.530.000.502.830.00 93.14

superblock checksum mismatch after crash, cannot mount

2014-08-22 Thread Florian Gamböck
Hi there, I think i just crashed my btrfs partition, is someone willing to guide me through the recovery steps? The crash went like so: I was testing the watchdog ability of my Raspberry Pi, whose root filesystem is btrfs. To test if the watchdog works I started a fork bomb. Normally, the

Re: Unclean shutdowns cause google-chrome profile to be corrupted in various ways

2014-08-22 Thread Marc MERLIN
On Sat, Aug 23, 2014 at 02:52:16AM +, Duncan wrote: For mysql, I got: InnoDB: Page directory corruption: infimum not pointed to 140708 11:53:58 InnoDB: Page dump in ascii and hex (16384 bytes): len 16384; hex (16KB of 0's). Is that on ssd or spinning rust, and if ssd, do

Re: btrfs and iostat - how do I measure the live performance of my btrsf filesystems?

2014-08-22 Thread Duncan
G. Richard Bellamy posted on Fri, 22 Aug 2014 14:36:22 -0700 as excerpted: An interesting exercise saw me reading data from my RAID10 to a USB device, which produced the following representative iostat: Linux 3.14.17-1-lts (eanna) 08/22/2014 _x86_64_ (24 CPU) avg-cpu: %user %nice

Re: [PATCH v2] Btrfs: fix crash on endio of reading corrupted block

2014-08-22 Thread Liu Bo
On Fri, Aug 22, 2014 at 10:32:13AM -0500, Eric Sandeen wrote: On 8/20/14, 3:51 AM, Liu Bo wrote: The crash is [ cut here ] kernel BUG at fs/btrfs/extent_io.c:2124! invalid opcode: [#1] SMP ... --- v2: - Improve the commit log to be clear,

[PATCH v2] Btrfs: fix crash on endio of reading corrupted block

2014-08-22 Thread Liu Bo
The crash is [ cut here ] kernel BUG at fs/btrfs/extent_io.c:2124! invalid opcode: [#1] SMP ... CPU: 3 PID: 88 Comm: kworker/u8:7 Not tainted 3.17.0-0.rc1.git0.1.fc22.x86_64 #1 Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006 Workqueue:

[PATCH v3] Btrfs: fix crash on endio of reading corrupted block

2014-08-22 Thread Liu Bo
The crash is [ cut here ] kernel BUG at fs/btrfs/extent_io.c:2124! invalid opcode: [#1] SMP ... CPU: 3 PID: 88 Comm: kworker/u8:7 Not tainted 3.17.0-0.rc1.git0.1.fc22.x86_64 #1 Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006 Workqueue:

Re: superblock checksum mismatch after crash, cannot mount

2014-08-22 Thread Duncan
Florian Gamböck posted on Sat, 23 Aug 2014 00:00:46 +0200 as excerpted: I think i just crashed my btrfs partition, is someone willing to guide me through the recovery steps? A month or so ago I had a similar problem, and got some experience with real recovery, that I hadn't had previous

Re: Unclean shutdowns cause google-chrome profile to be corrupted in various ways

2014-08-22 Thread Duncan
Marc MERLIN posted on Fri, 22 Aug 2014 20:10:55 -0700 as excerpted: On Sat, Aug 23, 2014 at 02:52:16AM +, Duncan wrote: For mysql, I got: InnoDB: Page directory corruption: infimum not pointed to 140708 11:53:58 InnoDB: Page dump in ascii and hex (16384 bytes): len 16384; hex