[PATCH] show backing store type

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

 



show backing store type

Signed-off-by: Doron Shoham <dorons@xxxxxxxxxxxx>
---
 usr/target.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/usr/target.c b/usr/target.c
index dc30c87..cb55018 100644
--- a/usr/target.c
+++ b/usr/target.c
@@ -1589,7 +1589,8 @@ int tgt_target_show_all(char *buf, int rest)
 				 _TAB3 "Size: %s\n"
 				 _TAB3 "Online: %s\n"
 				 _TAB3 "Removable media: %s\n"
-				 _TAB3 "Backing store: %s\n",
+				 _TAB3 "Backing Store path: %s\n"
+				 _TAB3 "Backing Store type: %s\n",
 				 lu->lun,
   				 print_type(lu->attrs.device_type),
 				 lu->attrs.scsi_id,
@@ -1597,7 +1598,8 @@ int tgt_target_show_all(char *buf, int rest)
 				 print_disksize(lu->size),
 				 lu->attrs.online ? "Yes" : "No",
 				 lu->attrs.removable ? "Yes" : "No",
-				 lu->path ? : "No backing store");
+				 lu->path ? : "No backing store",
+				 lu->bst->bs_name ? : "No backing type");
 
 		if (!strcmp(tgt_drivers[target->lid]->name, "iscsi")) {
 			int i, aid;
-- 
1.5.3.8

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux