Loading sdcard/fuse.cpp +17 −0 Original line number Diff line number Diff line Loading @@ -1011,7 +1011,13 @@ static int handle_open(struct fuse* fuse, struct fuse_handler* handler, } out.fh = ptr_to_id(h); out.open_flags = 0; #ifdef FUSE_SHORTCIRCUIT out.lower_fd = h->fd; #else out.padding = 0; #endif fuse_reply(fuse, hdr->unique, &out, sizeof(out)); return NO_STATUS; } Loading Loading @@ -1175,7 +1181,13 @@ static int handle_opendir(struct fuse* fuse, struct fuse_handler* handler, } out.fh = ptr_to_id(h); out.open_flags = 0; #ifdef FUSE_SHORTCIRCUIT out.lower_fd = -1; #else out.padding = 0; #endif fuse_reply(fuse, hdr->unique, &out, sizeof(out)); return NO_STATUS; } Loading Loading @@ -1258,6 +1270,11 @@ static int handle_init(struct fuse* fuse, struct fuse_handler* handler, out.major = FUSE_KERNEL_VERSION; out.max_readahead = req->max_readahead; out.flags = FUSE_ATOMIC_O_TRUNC | FUSE_BIG_WRITES; #ifdef FUSE_SHORTCIRCUIT out.flags |= FUSE_SHORTCIRCUIT; #endif out.max_background = 32; out.congestion_threshold = 32; out.max_write = MAX_WRITE; Loading Loading
sdcard/fuse.cpp +17 −0 Original line number Diff line number Diff line Loading @@ -1011,7 +1011,13 @@ static int handle_open(struct fuse* fuse, struct fuse_handler* handler, } out.fh = ptr_to_id(h); out.open_flags = 0; #ifdef FUSE_SHORTCIRCUIT out.lower_fd = h->fd; #else out.padding = 0; #endif fuse_reply(fuse, hdr->unique, &out, sizeof(out)); return NO_STATUS; } Loading Loading @@ -1175,7 +1181,13 @@ static int handle_opendir(struct fuse* fuse, struct fuse_handler* handler, } out.fh = ptr_to_id(h); out.open_flags = 0; #ifdef FUSE_SHORTCIRCUIT out.lower_fd = -1; #else out.padding = 0; #endif fuse_reply(fuse, hdr->unique, &out, sizeof(out)); return NO_STATUS; } Loading Loading @@ -1258,6 +1270,11 @@ static int handle_init(struct fuse* fuse, struct fuse_handler* handler, out.major = FUSE_KERNEL_VERSION; out.max_readahead = req->max_readahead; out.flags = FUSE_ATOMIC_O_TRUNC | FUSE_BIG_WRITES; #ifdef FUSE_SHORTCIRCUIT out.flags |= FUSE_SHORTCIRCUIT; #endif out.max_background = 32; out.congestion_threshold = 32; out.max_write = MAX_WRITE; Loading