std::basic_string<char,std::char_traits<char>,Allocator<char>> stray_prior_path; //stores path before unlink
- std::vector<uint8_t> fscrypt_auth;
+ std::vector<uint8_t,Allocator<uint8_t>> fscrypt_auth;
std::vector<uint8_t> fscrypt_file;
bufferlist fscrypt_last_block;
m->truncate_seq = i->truncate_seq;
m->truncate_size = i->truncate_size;
m->fscrypt_file = i->fscrypt_file;
- m->fscrypt_auth = i->fscrypt_auth;
+ m->fscrypt_auth.assign(i->fscrypt_auth.begin(), i->fscrypt_auth.end());
m->mtime = i->mtime;
m->atime = i->atime;
m->ctime = i->ctime;
pi->btime = m->get_btime();
}
if (m->fscrypt_auth.size())
- pi->fscrypt_auth = m->fscrypt_auth;
+ pi->fscrypt_auth.assign(m->fscrypt_auth.begin(), m->fscrypt_auth.end());
}
}
const cref_t<MClientRequest> &req = mdr->client_request;
dout(10) << "copying fscrypt_auth len " << req->fscrypt_auth.size() << dendl;
- _inode->fscrypt_auth = req->fscrypt_auth;
+ _inode->fscrypt_auth.assign(req->fscrypt_auth.begin(), req->fscrypt_auth.end());
_inode->fscrypt_file = req->fscrypt_file;
if (req->get_data().length()) {
}
if (mask & CEPH_SETATTR_FSCRYPT_AUTH)
- pi.inode->fscrypt_auth = req->fscrypt_auth;
+ pi.inode->fscrypt_auth.assign(req->fscrypt_auth.begin(), req->fscrypt_auth.end());
if (mask & CEPH_SETATTR_FSCRYPT_FILE)
pi.inode->fscrypt_file = req->fscrypt_file;