[stgt] [PATCH] allow target state parameter in the configuration file
Paul Ryan
pajryan at gmail.com
Sun Sep 25 04:16:33 CEST 2011
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 at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list