Re: [PATCH] LXC: Change incorrect error report in lxcContainerPivotRoot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 22.11.2013 08:11, Gao feng wrote:
> The newroot is not mounted as tmpfs, we bind root->src to it.
> 
> Signed-off-by: Gao feng <gaofeng@xxxxxxxxxxxxxx>
> ---
>  src/lxc/lxc_container.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c
> index fbce8e8..86705a7 100644
> --- a/src/lxc/lxc_container.c
> +++ b/src/lxc/lxc_container.c
> @@ -706,8 +706,8 @@ static int lxcContainerPivotRoot(virDomainFSDefPtr root)
>      /* ... and mount our root onto it */
>      if (mount(root->src, newroot, NULL, MS_BIND|MS_REC, NULL) < 0) {
>          virReportSystemError(errno,
> -                             _("Failed to bind new root %s into tmpfs"),
> -                             root->src);
> +                             _("Failed to bind %s to new root %s"),
> +                             root->src, newroot);
>          goto err;
>      }
>  
> 

ACKed and pushed.

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]