Commit 72d67b9e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 5eed9093
......@@ -1314,14 +1314,13 @@ error _Mapping::remmap_blk(int64_t blk) {
// _path returns path for object on wcfs.
// - str: wcfs root + obj;
string WCFS::_path(const string &obj) {
WCFS *wc = this;
return wc->mountpoint + "/" + obj;
WCFS& wc = *this;
return wc.mountpoint + "/" + obj;
}
tuple<os::File, error> WCFS::_open(const string &path, int flags) {
WCFS *wc = this;
string path_ = wc->_path(path);
WCFS& wc = *this;
string path_ = wc._path(path);
return os::open(path_, flags);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment