[Stgt-devel] [PATCH] head and data digest

Albert Pauw albert.pauw
Mon Apr 23 05:22:06 CEST 2007


FUJITA Tomonori wrote:
> From: Albert Pauw <albert.pauw at gmail.com>
> Subject: Re: [Stgt-devel] [PATCH] head and data digest
> Date: Sun, 22 Apr 2007 17:39:26 +0200
> 
>> I set HeaderDigest to CRC32C on the disk target:
> 
> Do you enable the features? Here's an example:
> 
> root at ac:~/git# ./tgt/usr/tgtadm --op show --mode target --tid 1
> MaxRecvDataSegmentLength=8192
> MaxXmitDataSegmentLength=8192
> HeaderDigest=None
> DataDigest=None
> InitialR2T=Yes
> MaxOutstandingR2T=1
> ImmediateData=Yes
> FirstBurstLength=65536
> MaxBurstLength=262144
> DataPDUInOrder=Yes
> DataSequenceInOrder=Yes
> ErrorRecoveryLevel=0
> IFMarker=No
> OFMarker=No
> DefaultTime2Wait=2
> DefaultTime2Retain=20
> OFMarkInt=Reject
> IFMarkInt=Reject
> MaxConnections=1
> 
> root at ac:~/git# ./tgt/usr/tgtadm --op update --mode target --tid 1 -n HeaderDigest -v CRC32C
> root at ac:~/git# ./tgt/usr/tgtadm --op update --mode target --tid 1 -n DataDigest -v CRC32C
> 
> root at ac:~/git# ./tgt/usr/tgtadm --op show --mode target --tid 1
> MaxRecvDataSegmentLength=8192
> MaxXmitDataSegmentLength=8192
> HeaderDigest=CRC32C
> DataDigest=CRC32C
> InitialR2T=Yes
> MaxOutstandingR2T=1
> ImmediateData=Yes
> FirstBurstLength=65536
> MaxBurstLength=262144
> DataPDUInOrder=Yes
> DataSequenceInOrder=Yes
> ErrorRecoveryLevel=0
> IFMarker=No
> OFMarker=No
> DefaultTime2Wait=2
> DefaultTime2Retain=20
> OFMarkInt=Reject
> IFMarkInt=Reject
> MaxConnections=1
> 
> With this configuration, the target accepts CRC32C and
> None. Currently, there is no way to configure a target to accept only
> CRC32C.
> 
> If it still doesn't work for you, please send the tcpdump log during a
> login process.
> 
Oops, good point, forgot that.

I'll let you know.

Thanks,

Albert



More information about the stgt mailing list