提交 1fafc1bc 编写于 作者: J John Ferlan

virfile: Add error for root squash change mode failure

This will only be seen when debugging, but in order to help determine
whether a virFileOpenForceOwnerMode failed during an NFS root-squash
volume/file creation, add an error message from the child.
上级 5c668a78
...@@ -2113,8 +2113,13 @@ virFileOpenForked(const char *path, int openflags, mode_t mode, ...@@ -2113,8 +2113,13 @@ virFileOpenForked(const char *path, int openflags, mode_t mode,
/* File is successfully open. Set permissions if requested. */ /* File is successfully open. Set permissions if requested. */
ret = virFileOpenForceOwnerMode(path, fd, mode, uid, gid, flags); ret = virFileOpenForceOwnerMode(path, fd, mode, uid, gid, flags);
if (ret < 0) if (ret < 0) {
ret = -errno;
virReportSystemError(errno,
_("child process failed to force owner mode file '%s'"),
path);
goto childerror; goto childerror;
}
do { do {
ret = sendfd(pair[1], fd); ret = sendfd(pair[1], fd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册