Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Christoph Hellwig and committed by
Trond Myklebust
b0ed1253 704f3f64

+5 -2
+5 -2
fs/nfs/blocklayout/dev.c
··· 370 370 if (!devname) 371 371 return ERR_PTR(-ENOMEM); 372 372 373 - bdev_file = bdev_file_open_by_path(devname, BLK_OPEN_READ | BLK_OPEN_WRITE, 374 - NULL, NULL); 373 + bdev_file = bdev_file_open_by_path(devname, 374 + BLK_OPEN_READ | BLK_OPEN_WRITE, NULL, NULL); 375 375 if (IS_ERR(bdev_file)) { 376 376 dprintk("failed to open device %s (%ld)\n", 377 377 devname, PTR_ERR(bdev_file)); 378 + } else { 379 + pr_info("pNFS: using block device %s\n", 380 + file_bdev(bdev_file)->bd_disk->disk_name); 378 381 } 379 382 380 383 kfree(devname);