ext2_vfsops.c (31483) | ext2_vfsops.c (31485) |
---|---|
1/* 2 * modified for EXT2FS support in Lites 1.1 3 * 4 * Aug 1995, Godmar Back (gback@cs.utah.edu) 5 * University of Utah, Department of Computer Science 6 */ 7/* 8 * Copyright (c) 1989, 1991, 1993, 1994 --- 88 unchanged lines hidden (view full) --- 97 ext2_vptofh, 98 ext2_init, 99}; 100 101VFS_SET(ext2fs_vfsops, ext2fs, MOUNT_EXT2FS, 0); 102#define bsd_malloc malloc 103#define bsd_free free 104 | 1/* 2 * modified for EXT2FS support in Lites 1.1 3 * 4 * Aug 1995, Godmar Back (gback@cs.utah.edu) 5 * University of Utah, Department of Computer Science 6 */ 7/* 8 * Copyright (c) 1989, 1991, 1993, 1994 --- 88 unchanged lines hidden (view full) --- 97 ext2_vptofh, 98 ext2_init, 99}; 100 101VFS_SET(ext2fs_vfsops, ext2fs, MOUNT_EXT2FS, 0); 102#define bsd_malloc malloc 103#define bsd_free free 104 |
105extern u_long nextgennumber; | |
106static int ext2fs_inode_hash_lock; 107 108static int compute_sb_data __P((struct vnode * devvp, 109 struct ext2_super_block * es, 110 struct ext2_sb_info * fs)); 111 112#ifdef notyet 113static int ext2_mountroot __P((void)); --- 886 unchanged lines hidden (view full) --- 1000 */ 1001 ip->i_devvp = ump->um_devvp; 1002 VREF(ip->i_devvp); 1003 /* 1004 * Set up a generation number for this inode if it does not 1005 * already have one. This should only happen on old filesystems. 1006 */ 1007 if (ip->i_gen == 0) { | 105static int ext2fs_inode_hash_lock; 106 107static int compute_sb_data __P((struct vnode * devvp, 108 struct ext2_super_block * es, 109 struct ext2_sb_info * fs)); 110 111#ifdef notyet 112static int ext2_mountroot __P((void)); --- 886 unchanged lines hidden (view full) --- 999 */ 1000 ip->i_devvp = ump->um_devvp; 1001 VREF(ip->i_devvp); 1002 /* 1003 * Set up a generation number for this inode if it does not 1004 * already have one. This should only happen on old filesystems. 1005 */ 1006 if (ip->i_gen == 0) { |
1008 if (++nextgennumber < (u_long)time.tv_sec) 1009 nextgennumber = time.tv_sec; 1010 ip->i_gen = nextgennumber; | 1007 ip->i_gen = random() / 2 + 1; |
1011 if ((vp->v_mount->mnt_flag & MNT_RDONLY) == 0) 1012 ip->i_flag |= IN_MODIFIED; 1013 } 1014 *vpp = vp; 1015 return (0); 1016} 1017 1018/* --- 79 unchanged lines hidden --- | 1008 if ((vp->v_mount->mnt_flag & MNT_RDONLY) == 0) 1009 ip->i_flag |= IN_MODIFIED; 1010 } 1011 *vpp = vp; 1012 return (0); 1013} 1014 1015/* --- 79 unchanged lines hidden --- |