4ac0f8fa3e
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
32 lines
1018 B
Diff
32 lines
1018 B
Diff
From 30602f533f151c24fe1345f495f02c30f98895f1 Mon Sep 17 00:00:00 2001
|
|
From: Labun, Marcin <Marcin.Labun@intel.com>
|
|
Date: Mon, 30 Jan 2012 12:00:43 +1100
|
|
Subject: [PATCH] imsm: display fd in error trace when when store_imsm_mpb
|
|
failes
|
|
|
|
Signed-off-by: Marcin Labun <marcin.labun@intel.com>
|
|
Signed-off-by: NeilBrown <neilb@suse.de>
|
|
---
|
|
super-intel.c | 5 +++--
|
|
1 files changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/super-intel.c b/super-intel.c
|
|
index 7db5177..8d67a14 100644
|
|
--- a/super-intel.c
|
|
+++ b/super-intel.c
|
|
@@ -5027,8 +5027,9 @@ static int write_super_imsm(struct supertype *st, int doclose)
|
|
if (d->index < 0 || is_failed(&d->disk))
|
|
continue;
|
|
if (store_imsm_mpb(d->fd, mpb))
|
|
- fprintf(stderr, "%s: failed for device %d:%d %s\n",
|
|
- __func__, d->major, d->minor, strerror(errno));
|
|
+ fprintf(stderr, "%s: failed for device %d:%d (fd: %d)%s\n",
|
|
+ __func__, d->major, d->minor, d->fd, strerror(errno));
|
|
+
|
|
if (clear_migration_record) {
|
|
unsigned long long dsize;
|
|
|
|
--
|
|
1.7.4.4
|
|
|