userlibandfileserver/fileserver/shostmassstorage/server/controller/cusbhostmsdevicethread.cpp
changeset 109 b3a1d9898418
parent 33 0173bcd7697c
child 176 af6ec97d9189
equal deleted inserted replaced
102:ef2a444a7410 109:b3a1d9898418
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   417 
   417 
   418 	TUint32 iLunId = aMessage.Int0() + 1; // Subssessions need a positive value to store in the handles. We represent Luns as LunId+1
   418 	TUint32 iLunId = aMessage.Int0() + 1; // Subssessions need a positive value to store in the handles. We represent Luns as LunId+1
   419 	TPtrC8 pLun((TUint8*)&iLunId, sizeof(TUint32));
   419 	TPtrC8 pLun((TUint8*)&iLunId, sizeof(TUint32));
   420 	aMessage.WriteL(3, pLun);
   420 	aMessage.WriteL(3, pLun);
   421 	iLunId -= 1;	// We represent LunId in MSC from 0 to MaxLun-1 as represented in BOT
   421 	iLunId -= 1;	// We represent LunId in MSC from 0 to MaxLun-1 as represented in BOT
       
   422     __HOSTPRINT1(_L("RegisterLogicalUnitL LUN=%d "), iLunId);
   422 	iUsbHostMsDevice->AddLunL(iLunId);
   423 	iUsbHostMsDevice->AddLunL(iLunId);
   423 	iUsbHostMsDevice->InitLunL(iLunId);
   424 	iUsbHostMsDevice->InitLunL(iLunId);
   424 	}
   425 	}
   425 
   426