Disk management (a set of disk oriented tools).
More...
#include <OSD_Disk.hxx>
|
| | OSD_Disk () |
| | Creates a disk object. This is used only when a class contains a Disk field. By default, its name is initialized to current working disk.
|
| | OSD_Disk (const OSD_Path &Name) |
| | Initializes the object Disk with the disk name associated to the OSD_Path.
|
| | OSD_Disk (const char *const PathName) |
| | Initializes the object Disk with <PathName>. <PathName> specifies any file within the mounted file system. Example : OSD_Disk myDisk ("/tmp") Initializes a disk object with the mounted file associated to /tmp.
|
| OSD_Path | Name () const |
| | Returns disk name of <me>.
|
| void | SetName (const OSD_Path &Name) |
| | Instantiates <me> with <Name>.
|
| int | DiskSize () |
| | Returns total disk capacity in 512 bytes blocks.
|
| int | DiskFree () |
| | Returns free available 512 bytes blocks on disk.
|
| bool | Failed () const |
| | Returns TRUE if an error occurs.
|
| void | Reset () |
| | Resets error counter to zero.
|
| void | Perror () |
| | Raises OSD_Error.
|
| int | Error () const |
| | Returns error number if 'Failed' is TRUE.
|
Disk management (a set of disk oriented tools).
◆ OSD_Disk() [1/3]
Creates a disk object. This is used only when a class contains a Disk field. By default, its name is initialized to current working disk.
◆ OSD_Disk() [2/3]
| OSD_Disk::OSD_Disk |
( |
const OSD_Path & | Name | ) |
|
Initializes the object Disk with the disk name associated to the OSD_Path.
◆ OSD_Disk() [3/3]
| OSD_Disk::OSD_Disk |
( |
const char *const | PathName | ) |
|
Initializes the object Disk with <PathName>. <PathName> specifies any file within the mounted file system. Example : OSD_Disk myDisk ("/tmp") Initializes a disk object with the mounted file associated to /tmp.
◆ DiskFree()
| int OSD_Disk::DiskFree |
( |
| ) |
|
Returns free available 512 bytes blocks on disk.
◆ DiskSize()
| int OSD_Disk::DiskSize |
( |
| ) |
|
Returns total disk capacity in 512 bytes blocks.
◆ Error()
| int OSD_Disk::Error |
( |
| ) |
const |
|
inline |
Returns error number if 'Failed' is TRUE.
◆ Failed()
| bool OSD_Disk::Failed |
( |
| ) |
const |
|
inline |
Returns TRUE if an error occurs.
◆ Name()
Returns disk name of <me>.
◆ Perror()
| void OSD_Disk::Perror |
( |
| ) |
|
|
inline |
◆ Reset()
Resets error counter to zero.
◆ SetName()
Instantiates <me> with <Name>.
The documentation for this class was generated from the following file: