Feature #1613: Do not monitor system DS

This commit is contained in:
Carlos Martín committed 2013-07-12 16:51:17 +02:00
1 parent 91288d8bf6
commit 8df7cb816f
2 files changed
+9

No files matched your search

+3
View File
@@ -508,6 +508,9 @@ int Datastore::replace_template(const string& tmpl_str, string& error_str)
if ( type == SYSTEM_DS )
{
new_ds_mad = "-";
// System DS are not monitored, clear current info
update_monitor(0, 0, 0);
}
else
{
+6
View File
@@ -203,6 +203,12 @@ void ImageManager::monitor_datastore(int ds_id)
return;
}
if ( ds->get_type() == Datastore::SYSTEM_DS )
{
ds->unlock();
return;
}
drv_msg = ImageManager::format_message("", ds->to_xml(ds_data));
oss << "Monitoring datastore " << ds->get_name() << " (" << ds_id << ")";