- add scrub subcommand - scan /proc/partitions by default (or use --all-devices for all) - mkfs fixes and improvements - documentation fixes - update from git: - add btrfs-select-super utility - add btrfs-label utility - allow mixed data+metadata (option --mixed) - allow populating new filesystem with files (option --rootdir) - allow discard support in mkfs - lzo support - deprecate 'btrfsctl' 'btrfs-vol' 'btrfs-show' - other bugfixes and documentation improvements OBS-URL: https://build.opensuse.org/package/show/filesystems/btrfsprogs?expand=0&rev=104
37 lines
990 B
Diff
37 lines
990 B
Diff
From ac1a80f52434d05230f9933d8f68e28cc09e10b0 Mon Sep 17 00:00:00 2001
|
|
From: Goldwyn Rodrigues <rgoldwyn@gmail.com>
|
|
Date: Mon, 7 Feb 2011 07:34:36 +0000
|
|
Subject: [PATCH 03/15] Btrfs-progs utils Informative errors
|
|
|
|
Signed-off-by: Chris Mason <chris.mason@oracle.com>
|
|
---
|
|
utils.c | 5 +++--
|
|
1 files changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/utils.c b/utils.c
|
|
index 96ef94d..d8c3dcc 100644
|
|
--- a/utils.c
|
|
+++ b/utils.c
|
|
@@ -867,7 +867,7 @@ again:
|
|
}
|
|
dirp = opendir(dirname);
|
|
if (!dirp) {
|
|
- fprintf(stderr, "Unable to open /sys/block for scanning\n");
|
|
+ fprintf(stderr, "Unable to open %s for scanning\n", dirname);
|
|
return -ENOENT;
|
|
}
|
|
while(1) {
|
|
@@ -902,7 +902,8 @@ again:
|
|
}
|
|
fd = open(fullpath, O_RDONLY);
|
|
if (fd < 0) {
|
|
- fprintf(stderr, "failed to read %s\n", fullpath);
|
|
+ fprintf(stderr, "failed to read %s: %s\n", fullpath,
|
|
+ strerror(errno));
|
|
continue;
|
|
}
|
|
ret = btrfs_scan_one_device(fd, fullpath, &tmp_devices,
|
|
--
|
|
1.7.5.2.353.g5df3e
|
|
|