Commit b4740cee authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 2db5bb31
......@@ -335,7 +335,8 @@ pair<FileH, error> _Conn::open(zodb::Oid foid) {
f->blksize = st.st_blksize;
f->_headfsize = st.st_size;
if (!(f->_headfsize % f->blksize == 0))
return make_pair(nil, E(fmt::errorf("wcfs bug: head/file size %% blksize != 0")));
return make_pair(nil, E(fmt::errorf("wcfs bug: %s size (%d) %% blksize (%d) != 0",
v(f->_headf->name()), f->_headfsize, f->blksize)));
wconn._filehtab[foid] = f;
defer([&]() {
......
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