On Tue, 05 May 2009 18:54:27 +0200 Albert Pauw <albert.pauw@xxxxxxxxx> wrote: > FUJITA Tomonori wrote: > > On Fri, 01 May 2009 19:48:24 +0200 > > Albert Pauw <albert.pauw@xxxxxxxxx> wrote: > > > > > >> The initd sample script contains the following: > >> > >> tgtadm --op update --mode sys --name State -v offline > >> # Configure the targets. > >> tgt-admin -e -c $TGTD_CONFIG > >> # Put tgtd into "ready" state. > >> tgtadm --op update --mode sys --name State -v ready > >> > >> > >> However, the offline/ready stuff comes back with "tgtadm: invalid request". > >> > > > > I'm not sure about what tgt-admin does, but the above tgtadm ops work > > for me: > > > > root@lily:~/git/tgt# ./usr/tgtadm --op update --mode sys --name State -v offline > > > > root@lily:~/git/tgt# ./usr/tgtadm --op show --mode sys > > System: > > State: offline > > iSNS: > > iSNS=Off > > iSNSServerIP= > > iSNSServerPort=3205 > > iSNSAccessControl=Off > > root@lily:~/git/tgt# ./usr/tgtadm --op update --mode sys --name State -v ready > > root@lily:~/git/tgt# ./usr/tgtadm --op show --mode sys > > System: > > State: ready > > iSNS: > > iSNS=Off > > iSNSServerIP= > > iSNSServerPort=3205 > > iSNSAccessControl=Off > > > > > > > That's really weird. I am using the latest git version, but (even after > your patch): The patch is irrelevant since I can't reproduce your problem. > [root@orange init.d]# tgtadm --op update --mode sys --name State -v offline > tgtadm: invalid request All I can say is that your setup must do something wrong. The current code can handle the above command. -- 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