Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2007 10:47:13 GMT
From:      Ulf Lilleengen <lulf@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 124344 for review
Message-ID:  <200707301047.l6UAlD8L092463@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=124344

Change 124344 by lulf@lulf_carrot on 2007/07/30 10:47:07

	- Sleep after sending create requests in userland, since the event might
	  not yet be processed. If there are noteable issues with this, which is
	  a quite unlikely to happen, I have a patch to support suspending
	  of the userland process until the events are executed, but it's only
	  required in this special case.

Affected files ...

.. //depot/projects/soc2007/lulf/gvinum_fixup/sbin/gvinum/gvinum.c#15 edit

Differences ...

==== //depot/projects/soc2007/lulf/gvinum_fixup/sbin/gvinum/gvinum.c#15 (text+ko) ====

@@ -430,6 +430,8 @@
 	gctl_ro_param(req, "plexes", sizeof(int), &plexes);
 	gctl_ro_param(req, "subdisks", sizeof(int), &subdisks);
 	errstr = gctl_issue(req);
+	sleep(2); /* Wait for events to be executed. XXX: not very nice... but 
+	             we won't have to modify event system for just his issue. */
 	if (errstr != NULL)
 		warnx("error creating drive: %s", errstr);
 	gctl_free(req);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707301047.l6UAlD8L092463>