From patchwork Fri Aug 22 01:52:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc MERLIN X-Patchwork-Id: 4760381 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0F5D6C0338 for ; Fri, 22 Aug 2014 01:52:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3B866201B4 for ; Fri, 22 Aug 2014 01:52:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F06842010B for ; Fri, 22 Aug 2014 01:52:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752937AbaHVBwU (ORCPT ); Thu, 21 Aug 2014 21:52:20 -0400 Received: from magic.merlins.org ([209.81.13.136]:47583 "EHLO mail1.merlins.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752757AbaHVBwT (ORCPT ); Thu, 21 Aug 2014 21:52:19 -0400 Received: from [208.59.64.2] (port=35233 helo=legolas.merlins.org) by mail1.merlins.org with esmtpsa (Cipher TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80 #2) id 1XKe1a-00018Q-Db by authid with srv_auth_plain; Thu, 21 Aug 2014 18:52:18 -0700 Received: from merlin by legolas.merlins.org with local (Exim 4.80) (envelope-from ) id 1XKe1Y-0005v1-UV; Thu, 21 Aug 2014 18:52:16 -0700 Date: Thu, 21 Aug 2014 18:52:16 -0700 From: Marc MERLIN To: Mihail Zaporozhets Cc: linux-btrfs@vger.kernel.org Subject: Re: btrfs restore Message-ID: <20140822015216.GE3875@merlins.org> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Sysadmin: BOFH X-URL: http://marc.merlins.org/ User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-No-Run: Yes X-Broken-Reverse-DNS: no host name for IP address 208.59.64.2 X-SA-Exim-Connect-IP: 208.59.64.2 X-SA-Exim-Mail-From: marc@merlins.org Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Thu, Aug 21, 2014 at 05:52:01AM +0000, 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 > Couldn't read tree root You may be hitting the same problem I was a week back. See the thread that says "btrfs-zero-log fails, can't mount FS" Download the source for btrfs-progs, and apply this patch from Chris: Or if you're desparate and want a binary, I'll Email you one directly (not that you should run a binary you got from someone via Email as root, so it's only if you're desperate) Marc diff --git a/disk-io.c b/disk-io.c index 8db0335..d9a8e19 100644 --- a/disk-io.c +++ b/disk-io.c @@ -911,13 +911,13 @@ int btrfs_setup_all_roots(struct btrfs_fs_info *fs_info, u64 root_tree_bytenr, return -EIO; } fs_info->csum_root->track_dirty = 1; - +#if 0 ret = find_and_setup_log_root(root, fs_info, sb); if (ret) { printk("Couldn't setup log root tree\n"); return -EIO; } - +#endif fs_info->generation = generation; fs_info->last_trans_committed = generation; if (extent_buffer_uptodate(fs_info->extent_root->node) &&