Displaying 2 results from an estimated 2 matches for "errno2".
Did you mean:
  errno
  
2012 Oct 04
5
Bug#689646: xen-utils-4.1: fails to create HVM domU
...r,
Creating a new HVM domU fails with the following error:
map shared IO page returned error 22
I've narrowed it down to qemu-dm which fails to start:
# /usr/lib/xen-4.1/bin/qemu-dm
[...]
qemu_map_cache_init nr_buckets = 10000 size 4194304
errno0 = 2
domid = -1
shared page at pfn 0
errno1 = 3
errno2 = 22
map shared IO page returned error 22
I added some errno debug then rebuilt and reinstalled the package using apt-src, here is the diff:
diff --git a/qemu/hw/xen_machine_fv.c b/qemu/hw/xen_machine_fv.c
index a353ee6..fe7a914 100644
--- a/qemu/hw/xen_machine_fv.c
+++ b/qemu/hw/xen_machine_fv.c...
2007 Aug 23
0
[git patch] klibc dash 0.5.4 update
...source file descriptor is closed, EMPTY if there are no unused
- * file descriptors left.
+ * Copy a file descriptor to be >= to.  Invokes sh_error on error.
  */
 
 int
@@ -383,13 +381,8 @@ copyfd(int from, int to)
 	int newfd;
 
 	newfd = fcntl(from, F_DUPFD, to);
-	if (newfd < 0) {
-		int errno2 = errno;
-		if (errno2 == EMFILE)
-			return EMPTY;
-		else
-			sh_error("%d: %s", from, strerror(errno2));
-	}
+	if (newfd < 0)
+		sh_error("%d: %s", from, strerror(errno));
 	return newfd;
 }
 
commit 2b4c87b04c00d0f9733d14ac1fabdc93e57109d1
Author: Herbert Xu <herbert...