geom_ccd.c (ecbb00a2629050fd720dc376a33c45f4ad767cea) geom_ccd.c (fd5d1124e25f9996b0bfbf17156d850d106b27b4)
1/* $Id: ccd.c,v 1.32 1998/03/09 20:39:26 julian Exp $ */
1/* $Id: ccd.c,v 1.33 1998/06/07 17:09:41 dfr Exp $ */
2
3/* $NetBSD: ccd.c,v 1.22 1995/12/08 19:13:26 thorpej Exp $ */
4
5/*
6 * Copyright (c) 1995 Jason R. Thorpe.
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without

--- 777 unchanged lines hidden (view full) ---

787 * Allocate component buffers and fire off the requests
788 */
789 addr = bp->b_data;
790 for (bcount = bp->b_bcount; bcount > 0; bcount -= rcount) {
791 ccdbuffer(cbp, cs, bp, bn, addr, bcount);
792 rcount = cbp[0]->cb_buf.b_bcount;
793 if ((cbp[0]->cb_buf.b_flags & B_READ) == 0)
794 cbp[0]->cb_buf.b_vp->v_numoutput++;
2
3/* $NetBSD: ccd.c,v 1.22 1995/12/08 19:13:26 thorpej Exp $ */
4
5/*
6 * Copyright (c) 1995 Jason R. Thorpe.
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without

--- 777 unchanged lines hidden (view full) ---

787 * Allocate component buffers and fire off the requests
788 */
789 addr = bp->b_data;
790 for (bcount = bp->b_bcount; bcount > 0; bcount -= rcount) {
791 ccdbuffer(cbp, cs, bp, bn, addr, bcount);
792 rcount = cbp[0]->cb_buf.b_bcount;
793 if ((cbp[0]->cb_buf.b_flags & B_READ) == 0)
794 cbp[0]->cb_buf.b_vp->v_numoutput++;
795 VOP_STRATEGY(&cbp[0]->cb_buf);
795 VOP_STRATEGY(cbp[0]->cb_buf.b_vp, &cbp[0]->cb_buf);
796 if (cs->sc_cflags & CCDF_MIRROR &&
797 (cbp[0]->cb_buf.b_flags & B_READ) == 0) {
798 /* mirror, start another write */
799 cbp[1]->cb_buf.b_vp->v_numoutput++;
796 if (cs->sc_cflags & CCDF_MIRROR &&
797 (cbp[0]->cb_buf.b_flags & B_READ) == 0) {
798 /* mirror, start another write */
799 cbp[1]->cb_buf.b_vp->v_numoutput++;
800 VOP_STRATEGY(&cbp[1]->cb_buf);
800 VOP_STRATEGY(cbp[1]->cb_buf.b_vp, &cbp[1]->cb_buf);
801 }
802 bn += btodb(rcount);
803 addr += rcount;
804 }
805}
806
807/*
808 * Build a component buffer header.

--- 734 unchanged lines hidden ---
801 }
802 bn += btodb(rcount);
803 addr += rcount;
804 }
805}
806
807/*
808 * Build a component buffer header.

--- 734 unchanged lines hidden ---