Merge "Log error message if setting project quota ID fails"

This commit is contained in:
Eric Biggers 2021-05-04 16:06:14 +00:00 committed by Gerrit Code Review
commit 7505efbd5d

View file

@ -240,7 +240,12 @@ int SetQuotaProjectId(const std::string& path, long projectId) {
}
fsx.fsx_projid = projectId;
return ioctl(fd, FS_IOC_FSSETXATTR, &fsx);
ret = ioctl(fd, FS_IOC_FSSETXATTR, &fsx);
if (ret == -1) {
PLOG(ERROR) << "Failed to set project id on " << path;
return ret;
}
return 0;
}
int PrepareDirWithProjectId(const std::string& path, mode_t mode, uid_t uid, gid_t gid,