[PATCH] allow target state parameter in the configuration file

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

 



Hi Tomonori-san,

I'd like to be able to start targets in the offline state, so I can
preserve their state after reboot.  The following patch adds support
for the state parameter in the config file.

---
 scripts/tgt-admin |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/scripts/tgt-admin b/scripts/tgt-admin
index d19580b..176f2e8 100755
--- a/scripts/tgt-admin
+++ b/scripts/tgt-admin
@@ -763,7 +763,8 @@ sub process_options {
 			^DefaultTime2Retain$|
 			^OFMarkInt$|
 			^IFMarkInt$|
-			^MaxConnections/x) {
+			^MaxConnections$|
+			^state/x) {
 	        # if we have one command, force it to be an array anyway
 		force_array();
 		if (length @$value[1]) {


Thanks,

Paul Ryan
--
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