summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2026-03-23 08:03:06 +0100
committerTrond Myklebust <trond.myklebust@hammerspace.com>2026-04-13 14:00:22 -0700
commitb0ed12538fdfeb39c844eba3fa4c269ddb4ebca7 (patch)
tree476121b7c59f7ce08fd38a3ae147fff36b263f51 /fs
parent704f3f640f72db4d44ec5ce3db8d4e150c974bc7 (diff)
downloadlinux-b0ed12538fdfeb39c844eba3fa4c269ddb4ebca7.tar.gz
linux-b0ed12538fdfeb39c844eba3fa4c269ddb4ebca7.zip
NFS/blocklayout: print each device used for SCSI layouts
We already print device uses for block layouts, do the same for SCSI layouts as that greatly helps understanding the operation of the client. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/blocklayout/dev.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/nfs/blocklayout/dev.c b/fs/nfs/blocklayout/dev.c
index cc6327d97a91..bb35f88501ce 100644
--- a/fs/nfs/blocklayout/dev.c
+++ b/fs/nfs/blocklayout/dev.c
@@ -370,11 +370,14 @@ bl_open_path(struct pnfs_block_volume *v, const char *prefix)
if (!devname)
return ERR_PTR(-ENOMEM);
- bdev_file = bdev_file_open_by_path(devname, BLK_OPEN_READ | BLK_OPEN_WRITE,
- NULL, NULL);
+ bdev_file = bdev_file_open_by_path(devname,
+ BLK_OPEN_READ | BLK_OPEN_WRITE, NULL, NULL);
if (IS_ERR(bdev_file)) {
dprintk("failed to open device %s (%ld)\n",
devname, PTR_ERR(bdev_file));
+ } else {
+ pr_info("pNFS: using block device %s\n",
+ file_bdev(bdev_file)->bd_disk->disk_name);
}
kfree(devname);