Fix/remove assertions

This commit is contained in:
Marcus Holland-Moritz 2020-11-27 23:59:44 +01:00
parent 913891af71
commit 0edd99303a
2 changed files with 1 additions and 4 deletions

View File

@ -244,7 +244,7 @@ void op_open(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info* fi) {
err = EACCES; err = EACCES;
} else { } else {
#ifdef USE_META_V2 #ifdef USE_META_V2
fi->fh = de->inode(); fi->fh = FUSE_ROOT_ID + de->inode();
#else #else
fi->fh = reinterpret_cast<intptr_t>(de); fi->fh = reinterpret_cast<intptr_t>(de);
#endif #endif

View File

@ -19,7 +19,6 @@
* along with dwarfs. If not, see <https://www.gnu.org/licenses/>. * along with dwarfs. If not, see <https://www.gnu.org/licenses/>.
*/ */
#include <cassert>
#include <cstring> #include <cstring>
#include <mutex> #include <mutex>
@ -138,8 +137,6 @@ inode_reader_<LoggerPolicy>::read(size_t size, off_t offset, chunk_range chunks,
num_read += br.size(); num_read += br.size();
} }
assert(num_read == size);
return num_read; return num_read;
} }