Commit da85c7cc authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 9022f069
...@@ -256,7 +256,7 @@ tuple<int64_t, error> parseInt(const string& s) { ...@@ -256,7 +256,7 @@ tuple<int64_t, error> parseInt(const string& s) {
} }
// parseUint decodes string s as unsigned decimal integer. // parseUint decodes string s as unsigned decimal integer.
tuple<uint64_t, error> parse_uint(const string& s) { tuple<uint64_t, error> parseUint(const string& s) {
uint64_t v; uint64_t v;
int n = sscanf(s.c_str(), "%" SCNu64, &v); // XXX verify int n = sscanf(s.c_str(), "%" SCNu64, &v); // XXX verify
if (!(n == 1 && std::to_string(v) == s)) // XXX verify if (!(n == 1 && std::to_string(v) == s)) // XXX verify
......
...@@ -370,11 +370,14 @@ void Conn::_pin1(PinReq *req) { ...@@ -370,11 +370,14 @@ void Conn::_pin1(PinReq *req) {
// XXX reenable // XXX reenable
//trace("\tremmapblk %d @%s" % (req->blk, (h(req.at) if req.at else "head"))) //trace("\tremmapblk %d @%s" % (req->blk, (h(req.at) if req.at else "head")))
// check if virtmem did not dirtied page corresponding to this block already // check if virtmem did not dirtied page corresponding to this block already
// XXX reenable (link to libbigfile dso)
#if 0
virt_lock(); virt_lock();
TODO (mmap->file->blksize != mmap->fileh->ramh->ram->pagesize); TODO (mmap->file->blksize != mmap->fileh->ramh->ram->pagesize);
if (!__fileh_page_isdirty(mmap->fileh, req->blk)) if (!__fileh_page_isdirty(mmap->fileh, req->blk))
mmap->_remmapblk(req->blk, req->at); // XXX err mmap->_remmapblk(req->blk, req->at); // XXX err
virt_unlock(); virt_unlock();
#endif
//trace("\t-> remmaped"); XXX //trace("\t-> remmaped"); XXX
} }
......
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