Update contrib.
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\lffs\load9660.cpp
20 _LIT(KFileSystemDllName, "iso9660.fsy");
21 _LIT(KFileSystemName, "iso9660");
28 User::CommandLine(cmd);
31 TUint c = (TUint)cmdlex.Get();
37 driveLetter.SetLength(1);
38 driveLetter[0] = (TText)c;
39 RDebug::Print(_L("Drive %S"), &driveLetter);
41 TInt driveNumber = TInt(c-'A') + TInt(EDriveA);
43 driveLetter.Append(_L(":\\"));
45 RDebug::Print(_L("Add file system: %S"), &KFileSystemDllName);
46 r=TheFs.AddFileSystem(KFileSystemDllName);
47 if (r!=KErrNone && r!=KErrAlreadyExists)
49 RDebug::Print(_L("Failed: %d"), r);
54 r = TheFs.FileSystemName(name, driveNumber);
55 if (name.Length() != 0)
57 RDebug::Print(_L("Dismounting %S on drive %S\r\n"), &name, &driveLetter);
58 r=TheFs.DismountFileSystem(name, driveNumber);
59 RDebug::Print(_L("Dismount ret=%d"), r);
62 RDebug::Print(_L("Mount ISO9660 on drive %S\r\n"), &driveLetter);
63 r = TheFs.MountFileSystem(KFileSystemName, driveNumber);
64 RDebug::Print(_L("Mount r=%d"),r);
68 GLDEF_C TInt E32Main()
71 CTrapCleanup* cleanup;
72 cleanup=CTrapCleanup::New();
74 TInt r=TheFs.Connect();
75 RDebug::Print(_L("Connect ret %d"),r);
79 RDebug::Print(_L("Mount ISO9660 ret %d"),r);