Commit 3a5a16f3 authored by Ramon Nou's avatar Ramon Nou
Browse files

bugfix of RANGE_FD

parent 917b52f9
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -210,7 +210,7 @@ static ResultEntry* results = nullptr;
#define GKFS_OPERATION(name, ...)                                              \
    if(CTX->interception_enabled() && is_gkfs_fd(fd)) {                        \
        auto res = gkfs::syscall::gkfs_##name(__VA_ARGS__);                    \
        DEBUG_INFO("[GKFS] (fd={}) -> res {}", fd, res);                       \
        DEBUG_INFO("[GKFS] {}(fd={}) -> res {}", #name, fd, res);              \
        return res;                                                            \
    }

+1 −0
Original line number Diff line number Diff line
@@ -164,6 +164,7 @@ OpenFileMap::safe_generate_fd_idx_() {
    } else {
        // Return a virtual fd from 10000, but avoid doing all the FD movements
        if(CTX->range_fd()) {
            fd = generate_fd_idx();
            if(fd_validation_needed) {
                while(exist(fd)) {
                    fd = generate_fd_idx();