cd9660_node.h (31271) | cd9660_node.h (33052) |
---|---|
1/*- 2 * Copyright (c) 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.h 8.6 (Berkeley) 5/14/95 | 1/*- 2 * Copyright (c) 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.h 8.6 (Berkeley) 5/14/95 |
39 * $Id: cd9660_node.h,v 1.15 1997/10/17 12:36:10 phk Exp $ | 39 * $Id: cd9660_node.h,v 1.16 1997/11/18 14:40:34 phk Exp $ |
40 */ 41 42/* 43 * Theoretically, directories can be more than 2Gb in length, 44 * however, in practice this seems unlikely. So, we define 45 * the type doff_t as a long to keep down the cost of doing 46 * lookup on a 32-bit machine. If you are porting to a 64-bit 47 * architecture, you should make doff_t the same as off_t. --- 39 unchanged lines hidden (view full) --- 87#define i_back i_chain[1] 88 89/* flags */ 90#define IN_ACCESS 0x0020 /* inode access time to be updated */ 91 92#define VTOI(vp) ((struct iso_node *)(vp)->v_data) 93#define ITOV(ip) ((ip)->i_vnode) 94 | 40 */ 41 42/* 43 * Theoretically, directories can be more than 2Gb in length, 44 * however, in practice this seems unlikely. So, we define 45 * the type doff_t as a long to keep down the cost of doing 46 * lookup on a 32-bit machine. If you are porting to a 64-bit 47 * architecture, you should make doff_t the same as off_t. --- 39 unchanged lines hidden (view full) --- 87#define i_back i_chain[1] 88 89/* flags */ 90#define IN_ACCESS 0x0020 /* inode access time to be updated */ 91 92#define VTOI(vp) ((struct iso_node *)(vp)->v_data) 93#define ITOV(ip) ((ip)->i_vnode) 94 |
95#ifdef KERNEL 96 |
|
95#ifdef MALLOC_DECLARE 96MALLOC_DECLARE(M_ISOFSMNT); 97MALLOC_DECLARE(M_ISOFSNODE); 98#endif 99 | 97#ifdef MALLOC_DECLARE 98MALLOC_DECLARE(M_ISOFSMNT); 99MALLOC_DECLARE(M_ISOFSNODE); 100#endif 101 |
102struct buf; 103struct vop_bmap_args; 104struct vop_cachedlookup_args; 105struct vop_inactive_args; 106struct vop_reclaim_args; 107 |
|
100/* 101 * Prototypes for ISOFS vnode operations 102 */ 103int cd9660_lookup __P((struct vop_cachedlookup_args *)); 104int cd9660_inactive __P((struct vop_inactive_args *)); 105int cd9660_reclaim __P((struct vop_reclaim_args *)); 106int cd9660_bmap __P((struct vop_bmap_args *)); 107int cd9660_blkatoff __P((struct vnode *vp, off_t offset, char **res, struct buf **bpp)); 108 109void cd9660_defattr __P((struct iso_directory_record *, 110 struct iso_node *, struct buf *, enum ISO_FTYPE)); 111void cd9660_deftstamp __P((struct iso_directory_record *, 112 struct iso_node *, struct buf *, enum ISO_FTYPE)); 113struct vnode *cd9660_ihashget __P((dev_t, ino_t)); 114void cd9660_ihashins __P((struct iso_node *)); 115int cd9660_tstamp_conv7 __P((u_char *, struct timespec *, enum ISO_FTYPE)); 116int cd9660_tstamp_conv17 __P((u_char *, struct timespec *)); | 108/* 109 * Prototypes for ISOFS vnode operations 110 */ 111int cd9660_lookup __P((struct vop_cachedlookup_args *)); 112int cd9660_inactive __P((struct vop_inactive_args *)); 113int cd9660_reclaim __P((struct vop_reclaim_args *)); 114int cd9660_bmap __P((struct vop_bmap_args *)); 115int cd9660_blkatoff __P((struct vnode *vp, off_t offset, char **res, struct buf **bpp)); 116 117void cd9660_defattr __P((struct iso_directory_record *, 118 struct iso_node *, struct buf *, enum ISO_FTYPE)); 119void cd9660_deftstamp __P((struct iso_directory_record *, 120 struct iso_node *, struct buf *, enum ISO_FTYPE)); 121struct vnode *cd9660_ihashget __P((dev_t, ino_t)); 122void cd9660_ihashins __P((struct iso_node *)); 123int cd9660_tstamp_conv7 __P((u_char *, struct timespec *, enum ISO_FTYPE)); 124int cd9660_tstamp_conv17 __P((u_char *, struct timespec *)); |
125 126#endif /* KERNEL */ |
|