Deleted Added
full compact
cd9660_node.c (6603) cd9660_node.c (7090)
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley
6 * by Pace Willisson (pace@blitz.com). The Rock Ridge Extension
7 * Support code is derived from software contributed to Berkeley
8 * by Atsushi Murai (amurai@spec.co.jp).

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)cd9660_node.c 8.2 (Berkeley) 1/23/94
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley
6 * by Pace Willisson (pace@blitz.com). The Rock Ridge Extension
7 * Support code is derived from software contributed to Berkeley
8 * by Atsushi Murai (amurai@spec.co.jp).

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)cd9660_node.c 8.2 (Berkeley) 1/23/94
39 * $Id: cd9660_node.c,v 1.8 1995/01/16 17:03:24 joerg Exp $
39 * $Id: cd9660_node.c,v 1.9 1995/02/21 18:41:30 bde Exp $
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/mount.h>
45#include <sys/proc.h>
46#include <sys/file.h>
47#include <sys/buf.h>

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

75#endif
76
77union iso_dhead {
78 union iso_dhead *dh_head[2];
79 struct iso_dnode *dh_chain[2];
80} iso_dhead[DNOHSZ];
81#endif
82
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/mount.h>
45#include <sys/proc.h>
46#include <sys/file.h>
47#include <sys/buf.h>

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

75#endif
76
77union iso_dhead {
78 union iso_dhead *dh_head[2];
79 struct iso_dnode *dh_chain[2];
80} iso_dhead[DNOHSZ];
81#endif
82
83int prtactive; /* 1 => print out reclaim of active vnodes */
84
85/*
86 * Initialize hash links for inodes and dnodes.
87 */
88int
89cd9660_init()
90{
91 register int i;
92 register union iso_ihead *ih = iso_ihead;

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

284 brelse(bp);
285
286 /*
287 * Initialize the associated vnode
288 */
289 vp->v_type = IFTOVT(ip->inode.iso_mode);
290
291 if ( vp->v_type == VFIFO ) {
83/*
84 * Initialize hash links for inodes and dnodes.
85 */
86int
87cd9660_init()
88{
89 register int i;
90 register union iso_ihead *ih = iso_ihead;

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

282 brelse(bp);
283
284 /*
285 * Initialize the associated vnode
286 */
287 vp->v_type = IFTOVT(ip->inode.iso_mode);
288
289 if ( vp->v_type == VFIFO ) {
292 extern int (**cd9660_fifoop_p)();
293 vp->v_op = cd9660_fifoop_p;
294 } else if ( vp->v_type == VCHR || vp->v_type == VBLK ) {
290 vp->v_op = cd9660_fifoop_p;
291 } else if ( vp->v_type == VCHR || vp->v_type == VBLK ) {
295 extern int (**cd9660_specop_p)();
296
297 /*
298 * if device, look at device number table for translation
299 */
300#ifdef ISODEVMAP
301 if (dp = iso_dmap(dev,ino,0))
302 ip->inode.iso_rdev = dp->d_dev;
303#endif
304 vp->v_op = cd9660_specop_p;

--- 357 unchanged lines hidden ---
292 /*
293 * if device, look at device number table for translation
294 */
295#ifdef ISODEVMAP
296 if (dp = iso_dmap(dev,ino,0))
297 ip->inode.iso_rdev = dp->d_dev;
298#endif
299 vp->v_op = cd9660_specop_p;

--- 357 unchanged lines hidden ---