mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 23:16:27 -05:00
Make allow-idmap optional (default: false) (#1541)
This is just to correct default behavior for now. More investigation is necessary to properly support idmapping.
This commit is contained in:
parent
3cb35a3a65
commit
0f24bb29ac
6 changed files with 27 additions and 4 deletions
|
|
@ -1930,6 +1930,15 @@ fuse_send_enomem(struct fuse_ll *f_,
|
|||
fuse_send_errno(f_,ch_,ENOMEM,unique_id_);
|
||||
}
|
||||
|
||||
static
|
||||
void
|
||||
fuse_send_einval(struct fuse_ll *f_,
|
||||
struct fuse_chan *ch_,
|
||||
const uint64_t unique_id_)
|
||||
{
|
||||
fuse_send_errno(f_,ch_,EINVAL,unique_id_);
|
||||
}
|
||||
|
||||
static
|
||||
int
|
||||
fuse_ll_buf_receive_read(struct fuse_session *se_,
|
||||
|
|
@ -1961,6 +1970,9 @@ fuse_ll_buf_process_read(struct fuse_session *se_,
|
|||
|
||||
in = (struct fuse_in_header*)msgbuf_->mem;
|
||||
|
||||
if((in->uid == FUSE_INVALID_UIDGID) || (in->gid == FUSE_INVALID_UIDGID))
|
||||
return fuse_send_einval(se_->f,se_->ch,in->unique);
|
||||
|
||||
req = fuse_ll_alloc_req(se_->f);
|
||||
if(req == NULL)
|
||||
return fuse_send_enomem(se_->f,se_->ch,in->unique);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue