Index: /trunk/src/VBox/Runtime/include/internal/fileaio.h
===================================================================
--- /trunk/src/VBox/Runtime/include/internal/fileaio.h	(revision 29450)
+++ /trunk/src/VBox/Runtime/include/internal/fileaio.h	(revision 29451)
@@ -98,4 +98,12 @@
     } while (0)
 
+/** Checks if a request in the given states and sserts if not. */
+#define RTFIELAIOREQ_ASSERT_STATE(pReq, State) \
+    do { \
+        AssertPtr((pReq)); \
+        Assert((pReq)->u32Magic == RTFILEAIOREQ_MAGIC); \
+        Assert((pReq)->enmState == RTFILEAIOREQSTATE_##State); \
+    } while (0)
+
 /** Sets the request into a specific state. */
 #define RTFILEAIOREQ_SET_STATE(pReq, State) \
