Rostorageinfo (hd2000 only) – BrightSign HD2000 Object Reference Manual User Manual

Page 55

Advertising
background image

roStorageInfo (HD2000 only)

Objects of this type are used to report storage device usage information.

Object creation:
 CreateObject("roStorageInfo", rotSTRING path)

o

Create a roStorageInfo object containing the storage device information for the specified path.

The path need not be to the root of the storage device.


ifStorageInfo interface:

Note that on some filesystems that have a portion of space reserved for the super-user the

expression GetUsedInMegabytes() + GetFreeInMegabytes() == GetSizeInMegabytes() may not be true

.

 rotINT32 GetBytesPerBlock(rotVOID)

o

Returns the size of a native block on the filesystem used by the storage device specified.

 rotINT32 GetSizeInMegabytes(rotVOID)

o

Returns the total size of the storage device in Mibibytes.

 rotINT32 GetUsedInMegabytes(rotVOID)

o

Returns the amount of space currently used on the storage device in Mibibytes. Note that this

includes the size of the pool because this class does not know anything about pools.

 rotINT32 GetFreeInMegabytes(rotVOID)

o

Returns the available space on the storage device in Mibibytes.


Example:

si=CreateObject(“roStorageInfo”, “CF:/”)
Print si.GetFreeInMegabytes(); “MiB free”

55

Advertising
This manual is related to the following products: