Copy b_cmd into new buf
authorSimon Schubert <corecode@dragonflybsd.org>
Thu, 6 Jul 2006 23:36:29 +0000 (23:36 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Thu, 6 Jul 2006 23:36:29 +0000 (23:36 +0000)
sys/dev/raid/vinum/vinumrequest.c

index 7d7178d..47a74bd 100644 (file)
@@ -39,7 +39,7 @@
  *
  * $Id: vinumrequest.c,v 1.30 2001/01/09 04:20:55 grog Exp grog $
  * $FreeBSD: src/sys/dev/vinum/vinumrequest.c,v 1.44.2.5 2002/08/28 04:30:56 grog Exp $
- * $DragonFly: src/sys/dev/raid/vinum/vinumrequest.c,v 1.13 2006/07/05 22:46:42 dillon Exp $
+ * $DragonFly: src/sys/dev/raid/vinum/vinumrequest.c,v 1.14 2006/07/06 23:36:29 corecode Exp $
  */
 
 #include "vinumhdr.h"
@@ -947,6 +947,7 @@ sdio(struct bio *bio)
     sddev = DRIVE[sd->driveno].dev;                /* device */
     bzero(sbp, sizeof(struct sdbuf));                      /* start with nothing */
     sbp->b.b_flags = bp->b_flags | B_PAGING;
+    sbp->b.b_cmd = bp->b_cmd;
     sbp->b.b_bcount = bp->b_bcount;                        /* number of bytes to transfer */
     sbp->b.b_resid = bp->b_resid;                          /* and amount waiting */
     sbp->b.b_data = bp->b_data;                                    /* data buffer */