Skip to contentSkip to conversation

minios: add blkfront testing

PATCH New Samuel Thibault 1 participant 1 message Jan 21, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 minios: add blkfront testing

add blkfront testing

---
This depends on my two previous patches (align support for _xmalloc() and block path fix).

extras/mini-os/Makefile +3 -0
diff -r b13514ef6ec6 extras/mini-os/Makefile
@@ -57,6 +57,9 @@ endif
 # Include common mini-os makerules.
 include minios.mk
 
+# Set tester flags
+# CFLAGS += -DBLKTEST_WRITE
+
 # Define some default flags for linking.
 LDLIBS := 
 LDARCHLIB := -L$(TARGET_ARCH_DIR) -l$(ARCH_LIB_NAME)
extras/mini-os/include/blkfront.h +2 -0
diff -r b13514ef6ec6 extras/mini-os/include/blkfront.h
@@ -15,7 +15,9 @@ struct blkfront_aiocb
     void (*aio_cb)(struct blkfront_aiocb *aiocb, int ret);
 };
 struct blkfront_dev *init_blkfront(char *nodename, uint64_t *sectors, unsigned *sector_size, int *mode);
+#ifdef HAVE_LIBC
 int blkfront_open(struct blkfront_dev *dev);
+#endif
 void blkfront_aio(struct blkfront_aiocb *aiocbp, int write);
 void blkfront_aio_read(struct blkfront_aiocb *aiocbp);
 void blkfront_aio_write(struct blkfront_aiocb *aiocbp);
extras/mini-os/kernel.c +176 -0

195 lines not on this page · raw message