Commit 017b350e authored by Julius Athenstaedt's avatar Julius Athenstaedt
Browse files

getdents without fuse

parent add983f3
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -636,10 +636,10 @@ hook_getdents(unsigned int fd, struct linux_dirent* dirp, unsigned int count) {

    /*
     * dirs are handled in fuse
    */
    if(CTX->file_map()->exist(fd)) {
        return with_errno(gkfs::syscall::gkfs_getdents(fd, dirp, count));
    }
    */
    return syscall_no_intercept_wrapper(SYS_getdents, fd, dirp, count);
}
#endif
@@ -653,10 +653,10 @@ hook_getdents64(unsigned int fd, struct linux_dirent64* dirp,

    /*
     * dirs are handled in fuse
    */
    if(CTX->file_map()->exist(fd)) {
        return with_errno(gkfs::syscall::gkfs_getdents64(fd, dirp, count));
    }
    */
    return syscall_no_intercept_wrapper(SYS_getdents64, fd, dirp, count);
}