Deleted Added
full compact
msdosfs_vnops.c (58934) msdosfs_vnops.c (59249)
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vnops.c 58934 2000-04-02 15:24:56Z phk $ */
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vnops.c 59249 2000-04-15 05:54:02Z phk $ */
2/* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg Exp $ */
3
4/*-
5 * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
6 * Copyright (C) 1994, 1995, 1997 TooLs GmbH.
7 * All rights reserved.
8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below).
9 *

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

1834 * number as -1 then we've got a hole in the file. DOS filesystems
1835 * don't allow files with holes, so we shouldn't ever see this.
1836 */
1837 if (bp->b_blkno == bp->b_lblkno) {
1838 error = pcbmap(dep, bp->b_lblkno, &bp->b_blkno, 0, 0);
1839 if (error) {
1840 bp->b_error = error;
1841 bp->b_ioflags |= BIO_ERROR;
2/* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg Exp $ */
3
4/*-
5 * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
6 * Copyright (C) 1994, 1995, 1997 TooLs GmbH.
7 * All rights reserved.
8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below).
9 *

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

1834 * number as -1 then we've got a hole in the file. DOS filesystems
1835 * don't allow files with holes, so we shouldn't ever see this.
1836 */
1837 if (bp->b_blkno == bp->b_lblkno) {
1838 error = pcbmap(dep, bp->b_lblkno, &bp->b_blkno, 0, 0);
1839 if (error) {
1840 bp->b_error = error;
1841 bp->b_ioflags |= BIO_ERROR;
1842 biodone(bp);
1842 bufdone(bp);
1843 return (error);
1844 }
1845 if ((long)bp->b_blkno == -1)
1846 vfs_bio_clrbuf(bp);
1847 }
1848 if (bp->b_blkno == -1) {
1843 return (error);
1844 }
1845 if ((long)bp->b_blkno == -1)
1846 vfs_bio_clrbuf(bp);
1847 }
1848 if (bp->b_blkno == -1) {
1849 biodone(bp);
1849 bufdone(bp);
1850 return (0);
1851 }
1852 /*
1853 * Read/write the block from/to the disk that contains the desired
1854 * file block.
1855 */
1856 vp = dep->de_devvp;
1857 bp->b_dev = vp->v_rdev;

--- 120 unchanged lines hidden ---
1850 return (0);
1851 }
1852 /*
1853 * Read/write the block from/to the disk that contains the desired
1854 * file block.
1855 */
1856 vp = dep->de_devvp;
1857 bp->b_dev = vp->v_rdev;

--- 120 unchanged lines hidden ---