Deleted Added
full compact
msdosfs_vnops.c (55594) msdosfs_vnops.c (58934)
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vnops.c 55594 2000-01-08 10:45:54Z bp $ */
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vnops.c 58934 2000-04-02 15:24:56Z 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 *

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

1833 * then get it using pcbmap(). If pcbmap() returns the block
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;
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 *

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

1833 * then get it using pcbmap(). If pcbmap() returns the block
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_flags |= B_ERROR;
1841 bp->b_ioflags |= BIO_ERROR;
1842 biodone(bp);
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);

--- 128 unchanged lines hidden ---
1842 biodone(bp);
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);

--- 128 unchanged lines hidden ---