summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2007-05-18 17:36:11 +0200
committerMichael Brown2007-05-18 17:36:11 +0200
commit7d2535779caed7389ae93ea74fab26acc851b637 (patch)
treebfaa533a5230b13bf93a1c038191d511c44487bc
parentAdd debugging (diff)
downloadipxe-7d2535779caed7389ae93ea74fab26acc851b637.tar.gz
ipxe-7d2535779caed7389ae93ea74fab26acc851b637.tar.xz
ipxe-7d2535779caed7389ae93ea74fab26acc851b637.zip
Must request data before anything actually happens...
-rw-r--r--src/core/posix_io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/posix_io.c b/src/core/posix_io.c
index 2974a4c85..a8876b732 100644
--- a/src/core/posix_io.c
+++ b/src/core/posix_io.c
@@ -224,6 +224,10 @@ int open ( const char *uri_string ) {
if ( ( rc = xfer_open_uri ( &file->xfer, uri_string ) ) != 0 )
goto err;
+ /* Request data */
+ if ( ( rc = xfer_request_all ( &file->xfer ) ) != 0 )
+ goto err;
+
/* Wait for open to succeed or fail */
while ( list_empty ( &file->data ) ) {
step();