mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-13 14:27:30 -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;
|
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
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user