[PATCH 4/5] imsm: display fd in error trace when when store_imsm_mpb failes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux