[PATCH RESEND] tgtd: report rotation rate to tgtdadm

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

 



Since 1.0.77, tgt supports rotation rate, and we need to report
it to tgtadm.

Signed-off-by: zhenwei pi <pizhenwei@xxxxxxxxxxxxx>
---
 usr/target.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/usr/target.c b/usr/target.c
index 8432438..ca41e83 100644
--- a/usr/target.c
+++ b/usr/target.c
@@ -2055,7 +2055,8 @@ tgtadm_err tgt_target_show_all(struct concat_buf *b)
 				_TAB3 "Thin-provisioning: %s\n"
 				_TAB3 "Backing store type: %s\n"
 				_TAB3 "Backing store path: %s\n"
-				_TAB3 "Backing store flags: %s\n",
+				_TAB3 "Backing store flags: %s\n"
+				_TAB3 "Rotation rate: %d\n",
 				lu->lun,
 				print_type(lu->attrs.device_type),
 				lu->attrs.scsi_id,
@@ -2073,7 +2074,8 @@ tgtadm_err tgt_target_show_all(struct concat_buf *b)
 					"None",
 				lu->path ? : "None",
 					open_flags_to_str(strflags,
-							  lu->bsoflags));
+							  lu->bsoflags),
+				lu->attrs.rotation_rate);
 
 		if (!strcmp(tgt_drivers[target->lid]->name, "iscsi") ||
 		    !strcmp(tgt_drivers[target->lid]->name, "iser")) {
-- 
2.11.0




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

  Powered by Linux