Deleted Added
full compact
twe_freebsd.c (83366) twe_freebsd.c (86313)
1/*-
2 * Copyright (c) 2000 Michael Smith
3 * Copyright (c) 2000 BSDi
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*-
2 * Copyright (c) 2000 Michael Smith
3 * Copyright (c) 2000 BSDi
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/dev/twe/twe_freebsd.c 83366 2001-09-12 08:38:13Z julian $
27 * $FreeBSD: head/sys/dev/twe/twe_freebsd.c 86313 2001-11-13 01:08:54Z ps $
28 */
29
30/*
31 * FreeBSD-specific code.
32 */
33
34#include <sys/param.h>
35#include <sys/cons.h>

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

714 va = pmap_kenter_temporary(trunc_page(0), i);
715 }
716
717 if ((error = twe_dump_blocks(twe_sc, twed_sc->twed_drive->td_unit, blkno, va,
718 (PAGE_SIZE * dumppages) / TWE_BLOCK_SIZE)) != 0)
719 return(error);
720
721
28 */
29
30/*
31 * FreeBSD-specific code.
32 */
33
34#include <sys/param.h>
35#include <sys/cons.h>

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

714 va = pmap_kenter_temporary(trunc_page(0), i);
715 }
716
717 if ((error = twe_dump_blocks(twe_sc, twed_sc->twed_drive->td_unit, blkno, va,
718 (PAGE_SIZE * dumppages) / TWE_BLOCK_SIZE)) != 0)
719 return(error);
720
721
722 if (dumpstatus(addr, (long)(count * DEV_BSIZE)) < 0)
722 if (dumpstatus(addr, (off_t)count * DEV_BSIZE) < 0)
723 return(EINTR);
724
725 blkno += blkcnt * dumppages;
726 count -= blkcnt * dumppages;
727 addr += PAGE_SIZE * dumppages;
728 }
729 return(0);
730}

--- 313 unchanged lines hidden ---
723 return(EINTR);
724
725 blkno += blkcnt * dumppages;
726 count -= blkcnt * dumppages;
727 addr += PAGE_SIZE * dumppages;
728 }
729 return(0);
730}

--- 313 unchanged lines hidden ---