diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1994-05-25 09:21:21 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1994-05-25 09:21:21 +0000 |
commit | 2469c867a164210ce96143517059f21db7f1fd17 (patch) | |
tree | 9179427ac860211c445df663fd2b86267366bfba /sys/isofs/cd9660/cd9660_lookup.c | |
parent | cb0aba89af15a48e2655e898a503946ac4cb42ae (diff) | |
download | FreeBSD-src-2469c867a164210ce96143517059f21db7f1fd17.zip FreeBSD-src-2469c867a164210ce96143517059f21db7f1fd17.tar.gz |
The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.
Reviewed by: Rodney W. Grimes
Submitted by: John Dyson and David Greenman
Diffstat (limited to 'sys/isofs/cd9660/cd9660_lookup.c')
-rw-r--r-- | sys/isofs/cd9660/cd9660_lookup.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/isofs/cd9660/cd9660_lookup.c b/sys/isofs/cd9660/cd9660_lookup.c index 62d1d3f..36daffd 100644 --- a/sys/isofs/cd9660/cd9660_lookup.c +++ b/sys/isofs/cd9660/cd9660_lookup.c @@ -89,6 +89,7 @@ struct nchstats iso_nchstats; * * NOTE: (LOOKUP | LOCKPARENT) currently returns the parent inode unlocked. */ +int cd9660_lookup(ap) struct vop_lookup_args /* { struct vnode *a_dvp; @@ -100,9 +101,9 @@ cd9660_lookup(ap) register struct iso_node *dp; /* inode for directory being searched */ register struct iso_mnt *imp; /* file system that directory is in */ struct buf *bp; /* a buffer of directory entries */ - struct iso_directory_record *ep;/* the current directory entry */ + struct iso_directory_record *ep = 0;/* the current directory entry */ int entryoffsetinblock; /* offset of ep in bp's buffer */ - int saveoffset; /* offset of last directory entry in dir */ + int saveoffset = 0; /* offset of last directory entry in dir */ int numdirpasses; /* strategy for directory search */ doff_t endsearch; /* offset to end directory search */ struct iso_node *pdp; /* saved dp during symlink work */ @@ -443,6 +444,7 @@ found: * is non-zero, fill it in with a pointer to the * remaining space in the directory. */ +int iso_blkatoff(ip, offset, bpp) struct iso_node *ip; doff_t offset; |