次の方法で共有


Storage Device Settings (Compact 2013)

3/26/2014

Storage device settings apply to any named storage system that depends on a block device driver. Like other registry settings, storage device settings made at the highest level of Storage Manager apply to all lower subkeys, unless explicitly defined differently at a particular key.

There are two kinds of block drivers

  • Block drivers loaded by Device Manager
    These include drivers for media-based storage such as an SD card or hard drive. For more information, see Block Driver Registry Settings.
  • Block drivers loaded by Storage Manager
    These include drivers that specify a particular file system, such as FATFS or UDFS. These settings are passive; that is, the settings provide instructions that Storage Manager uses only if a particular file system partition is mounted.

For example, the following registry settings provide properties for loading FATFS, if a FATFS partition is mounted:

[HKEY_LOCAL_MACHINE\System\StorageManager\FATFS]
    "FriendlyName"="FAT FileSystem"
    "Dll"="exfat.dll"
    "Flags"=dword:00000024
    "Paging"=dword:1
    "CacheSize"=dword:0

Block Drivers loaded by Storage Manager

Each block driver that is managed by Storage Manager has a profile. Although profiles are typically unique, multiple drivers can share a profile. Settings that apply to all profiles are specified at the HKEY_LOCAL_MACHINE\System\StorageManager\Profiles registry key.

The following table shows the flags that are valid only at the HKEY_LOCAL_MACHINE\System\StorageManager\Profiles registry key.

Note

These flags may not be used in subkeys of Profiles.

Flag

Description

ActivityEvent

Creates a named event for obtaining activity status, and resetting an activity timer.

AutoFormat

Formats a store automatically when the store is unformatted. Set to 1 to enable. Default setting is zero, disable.

Setting this value to zero causes a dialog box to appear automatically when a user inserts an unformatted SD or MMC card into a target device.

AutoMount

Mounts each detected partition automatically, if the FSD Manager is available. Default setting is 1, enable.

AutoPart

Partitions the store with largest creatable partition automatically. Default setting is zero, disable.

DefaultFileSystem

Indicates the default file system to load. This value is only used if the ID value for the partition is not present in the partition ID table for a profile.

Folder

Indicates the base name to use when a volume is mounted on this store. Default value is LOC_STORE_DEFAULT_FOLDER.

If the requested name is already in use, then a number is concatenated to the base name and increased each time.

Name

Indicates the friendly name of the store. This value is available in the szStoreName member of the STOREINFO (Storage Manager) structure.

PartitionDriver

Indicates the default partition driver to load. If this string is empty, load the built-in NULL partition driver. There is no partitioning.

PartitionDriverName

Specifies the name of the partition block driver. Default value is MSPART.

PartitionTable

Defines the partition table to be used.

In addition, the Profiles subkey contains the collection of individual named profiles defined for the target. Each individual profile represents a particular storage media, such as an SD card, a flash drive, or a hard drive.

Each individual profile contains the values and settings needed by that storage media. A device can have multiple individual profiles, and, depending on its design, each profile can support multiple file systems.

The registry key that contains settings for an individual profile is

HKEY_LOCAL_MACHINE\System\StorageManager\<MyProfile>\<MyProfileSubkey> 

See Also

Reference

File Systems Registry Settings Overview
Settings for Specific File Systems