Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Nov 2008 23:15:18 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185069 - head/sys/fs/cd9660
Message-ID:  <200811182315.mAINFIoi095703@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Tue Nov 18 23:15:17 2008
New Revision: 185069
URL: http://svn.freebsd.org/changeset/base/185069

Log:
  Remove copy/paste code from UFS to handle sparse blocks.  While Rock
  Ridge does support sparse files, the cd9660 code does not currently
  support them.

Modified:
  head/sys/fs/cd9660/cd9660_vnops.c

Modified: head/sys/fs/cd9660/cd9660_vnops.c
==============================================================================
--- head/sys/fs/cd9660/cd9660_vnops.c	Tue Nov 18 23:13:40 2008	(r185068)
+++ head/sys/fs/cd9660/cd9660_vnops.c	Tue Nov 18 23:15:17 2008	(r185069)
@@ -743,12 +743,6 @@ cd9660_strategy(ap)
 	if (bp->b_blkno == bp->b_lblkno) {
 		bp->b_blkno = (ip->iso_start + bp->b_lblkno) <<
 		    (ip->i_mnt->im_bshift - DEV_BSHIFT);
-		if ((long)bp->b_blkno == -1)	/* XXX: cut&paste junk ? */
-			clrbuf(bp);
-	}
-	if ((long)bp->b_blkno == -1) {	/* XXX: cut&paste junk ? */
-		bufdone(bp);
-		return (0);
 	}
 	bp->b_iooffset = dbtob(bp->b_blkno);
 	bo = ip->i_mnt->im_bo;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811182315.mAINFIoi095703>