unsafe_target_item(this) {
memset(&head, 0, sizeof(head));
head.op = op;
+ head.owner_uid = -1;
+ head.owner_gid = -1;
}
~MetaRequest();
return v == 0;
}
+ void set_inode_owner_uid_gid(unsigned u, unsigned g) {
+ /* it makes sense to set owner_{u,g}id only for OPs which create inodes */
+ ceph_assert(IS_CEPH_MDS_OP_NEWINODE(head.op));
+ head.owner_uid = u;
+ head.owner_gid = g;
+ }
+
// normal fields
void set_tid(ceph_tid_t t) { tid = t; }
void set_oldest_client_tid(ceph_tid_t t) { head.oldest_client_tid = t; }