Поделиться через


RAM File System Registry Settings (Windows Embedded CE 6.0)

1/6/2010

The RAM file system retrieves driver specific settings from the registry. The RAM File system is autoloaded; for more information, see Autoload Settings.

You can place settings for the RAM file system HKEY_LOCAL_MACHINE\System\StorageManager\Autoload\ObjectStore.

Enabling Flush-on-Close

If you use the RAM (Object Store) File System, enable flush-on-close registry flushing to ensure that registry changes are flushed every time RegCloseKey is called.

The following registry key shows how to enable flush-on-close:

[HKEY_LOCAL_MACHINE\init\BootVars]
    "RegistryFlags"=dword:1

Registry Values

The following table shows registry values that control settings for the RAM File System.

Registry value/Type Description

BootPhase: REG_DWORD

Set to 0 to load file system before initializing locale.

For more information, see Boot Phases.

DisableFileCompression: REG_DWORD

Set to 1 to disable file compression.

Dll: REG_SZ

Set to "filesys.dll". Specifies the name of the file system DLL.

LoadFlags: REG_DWORD

Set to 1 to load file system synchronously

MountAsBootable: REG_DWORD

Set to 1 to indicate that the file system contains the system registry. For more information, see Mount Settings.

MountAsRoot: REG_DWORD

Mounts the RAM File System as root. Set to 1 only if PRJ_ENABLE_FSMOUNTASROOT sysgen value is NOT set.Set to 0 to mount the RAM File System as a secondary directory.For more information, see Mount Settings.

MountPermanent: REG_DWORD

Set to 1 to indicate this file system can never be dismounted. For more information, see Mount Settings.

Paging: REG_DWORD

Set to 1 to enable paging.

To preserve backward compatibility, mount the Object Store RAM file system as bootable only if PRJ_ENABLE_FSREGHIVE is NOT set. While mounting as bootable implies that registry hive files are part of the associated file system, hive files are part of the Object Store RAM File System by default.

Similarly, and also to preserve backward compatibility, mount the Object Store RAM file system as the root file system only if PRJ_ENABLE_FSMOUNTASROOT is NOT set. By default, the Object Store RAM file system is the root file system.

If PRJ_ENABLE_FSREGHIVE and PRJ_ENABLE_FSMOUNTASROOT are not set, and you want to mount the object store as bootable and mount the object store as the root file system, set the following

HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\ObjectStoreFS
    "MountAsBootable"=dword:1
    "MountAsRoot"=dword:1

If desired, you can disable file compression for better performance. By default, compression is enabled.

Setting PRJ_DISABLE_RAMFS_COMPRESSION in the build environment prior to running makeimg will add the necessary key to disable it.

To disable file compression, set the following value:

[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\ObjectStoreFS]
    "DisableFileCompression"=dword:1

See Also

Concepts

RAM (Object Store) File System
Autoload Settings

Other Resources

Settings for Specific File Systems