linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anand Jain <anand.jain@oracle.com>
To: linux-btrfs@vger.kernel.org
Cc: Wolfgang_Mader@brain-frog.de, dsterba@suse.cz
Subject: [PATCH 1/2] Btrfs: log when missing device is created
Date: Mon, 27 Apr 2015 12:46:18 +0800	[thread overview]
Message-ID: <1430109979-9397-2-git-send-email-anand.jain@oracle.com> (raw)
In-Reply-To: <1430109979-9397-1-git-send-email-anand.jain@oracle.com>

Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
 fs/btrfs/volumes.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index f2b5cc9..693745e 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -6109,6 +6109,8 @@ static int read_one_chunk(struct btrfs_root *root, struct btrfs_key *key,
 				free_extent_map(em);
 				return -EIO;
 			}
+			btrfs_warn(root->fs_info, "devid %llu uuid %pU is missing",
+						devid, uuid);
 		}
 		map->stripes[i].dev->in_fs_metadata = 1;
 	}
-- 
2.0.0.153.g79dcccc


  reply	other threads:[~2015-04-27  4:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-27  4:46 [PATCH 0/2] serviceability: add event log when missing device is created Anand Jain
2015-04-27  4:46 ` Anand Jain [this message]
2015-05-05 15:52   ` [PATCH 1/2] Btrfs: " David Sterba
2015-04-27  4:46 ` [PATCH 2/2] Btrfs: check error before reporting missing device and add uuid Anand Jain
2015-05-05 15:43   ` David Sterba
2015-05-07 20:34   ` Anand Jain

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=1430109979-9397-2-git-send-email-anand.jain@oracle.com \
    --to=anand.jain@oracle.com \
    --cc=Wolfgang_Mader@brain-frog.de \
    --cc=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).