Signed-off-by: Christopher Hoffman <choffman@redhat.com>
// r is expected to hold value of effective bytes read.
// in the case of fscrypt, this will be the logical size. So if all bytes read
// is equal to read_len, then display logical size.
- if (read_len == read) {
+ if ((int)read_len == read) {
r = len;
} else {
r = read;
struct ceph_fscrypt_key_identifier;
struct fscrypt_policy_v2;
+struct fscrypt_remove_key_arg;
/* setattr mask bits (up to an int in size) */
#ifndef CEPH_SETATTR_MODE
return r;
}
- for (int i = 0; i < sizeof(fscrypt_key); ++i) {
+ for (int i = 0; i < (int)sizeof(fscrypt_key); ++i) {
fscrypt_key[i] = (char)rand();
}