1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

feature #1112: Get TM_MAD from Datastores

This commit is contained in:
Ruben S. Montero 2012-02-25 01:25:59 +01:00
parent 7279fc1b96
commit 96e1055543

View File

@ -212,7 +212,7 @@ public:
* Returns the base for the system datastore (for tmp VM images). When
* ONE_LOCATION is defined this path points to $ONE_LOCATION/var/system_ds,
* otherwise it is /var/lib/one/system_ds.
* @return the log location.
* @return the system datastore path location.
*/
string get_system_ds_path()
{
@ -228,6 +228,23 @@ public:
return system_ds_path;
};
/**
* Returns the Transfer Manager for the system datastore
* @return the tm_mad name.
*/
string get_system_ds_tm_mad()
{
Datastore * ds;
string tm_mad;
ds = dspool->get(DatastorePool::SYSTEM_DS_ID, true);
tm_mad = ds->get_tm_mad();
ds->unlock();
return tm_mad;
};
/**
* Returns the path of the log file for a VM, depending where OpenNebula is
* installed,