diff -r e7d2d738d3c2 -r 2f92ad2dc5db userlibandfileserver/fileserver/shostmassstorage/msproxy/hostusbmsproxy.cpp --- a/userlibandfileserver/fileserver/shostmassstorage/msproxy/hostusbmsproxy.cpp Mon Mar 15 12:45:50 2010 +0200 +++ b/userlibandfileserver/fileserver/shostmassstorage/msproxy/hostusbmsproxy.cpp Wed Mar 31 23:38:45 2010 +0300 @@ -1,24 +1,18 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ +// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". // -// hostusbmsproxy.cpp +// Initial Contributors: +// Nokia Corporation - initial contribution. // -// This file system extension provides a way to access a drive on the MS system in "raw format". -// It can be used to test large files / drives +// Contributors: +// +// Description: +// This file system extension provides a way to access a drive on the MS system +// in "raw format". It can be used to test large files / drives // /** @file @@ -486,6 +480,7 @@ return KErrNone; } + /** Write to the proxy drive and pass flags to driver @@ -521,6 +516,7 @@ return iUsbHostMsLun.Write(iMsDataMemMap.GetDataPos(aPos), aSrc.Length(), aSrc); } + /** Get the proxy drive's capabilities information. @@ -566,19 +562,22 @@ capsInfo.iNumberOfBlocks, capsInfo.iBlockLength, caps().iSize, caps().iMediaAtt); } - else + else if (KErrNotReady) { __HOSTPRINT(_L("<<< HOST Caps Media Not Present")); - c.iType = EMediaNotPresent; - if(r != KErrNotReady) - r = KErrUnknown; + c.iType = EMediaNotPresent; + r = KErrNone; + } + else + { + __HOSTPRINT(_L("<<< HOST Caps Unknown Error")); + r = KErrUnknown; } anInfo = caps.Left(Min(caps.Length(),anInfo.MaxLength())); return r; } - /** Format the proxy drive. The drive is assumed to be a single partition. The partition size is equivalent to the size of the media.