mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-12 05:49:56 -04:00
Fix warning
This commit is contained in:
parent
9a5623466e
commit
85041dd452
@ -249,7 +249,7 @@ void op_read(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
|
||||
int err = ENOENT;
|
||||
|
||||
try {
|
||||
assert(fi->fh == ino);
|
||||
if (fi->fh == ino) {
|
||||
iovec_read_buf buf;
|
||||
ssize_t rv = s_fs->readv(ino, buf, size, off);
|
||||
|
||||
@ -263,6 +263,9 @@ void op_read(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
|
||||
}
|
||||
|
||||
err = -rv;
|
||||
} else {
|
||||
err = EIO;
|
||||
}
|
||||
} catch (const dwarfs::error& e) {
|
||||
std::cerr << "ERROR: " << e.what() << std::endl;
|
||||
err = e.get_errno();
|
||||
|
Loading…
x
Reference in New Issue
Block a user