1 Upstream-Status: Inappropriate [Backport]
2 From ac1a80f52434d05230f9933d8f68e28cc09e10b0 Mon Sep 17 00:00:00 2001
3 From: Goldwyn Rodrigues <rgoldwyn@gmail.com>
4 Date: Mon, 7 Feb 2011 07:34:36 +0000
5 Subject: [PATCH 03/15] Btrfs-progs utils Informative errors
7 Signed-off-by: Chris Mason <chris.mason@oracle.com>
10 1 files changed, 3 insertions(+), 2 deletions(-)
12 diff --git a/utils.c b/utils.c
13 index 96ef94d..d8c3dcc 100644
16 @@ -867,7 +867,7 @@ again:
18 dirp = opendir(dirname);
20 - fprintf(stderr, "Unable to open /sys/block for scanning\n");
21 + fprintf(stderr, "Unable to open %s for scanning\n", dirname);
25 @@ -902,7 +902,8 @@ again:
27 fd = open(fullpath, O_RDONLY);
29 - fprintf(stderr, "failed to read %s\n", fullpath);
30 + fprintf(stderr, "failed to read %s: %s\n", fullpath,
34 ret = btrfs_scan_one_device(fd, fullpath, &tmp_devices,