diff --git a/include/Nebula.h b/include/Nebula.h index 064f4dfe02..fa6b03248c 100644 --- a/include/Nebula.h +++ b/include/Nebula.h @@ -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,