Browse Source
Merge pull request #603 from trapexit/backcompat
fix outarg size to accomidate newer fuse_kernel.h on older platforms
pull/609/head
trapexit
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
1 deletions
-
libfuse/lib/fuse_lowlevel.c
|
@ -1889,7 +1889,15 @@ static void do_init(fuse_req_t req, fuse_ino_t nodeid, const void *inarg) |
|
|
outarg.congestion_threshold); |
|
|
outarg.congestion_threshold); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
send_reply_ok(req, &outarg, arg->minor < 5 ? 8 : sizeof(outarg)); |
|
|
|
|
|
|
|
|
size_t outargsize; |
|
|
|
|
|
if(arg->minor < 5) |
|
|
|
|
|
outargsize = FUSE_COMPAT_INIT_OUT_SIZE; |
|
|
|
|
|
else if(arg->minor < 23) |
|
|
|
|
|
outargsize = FUSE_COMPAT_22_INIT_OUT_SIZE; |
|
|
|
|
|
else |
|
|
|
|
|
outargsize = sizeof(outarg); |
|
|
|
|
|
|
|
|
|
|
|
send_reply_ok(req, &outarg, outargsize); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
static void do_destroy(fuse_req_t req, fuse_ino_t nodeid, const void *inarg) |
|
|
static void do_destroy(fuse_req_t req, fuse_ino_t nodeid, const void *inarg) |
|
|