Signed-off-by: Yan, Zheng <zyan@redhat.com>
return -EDQUOT;
}
// make the change locally?
+ if ((uid >= 0 && user_id >= 0 && uid != user_id) ||
+ (gid >= 0 && group_id >= 0 && gid != group_id)) {
+ if (!mask)
+ mask |= CEPH_SETATTR_CTIME;
+ goto force_request;
+ }
if (!mask) {
// caller just needs us to bump the ctime
if (!mask)
return 0;
+force_request:
MetaRequest *req = new MetaRequest(CEPH_MDS_OP_SETATTR);
filepath path;