mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 09:14:57 +00:00
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.
This commit is contained in:
parent
5c668a78d8
commit
1fafc1bc1c
@ -2113,8 +2113,13 @@ virFileOpenForked(const char *path, int openflags, mode_t mode,
|
||||
|
||||
/* File is successfully open. Set permissions if requested. */
|
||||
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;
|
||||
}
|
||||
|
||||
do {
|
||||
ret = sendfd(pair[1], fd);
|
||||
|
Loading…
Reference in New Issue
Block a user