]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Improve some debugging log messages in LXC mount setup
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 18 Sep 2012 11:27:07 +0000 (12:27 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 21 Sep 2012 09:43:25 +0000 (10:43 +0100)
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/lxc/lxc_container.c

index 8e5e46617cd20c4be09427577893e2031ec1a5ae..a749d244235633c977240ca0561ed54c048f273f 100644 (file)
@@ -556,8 +556,9 @@ static int lxcContainerMountBasicFS(bool pivotRoot,
                   srcpath, mnts[i].dst, mnts[i].type, mnts[i].mflags, mnts[i].opts);
         if (mount(srcpath, mnts[i].dst, mnts[i].type, mnts[i].mflags, mnts[i].opts) < 0) {
             virReportSystemError(errno,
-                                 _("Failed to mount %s on %s type %s"),
-                                 mnts[i].src, mnts[i].dst, NULLSTR(mnts[i].type));
+                                 _("Failed to mount %s on %s type %s flags=%x opts=%s"),
+                                 srcpath, mnts[i].dst, NULLSTR(mnts[i].type),
+                                 mnts[i].mflags, NULLSTR(mnts[i].opts));
             goto cleanup;
         }
     }
@@ -579,8 +580,8 @@ static int lxcContainerMountBasicFS(bool pivotRoot,
                   MS_NOSUID, opts);
         if (mount("devfs", "/dev", "tmpfs", MS_NOSUID, opts) < 0) {
             virReportSystemError(errno,
-                                 _("Failed to mount %s on %s type %s"),
-                                 "devfs", "/dev", "tmpfs");
+                                 _("Failed to mount %s on %s type %s (%s)"),
+                                 "devfs", "/dev", "tmpfs", opts);
             goto cleanup;
         }
     }