[stgt] [PATCH] show backing store type

Doron Shoham dorons at Voltaire.COM
Thu Oct 16 14:31:43 CEST 2008


show backing store type

Signed-off-by: Doron Shoham <dorons at voltaire.com>
---
 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 at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list