commit | 7505efbd5d929f048145227132966f36ebb503c3 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Tue May 04 16:06:14 2021 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue May 04 16:06:14 2021 +0000 |
tree | 26be45369c8f210564d3db275a637fc884cd2505 | |
parent | d2bb3675491a293741650cc122c5221b5cc8034c [diff] | |
parent | 39aa9584b1ce52d3dd5fa890ca11c21eaa18daf9 [diff] |
Merge "Log error message if setting project quota ID fails"
diff --git a/Utils.cpp b/Utils.cpp index 9ff7920..9b31f72 100644 --- a/Utils.cpp +++ b/Utils.cpp
@@ -240,7 +240,12 @@ } 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,