Action* FileImpl::read(sg_size_t size)
{
- XBT_DEBUG("READ %s on disk '%s'", cname(), location_->getCname());
+ XBT_DEBUG("READ %s on disk '%s'", getCname(), location_->getCname());
if (current_position_ + size > size_) {
if (current_position_ > size_) {
size = 0;
Action* FileImpl::write(sg_size_t size)
{
- XBT_DEBUG("WRITE %s on disk '%s'. size '%llu/%llu'", cname(), location_->getCname(), size, size_);
+ XBT_DEBUG("WRITE %s on disk '%s'. size '%llu/%llu'", getCname(), location_->getCname(), size, size_);
StorageAction* action = location_->write(size);
action->file_ = this;
{
/* Check if the file is on this storage */
if (location_->getContent()->find(path_) == location_->getContent()->end()) {
- XBT_WARN("File %s is not on disk %s. Impossible to unlink", cname(), location_->getCname());
+ XBT_WARN("File %s is not on disk %s. Impossible to unlink", getCname(), location_->getCname());
return -1;
} else {
- XBT_DEBUG("UNLINK %s on disk '%s'", cname(), location_->getCname());
+ XBT_DEBUG("UNLINK %s on disk '%s'", getCname(), location_->getCname());
location_->usedSize_ -= size_;
// Remove the file from storage