[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/7] Move from the find_device the error logging logic to the cal
From: |
Goffredo Baroncelli |
Subject: |
[PATCH 3/7] Move from the find_device the error logging logic to the callee. |
Date: |
Tue, 24 Apr 2018 21:13:12 +0200 |
Signed-off-by: Goffredo Baroncelli <address@hidden>
---
grub-core/fs/btrfs.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/grub-core/fs/btrfs.c b/grub-core/fs/btrfs.c
index 01a1fc7a1..745bb854e 100644
--- a/grub-core/fs/btrfs.c
+++ b/grub-core/fs/btrfs.c
@@ -602,9 +602,6 @@ find_device (struct grub_btrfs_data *data, grub_uint64_t
id, int do_rescan)
grub_device_iterate (find_device_iter, &ctx);
if (!ctx.dev_found)
{
- grub_error (GRUB_ERR_BAD_FS,
- N_("couldn't find a necessary member device "
- "of multi-device filesystem"));
return NULL;
}
data->n_devices_attached++;
@@ -862,6 +859,9 @@ grub_btrfs_read_logical (struct grub_btrfs_data *data,
grub_disk_addr_t addr,
dev = find_device (data, stripe->device_id, j);
if (!dev)
{
+ grub_dprintf ("btrfs",
+ "couldn't find a necessary member device "
+ "of multi-device filesystem\n");
err = grub_errno;
grub_errno = GRUB_ERR_NONE;
continue;
--
2.17.0
- [PATCH V2] Add support for BTRFS raid5/6 to GRUB, Goffredo Baroncelli, 2018/04/24
- [PATCH 1/7] Add support for reading a filesystem with a raid5 or raid6 profile., Goffredo Baroncelli, 2018/04/24
- [PATCH 2/7] Add helper to check the btrfs header., Goffredo Baroncelli, 2018/04/24
- [PATCH 3/7] Move from the find_device the error logging logic to the callee.,
Goffredo Baroncelli <=
- [PATCH 4/7] Avoiding scanning for an already not found device., Goffredo Baroncelli, 2018/04/24
- [PATCH 5/7] Refactor the code of read from disk, Goffredo Baroncelli, 2018/04/24
- [PATCH 6/7] Add support for recovery for a raid5 btrfs profiles., Goffredo Baroncelli, 2018/04/24
- [PATCH 7/7] Add raid6 recovery., Goffredo Baroncelli, 2018/04/24