A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change name()/cname() to getName()/getCname() in surf::FileImpl.
[simgrid.git]
/
src
/
surf
/
FileImpl.cpp
diff --git
a/src/surf/FileImpl.cpp
b/src/surf/FileImpl.cpp
index
ff0a830
..
d190065
100644
(file)
--- a/
src/surf/FileImpl.cpp
+++ b/
src/surf/FileImpl.cpp
@@
-29,7
+29,7
@@
FileImpl::FileImpl(sg_storage_t st, std::string path, std::string mount) : path_
Action* FileImpl::read(sg_size_t size)
{
Action* FileImpl::read(sg_size_t size)
{
- XBT_DEBUG("READ %s on disk '%s'",
cname(), location_->c
name());
+ XBT_DEBUG("READ %s on disk '%s'",
getCname(), location_->getC
name());
if (current_position_ + size > size_) {
if (current_position_ > size_) {
size = 0;
if (current_position_ + size > size_) {
if (current_position_ > size_) {
size = 0;
@@
-45,7
+45,7
@@
Action* FileImpl::read(sg_size_t size)
Action* FileImpl::write(sg_size_t size)
{
Action* FileImpl::write(sg_size_t size)
{
- XBT_DEBUG("WRITE %s on disk '%s'. size '%llu/%llu'",
cname(), location_->c
name(), size, size_);
+ XBT_DEBUG("WRITE %s on disk '%s'. size '%llu/%llu'",
getCname(), location_->getC
name(), size, size_);
StorageAction* action = location_->write(size);
action->file_ = this;
StorageAction* action = location_->write(size);
action->file_ = this;
@@
-79,10
+79,10
@@
int FileImpl::unlink()
{
/* Check if the file is on this storage */
if (location_->getContent()->find(path_) == location_->getContent()->end()) {
{
/* 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_->c
name());
+ XBT_WARN("File %s is not on disk %s. Impossible to unlink",
getCname(), location_->getC
name());
return -1;
} else {
return -1;
} else {
- XBT_DEBUG("UNLINK %s on disk '%s'",
cname(), location_->c
name());
+ XBT_DEBUG("UNLINK %s on disk '%s'",
getCname(), location_->getC
name());
location_->usedSize_ -= size_;
// Remove the file from storage
location_->usedSize_ -= size_;
// Remove the file from storage