Skip to main content

Configuration entries to support virtual storage devices

2 replies [Last post]
csweeney
Offline
Joined: 2009-04-11
Points: 0

(From Craig Pratt - Thanks!)

We used to do this kind of testing all the time (which is necessary to test recording retention and such - for expiration and purging via RecordingRetentionManager).

For the emulator, the mpeenv.ini entries you want to look at for designating the storage volumes look like this:

# Device#=Name, Display Name, Type, State, Size, Media FS Size
STORAGE.DEVICE.0=I1,Internal One,I,IC,171798691840,170724950016
STORAGE.DEVICE.1=I2,Internal Two,I,IC,171798691840,170724950016
STORAGE.DEVICE.2=D1,Detachable One,D,IC,85899345920,84825604096

It isn't strictly necessary to change these for most "full disk testing" as an application can create and initialize MediaStorageVolumes of arbitrary sizes within the storage devices via the associated StorageProxy.

I don't believe CTP is exercising any of this retention code, but it certainly worked for the 0.9.5 releases.

splitting information

Message was edited by: csweeney

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
csweeney
Offline
Joined: 2009-04-11
Points: 0

----------------------------------------

In mpeenv.ini:

#### Storage Manager Volumes ####

# Root directory for storing virtual volumes
STORAGE.ROOT=/syscwd/storage

# Maximum of 10 devices. Name must be less than or equal to 20 characters and must not include
# special characters. Display name must be less than or equal to 40 characters and must not
# include commas. The supported types are Internal (I) and Detachable (D). The
# starting state may be one of 'C', 'I', 'U', or 'IC'. If 'C', the current
# state will be kept, if 'I' the device will be formatted, initialized to
# default values and set to the READY state, if 'U' the device will be wiped
# clean and left in the UNITIALIZED state, and finally if 'IC' then 'I' will be
# performed if the device isn't already initialied and 'C' if it is. Sizes are
# in bytes. The size of the media filesys is the initial size only.
# Applications may change the media filesys size during Sim use in which case
# the media filesys size here will be ignored until another initialize to
# default settings is done.

# Device#=Name, Display Name, Type, State, Size, Media FS Size
STORAGE.DEVICE.0=I1,Internal One,I,IC,171798691840,170724950016
STORAGE.DEVICE.1=I2,Internal Two,I,IC,171798691840,170724950016
STORAGE.DEVICE.2=D1,Detachable One,D,IC,85899345920,84825604096

# Set to TRUE if you wish to erase all previous storage devices and volumes
# at startup
STORAGE.RESET.ON.START=false

dhooley
Offline
Joined: 2008-04-23
Points: 0

Ok, we can close this topic.