mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-02-21 10:27:57 +08:00
fix outarg size calculation to accomidate newer fuse_kernel.h on older platforms
This commit is contained in:
parent
05f33c84e4
commit
df0d0552b2
@ -1889,7 +1889,15 @@ static void do_init(fuse_req_t req, fuse_ino_t nodeid, const void *inarg)
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user