mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-12 13:59:46 -04:00
Fix/remove assertions
This commit is contained in:
parent
913891af71
commit
0edd99303a
@ -244,7 +244,7 @@ void op_open(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info* fi) {
|
||||
err = EACCES;
|
||||
} else {
|
||||
#ifdef USE_META_V2
|
||||
fi->fh = de->inode();
|
||||
fi->fh = FUSE_ROOT_ID + de->inode();
|
||||
#else
|
||||
fi->fh = reinterpret_cast<intptr_t>(de);
|
||||
#endif
|
||||
|
@ -19,7 +19,6 @@
|
||||
* along with dwarfs. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
#include <mutex>
|
||||
|
||||
@ -138,8 +137,6 @@ inode_reader_<LoggerPolicy>::read(size_t size, off_t offset, chunk_range chunks,
|
||||
num_read += br.size();
|
||||
}
|
||||
|
||||
assert(num_read == size);
|
||||
|
||||
return num_read;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user