Return information about the current state of the Disk Manager.
MCO_RET mco_disk_info( /*IN*/ mco_db_h db, /*OUT*/ mco_disk_info_t* info );
db | The database handle that was established by mco_db_connect() |
info |
The address of a mco_disk_info_t variable to receive the Disk Manager information |
This function returns the information about the current state of the Disk Manager in the
mco_disk_info_t
structure
MCO_S_OK | Disk info successfully returned in info |
Application snippet: const char * dbname = "SimpleDb"; int main(int argc, char* argv[]) { mco_db_h db; MCO_RET rc; mco_device_t dev[4]; mco_db_params_t db_params; mco_disk_info_t info; ... rc = mco_db_open_dev( dbname, simple_get_dictionary(), dev, 4, &db_params ); if ( MCO_S_OK != rc ) { rc = mco_db_connect( dbname, &db ); ... info = mco_disk_info( db, &info); printf("\n\n\t Disk usage:\n"); printf("\t Data file %d Kb\n", info.data_file_size / 1000); printf("\t Log file %d Kb\n", info.log_file_size / 1000); printf("\t Used data %d Kb\n", info.used_database_size / 1000); ... } }