Subject: [PATCH 4/5] imsm: display fd in error trace when when store_imsm_mpb failes Signed-off-by: Marcin Labun <marcin.labun@xxxxxxxxx> --- super-intel.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/super-intel.c b/super-intel.c index 9b62f8a..51826bc 100644 --- a/super-intel.c +++ b/super-intel.c @@ -5026,8 +5026,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.1 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html