summaryrefslogtreecommitdiffstats
path: root/utils/blkmapd/device-process.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2014-08-13 10:49:21 -0400
committerSteve Dickson <steved@redhat.com>2014-08-13 10:53:01 -0400
commitb2b7d7f75a2df81704fdd67e7723a3172b4da5a2 (patch)
treeb6d604777cb002d338431f6bd7eeeab5c5a3f2f0 /utils/blkmapd/device-process.c
parent66b2df42911298c29c756d7b8cbdb7f6801264ed (diff)
downloadnfs-utils-b2b7d7f75a2df81704fdd67e7723a3172b4da5a2.tar.gz
nfs-utils-b2b7d7f75a2df81704fdd67e7723a3172b4da5a2.tar.xz
nfs-utils-b2b7d7f75a2df81704fdd67e7723a3172b4da5a2.zip
blkmapd: dump useful device information to syslog
Dump some information about used devices to syslog so that an admin can troubleshoot failing blocklayout mounts. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/blkmapd/device-process.c')
-rw-r--r--utils/blkmapd/device-process.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/blkmapd/device-process.c b/utils/blkmapd/device-process.c
index 5fe3dff..f53a616 100644
--- a/utils/blkmapd/device-process.c
+++ b/utils/blkmapd/device-process.c
@@ -181,6 +181,8 @@ static int map_sig_to_device(struct bl_sig *sig, struct bl_volume *vol)
/* FIXME: should we use better algorithm for disk scan? */
mapped = verify_sig(disk, sig);
if (mapped) {
+ BL_LOG_INFO("%s: using device %s\n",
+ __func__, disk->valid_path->full_path);
vol->param.bv_dev = disk->dev;
vol->bv_size = disk->size;
break;