20 */ |
20 */ |
21 /* |
21 /* |
22 * High Sierra filesystem internal routine definitions. |
22 * High Sierra filesystem internal routine definitions. |
23 */ |
23 */ |
24 /* |
24 /* |
25 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
25 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. |
26 * Use is subject to license terms. |
26 * Use is subject to license terms. |
27 */ |
27 */ |
28 |
28 |
29 #ifndef _SYS_FS_HSFS_IMPL_H |
29 #ifndef _SYS_FS_HSFS_IMPL_H |
30 #define _SYS_FS_HSFS_IMPL_H |
30 #define _SYS_FS_HSFS_IMPL_H |
51 struct vnode **vpp); |
51 struct vnode **vpp); |
52 /* lookup name in directory */ |
52 /* lookup name in directory */ |
53 extern int hs_dirlook(struct vnode *dvp, char *name, int namlen, |
53 extern int hs_dirlook(struct vnode *dvp, char *name, int namlen, |
54 struct vnode **vpp, struct cred *cred); |
54 struct vnode **vpp, struct cred *cred); |
55 /* find an hsnode in the hash list */ |
55 /* find an hsnode in the hash list */ |
56 extern struct vnode *hs_findhash(ino64_t nodeid, struct vfs *vfsp); |
56 extern struct vnode *hs_findhash(ino64_t nodeid, uint_t lbn, uint_t off, |
|
57 struct vfs *vfsp); |
57 /* destroy an hsnode */ |
58 /* destroy an hsnode */ |
58 extern void hs_freenode(vnode_t *vp, struct hsfs *fsp, int nopage); |
59 extern void hs_freenode(vnode_t *vp, struct hsfs *fsp, int nopage); |
59 /* parse a directory entry */ |
60 /* parse a directory entry */ |
60 extern int hs_parsedir(struct hsfs *fsp, uchar_t *dirp, |
61 extern int hs_parsedir(struct hsfs *fsp, uchar_t *dirp, |
61 struct hs_direntry *hdp, char *dnp, int *dnlen, int last_offset); |
62 struct hs_direntry *hdp, char *dnp, int *dnlen, int last_offset); |