const std::unordered_map<std::string, std::string>* get_properties() const;
const char* get_property(const std::string& key) const;
- void set_property(const std::string&, const std::string& value);
+ Disk* set_property(const std::string&, const std::string& value);
Disk* set_host(Host* host);
Host* get_host() const;
return pimpl_->get_property(key);
}
-void Disk::set_property(const std::string& key, const std::string& value)
+Disk* Disk::set_property(const std::string& key, const std::string& value)
{
kernel::actor::simcall([this, &key, &value] { this->pimpl_->set_property(key, value); });
+ return this;
}
IoPtr Disk::io_init(sg_size_t size, Io::OpType type) const