Merge "Log error message if setting project quota ID fails" am: 7505efbd5d
am: 44df16de69
am: 1768a47b25
am: 630fa5785e
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/1694189 Change-Id: I895ba92166b9760564ab651c22b8f5782e567a0f
This commit is contained in:
commit
25e8d1805c
1 changed files with 6 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue