break;
}
- int r = cfuse->client->add_fscrypt_key((const char *)arg->raw, arg->raw_size, nullptr, ctx->uid);
+ ceph_fscrypt_key_identifier kid;
+ int r = cfuse->client->add_fscrypt_key((const char *)arg->raw, arg->raw_size, &kid, ctx->uid);
if (r < 0) {
generic_dout(0) << __FILE__ << ":" << __LINE__ << ": failed to create a new key: r=" << r << dendl;
fuse_reply_err(req, -r);
break;
}
- fuse_reply_ioctl(req, 0, nullptr, 0);
+ memcpy(&arg->key_spec.u.identifier, &kid.raw, 16);
+ fuse_reply_ioctl(req, 0, arg, sizeof(*arg));
break;
}
break;