cd9660_node.c (33134) | cd9660_node.c (33181) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1989, 1994, 1995 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, 1995 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.23 1998/02/04 22:32:29 eivind Exp $ | 39 * $Id: cd9660_node.c,v 1.24 1998/02/06 12:13:20 eivind 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/buf.h> 47#include <sys/vnode.h> 48#include <sys/malloc.h> 49#include <sys/stat.h> 50 51#include <isofs/cd9660/iso.h> 52#include <isofs/cd9660/cd9660_node.h> 53#include <isofs/cd9660/cd9660_mount.h> 54 55/* 56 * Structures associated with iso_node caching. 57 */ | 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/buf.h> 47#include <sys/vnode.h> 48#include <sys/malloc.h> 49#include <sys/stat.h> 50 51#include <isofs/cd9660/iso.h> 52#include <isofs/cd9660/cd9660_node.h> 53#include <isofs/cd9660/cd9660_mount.h> 54 55/* 56 * Structures associated with iso_node caching. 57 */ |
58struct iso_node **isohashtbl; 59u_long isohash; | 58static struct iso_node **isohashtbl; 59static u_long isohash; |
60#define INOHASH(device, inum) (((device) + ((inum)>>12)) & isohash) | 60#define INOHASH(device, inum) (((device) + ((inum)>>12)) & isohash) |
61struct simplelock cd9660_ihash_slock; | 61static struct simplelock cd9660_ihash_slock; |
62 63static void cd9660_ihashrem __P((struct iso_node *)); 64static unsigned cd9660_chars2ui __P((unsigned char *begin, int len)); 65 66/* 67 * Initialize hash links for inodes and dnodes. 68 */ 69int --- 357 unchanged lines hidden --- | 62 63static void cd9660_ihashrem __P((struct iso_node *)); 64static unsigned cd9660_chars2ui __P((unsigned char *begin, int len)); 65 66/* 67 * Initialize hash links for inodes and dnodes. 68 */ 69int --- 357 unchanged lines hidden --- |