/darwin-on-arm/xnu/bsd/hfs/ |
H A D | hfs_catalog.h | 275 struct hfsmount; 279 extern int cat_create ( struct hfsmount *hfsmp, 284 extern int cat_delete ( struct hfsmount *hfsmp, 288 extern int cat_lookup ( struct hfsmount *hfsmp, 296 extern int cat_idlookup (struct hfsmount *hfsmp, 304 extern int cat_findname (struct hfsmount *hfsmp, 309 struct hfsmount *hfsmp, 313 extern int cat_rename ( struct hfsmount * hfsmp, 319 extern int cat_update ( struct hfsmount *hfsmp, 326 struct hfsmount *hfsm [all...] |
H A D | hfs_hotfiles.h | 107 struct hfsmount; 114 int hfs_hotfilesync (struct hfsmount *, vfs_context_t ctx); 116 int hfs_recording_init(struct hfsmount *); 117 int hfs_recording_suspend (struct hfsmount *);
|
H A D | hfs.h | 146 typedef struct hfsmount { struct 320 lck_mtx_t hfs_mutex; /* protects access to hfsmount data */ 543 #define VTOHFS(VP) ((struct hfsmount *)vfs_fsprivate(vnode_mount((VP)))) 544 #define VFSTOHFS(MP) ((struct hfsmount *)vfs_fsprivate((MP))) 546 #define FCBTOHFS(FCB) ((struct hfsmount *)vfs_fsprivate(vnode_mount((FCB)->ff_cp->c_vp))) 683 void hfs_generate_volume_notifications(struct hfsmount *hfsmp); 693 extern int hfs_release_storage (struct hfsmount *hfsmp, struct filefork *datafork, 696 extern int hfs_prepare_release_storage (struct hfsmount *hfsmp, struct vnode *vp); 704 extern int hfs_removeallattr(struct hfsmount *hfsmp, u_int32_t fileid); 706 extern int hfs_set_volxattr(struct hfsmount *hfsm [all...] |
H A D | hfs_chash.c | 101 static void hfs_chash_lock(struct hfsmount *hfsmp) 106 static void hfs_chash_lock_spin(struct hfsmount *hfsmp) 112 static void hfs_chash_lock_convert (struct hfsmount *hfsmp) 114 static void hfs_chash_lock_convert (__unused struct hfsmount *hfsmp) 120 static void hfs_chash_unlock(struct hfsmount *hfsmp) 127 hfs_chashinit_finish(struct hfsmount *hfsmp) 136 hfs_delete_chash(struct hfsmount *hfsmp) 150 hfs_chash_getvnode(struct hfsmount *hfsmp, ino_t inum, int wantrsrc, int skiplock, int allow_deleted) 229 hfs_chash_snoop(struct hfsmount *hfsmp, ino_t inum, int existence_only, int (*callout)(const struct cat_desc *, 297 hfs_chash_getcnode(struct hfsmount *hfsm [all...] |
H A D | hfs_cnode.h | 300 int hfs_uncompressed_size_of_compressed_file(struct hfsmount *hfsmp, struct vnode *vp, cnid_t fid, off_t *size, int skiplock); 316 extern int hfs_getnewvnode(struct hfsmount *hfsmp, struct vnode *dvp, struct componentname *cnp, 334 extern void hfs_touchtimes(struct hfsmount *, struct cnode *); 345 extern void hfs_chashinit_finish(struct hfsmount *hfsmp); 346 extern void hfs_delete_chash(struct hfsmount *hfsmp); 347 extern int hfs_chashremove(struct hfsmount *hfsmp, struct cnode *cp); 348 extern void hfs_chash_abort(struct hfsmount *hfsmp, struct cnode *cp); 349 extern void hfs_chash_rehash(struct hfsmount *hfsmp, struct cnode *cp1, struct cnode *cp2); 350 extern void hfs_chashwakeup(struct hfsmount *hfsmp, struct cnode *cp, int flags); 351 extern void hfs_chash_mark_in_transit(struct hfsmount *hfsm [all...] |
H A D | hfs_quota.h | 99 int hfs_isiqchg_allowed(struct dquot *, struct hfsmount *, int32_t, kauth_cred_t, int, uid_t); 100 int hfs_quotacheck (struct hfsmount *, int , uid_t, gid_t, kauth_cred_t);
|
H A D | hfs_btreeio.h | 53 int hfs_create_attr_btree(struct hfsmount *hfsmp, u_int32_t nodesize, u_int32_t nodecnt);
|
H A D | hfs_cprotect.c | 54 static int cp_getxattr(cnode_t *, struct hfsmount *hfsmp, struct cprotect **); 58 static int cp_make_keys (struct cprotect **, struct hfsmount *hfsmp, cnid_t, int); 59 static int cp_restore_keys(struct cprotect *, struct hfsmount *hfsmp); 64 static int cp_wrap(int, struct hfsmount *hfsmp, cnid_t, struct cprotect**); 132 struct hfsmount *hfsmp = VFSTOHFS(mp); 213 cp_entry_create_keys(struct cprotect **entry_ptr, struct cnode *dcp, struct hfsmount *hfsmp, 312 int cp_entry_gentempkeys(struct cprotect **entry_ptr, struct hfsmount *hfsmp) { 404 struct hfsmount *hfsmp = NULL; 480 struct hfsmount *hfsmp = NULL; 581 struct hfsmount *hfsm [all...] |
H A D | hfs_attrlist.h | 102 extern void hfs_packattrblk(struct attrblock *abp, struct hfsmount *hfsmp,
|
H A D | hfs_hotfiles.c | 96 struct hfsmount *hfsmp; 107 static int hfs_recording_start (struct hfsmount *); 108 static int hfs_recording_stop (struct hfsmount *); 129 static int hotfiles_collect (struct hfsmount *); 130 static int hotfiles_age (struct hfsmount *); 131 static int hotfiles_adopt (struct hfsmount *); 132 static int hotfiles_evict (struct hfsmount *, vfs_context_t); 133 static int hotfiles_refine (struct hfsmount *); 134 static int hotextents(struct hfsmount *, HFSPlusExtentDescriptor *); 141 static int hfc_btree_create (struct hfsmount *, unsigne [all...] |
H A D | hfs_catalog.c | 72 struct hfsmount * s_hfsmp; 80 struct hfsmount *hfsmp; 95 static int cat_lookupbykey(struct hfsmount *hfsmp, CatalogKey *keyp, int flags, u_int32_t hint, int wantrsrc, 98 int cat_lookupmangled(struct hfsmount *hfsmp, struct cat_desc *descp, int wantrsrc, 106 static int resolvelinkid(struct hfsmount *hfsmp, u_int32_t linkref, ino_t *ino); 108 static int getkey(struct hfsmount *hfsmp, cnid_t cnid, CatalogKey * key); 110 static int buildkey(struct hfsmount *hfsmp, struct cat_desc *descp, 122 static void getbsdattr(struct hfsmount *hfsmp, const struct HFSPlusCatalogFile *crp, struct cat_attr * attrp); 124 static void promotekey(struct hfsmount *hfsmp, const HFSCatalogKey *hfskey, HFSPlusCatalogKey *keyp, u_int32_t *encoding); 125 static void promotefork(struct hfsmount *hfsm [all...] |
H A D | hfs_link.c | 62 static int setfirstlink(struct hfsmount * hfsmp, cnid_t fileid, cnid_t firstlink); 63 static int getfirstlink(struct hfsmount * hfsmp, cnid_t fileid, cnid_t *firstlink); 65 int hfs_makelink(struct hfsmount *hfsmp, struct vnode *src_vp, struct cnode *cp, 82 createindirectlink(struct hfsmount *hfsmp, u_int32_t linknum, struct cat_desc *descp, 134 hfs_makelink(struct hfsmount *hfsmp, struct vnode *src_vp, struct cnode *cp, 404 struct hfsmount *hfsmp; 675 hfs_unlink(struct hfsmount *hfsmp, struct vnode *dvp, struct vnode *vp, struct componentname *cnp, int skip_reserve) 900 hfs_privatedir_init(struct hfsmount * hfsmp, enum privdirtype type) 1024 hfs_lookup_siblinglinks(struct hfsmount *hfsmp, cnid_t linkfileid, cnid_t *prevlinkid, cnid_t *nextlinkid) 1197 setfirstlink(struct hfsmount * hfsm [all...] |
H A D | hfs_quota.c | 106 struct hfsmount *hfsmp; 369 struct hfsmount* hfsmp; 505 struct hfsmount *hfsmp = VTOHFS(vp); 551 struct hfsmount *hfsmp = VFSTOHFS(mp); 656 struct hfsmount *hfsmp = VFSTOHFS(mp); 726 struct hfsmount *hfsmp; 816 struct hfsmount *hfsmp = VFSTOHFS(mp); 877 struct hfsmount *hfsmp = VFSTOHFS(mp); 941 struct hfsmount *hfsmp = VFSTOHFS(mp); 987 struct hfsmount *hfsm [all...] |
H A D | hfs_btreeio.c | 54 static int btree_journal_modify_block_end(struct hfsmount *hfsmp, struct buf *bp); 191 struct hfsmount *hfsmp = VTOHFS(vp); 211 // struct hfsmount *hfsmp = (struct hfsmount *)arg; 235 btree_journal_modify_block_end(struct hfsmount *hfsmp, struct buf *bp) 243 struct hfsmount *hfsmp = VTOHFS(vp); 554 struct hfsmount *hfsmp = VTOHFS(vp); 612 hfs_create_attr_btree(struct hfsmount *hfsmp, u_int32_t nodesize, u_int32_t nodecnt)
|
H A D | hfs_notification.c | 57 void hfs_generate_volume_notifications(struct hfsmount *hfsmp)
|
H A D | hfs_xattr.c | 90 static int remove_attribute_records(struct hfsmount *hfsmp, BTreeIterator * iterator); 92 static int getnodecount(struct hfsmount *hfsmp, size_t nodesize); 96 static int read_attr_data(struct hfsmount *hfsmp, uio_t uio, size_t datasize, HFSPlusExtentDescriptor *extents); 98 static int write_attr_data(struct hfsmount *hfsmp, uio_t uio, size_t datasize, HFSPlusExtentDescriptor *extents); 100 static int alloc_attr_blks(struct hfsmount *hfsmp, size_t attrsize, size_t extentbufsize, HFSPlusExtentDescriptor *extents, int *blocks); 102 static void free_attr_blks(struct hfsmount *hfsmp, int blkcnt, HFSPlusExtentDescriptor *extents); 278 struct hfsmount *hfsmp; 441 struct hfsmount *hfsmp, u_int32_t fileid) { 662 struct hfsmount *hfsmp; 940 struct vnop_setxattr_args *ap, struct hfsmount *hfsm [all...] |
H A D | hfs_vfsutils.c | 68 static int hfs_late_journal_init(struct hfsmount *hfsmp, HFSPlusVolumeHeader *vhp, void *_args); 70 static u_int32_t hfs_hotfile_freeblocks(struct hfsmount *); 93 OSErr hfs_MountHFSVolume(struct hfsmount *hfsmp, HFSMasterDirectoryBlock *mdb, 311 OSErr hfs_MountHFSPlusVolume(struct hfsmount *hfsmp, HFSPlusVolumeHeader *vhp, 906 hfsUnmount( register struct hfsmount *hfsmp, __unused struct proc *p) 995 hfs_lock_global (struct hfsmount *hfsmp, enum hfslocktype locktype) { 1022 hfs_unlock_global (struct hfsmount *hfsmp) { 1042 hfs_systemfile_lock(struct hfsmount *hfsmp, int flags, enum hfslocktype locktype) 1164 hfs_systemfile_unlock(struct hfsmount *hfsmp, int flags) 1275 hfs_owner_rights(struct hfsmount *hfsm [all...] |
H A D | hfs_vfsops.c | 148 static int hfs_flushMDB(struct hfsmount *hfsmp, int waitfor, int altflush); 149 static int hfs_getmountpoint(struct vnode *vp, struct hfsmount **hfsmpp); 155 static int hfs_file_extent_overlaps(struct hfsmount *hfsmp, u_int32_t allocLimit, struct HFSPlusCatalogFile *filerec); 157 static int hfs_reclaimspace(struct hfsmount *hfsmp, u_int32_t allocLimit, u_int32_t reclaimblks, vfs_context_t context); 158 static int hfs_extend_journal(struct hfsmount *hfsmp, u_int32_t sector_size, u_int64_t sector_count, vfs_context_t context); 160 void hfs_initialize_allocator (struct hfsmount *hfsmp); 161 int hfs_teardown_allocator (struct hfsmount *hfsmp); 162 void hfs_unmap_blocks (struct hfsmount *hfsmp); 180 struct hfsmount *hfsmp; 223 struct hfsmount *hfsm [all...] |
H A D | hfs_attrlist.c | 60 static void packcommonattr(struct attrblock *abp, struct hfsmount *hfsmp, 64 static void packfileattr(struct attrblock *abp, struct hfsmount *hfsmp, 68 static void packdirattr(struct attrblock *abp, struct hfsmount *hfsmp, 100 struct hfsmount * hfsmp; 424 struct hfsmount *hfsmp, 534 struct hfsmount *hfsmp, 778 struct hfsmount *hfsmp, 826 struct hfsmount *hfsmp,
|
H A D | hfs_cnode.c | 184 struct hfsmount *hfsmp = VTOHFS(vp); 641 struct hfsmount *hfsmp = VTOHFS(vp); 733 struct hfsmount *hfsmp; 841 struct hfsmount *hfsmp = VTOHFS(vp); 958 struct hfsmount *hfsmp, 1455 hfs_valid_cnode(struct hfsmount *hfsmp, struct vnode *dvp, struct componentname *cnp, 1646 hfs_touchtimes(struct hfsmount *hfsmp, struct cnode* cp) 1786 struct hfsmount *hfsmp = VTOHFS(vp);
|
H A D | hfs_lookup.c | 158 struct hfsmount *hfsmp; 447 struct hfsmount *hfsmp;
|
H A D | hfs_vnops.c | 85 int hfs_metasync(struct hfsmount *hfsmp, daddr64_t node, __unused struct proc *p); 86 int hfs_metasync_all(struct hfsmount *hfsmp); 152 hfs_is_journal_file(struct hfsmount *hfsmp, struct cnode *cp) 374 hfs_uncompressed_size_of_compressed_file(struct hfsmount *hfsmp, struct vnode *vp, cnid_t fid, off_t *size, int skiplock) 460 struct hfsmount *hfsmp = VTOHFS(vp); 584 struct hfsmount *hfsmp; 684 struct hfsmount *hfsmp; 1117 struct hfsmount *hfsmp; 1614 struct hfsmount *hfsmp; 1992 struct hfsmount *hfsm [all...] |
/darwin-on-arm/xnu/bsd/sys/ |
H A D | cprotect.h | 80 struct hfsmount; 175 int cp_entry_create_keys(struct cprotect **entry_ptr, struct cnode *dcp, struct hfsmount *hfsmp, 177 int cp_entry_gentempkeys(struct cprotect **entry_ptr, struct hfsmount *hfsmp); 183 int cp_getrootxattr (struct hfsmount *hfsmp, struct cp_root_xattr *outxattr); 184 int cp_setrootxattr (struct hfsmount *hfsmp, struct cp_root_xattr *newxattr); 185 int cp_setxattr(struct cnode *cp, struct cprotect *entry, struct hfsmount *hfsmp, uint32_t fileid, int options); 187 int cp_handle_relocate (cnode_ptr_t cp, struct hfsmount *hfsmp);
|
/darwin-on-arm/xnu/bsd/hfs/hfscommon/headers/ |
H A D | FileMgrInternal.h | 237 ResetVCBFreeExtCache(struct hfsmount *hfsmp); 252 UpdateAllocLimit (struct hfsmount *hfsmp, u_int32_t new_end_block); 255 UnmapBlocks(struct hfsmount *hfsmp); 259 GenerateTree( struct hfsmount *hfsmp, u_int32_t end_block, int *flags, int initialscan); 262 DestroyTrees( struct hfsmount *hfsmp); 265 InitTree(struct hfsmount *hfsmp);
|
/darwin-on-arm/xnu/bsd/hfs/hfscommon/Misc/ |
H A D | VolumeAllocation.c | 365 static int hfs_track_unmap_blocks (struct hfsmount *hfsmp, u_int32_t offset, 368 static int hfs_issue_unmap (struct hfsmount *hfsmp, struct jnl_trim_list *list); 370 static int hfs_alloc_scan_block(struct hfsmount *hfsmp, 376 int hfs_isallocated_scan (struct hfsmount *hfsmp, 410 hfs_isrbtree_allocated (struct hfsmount * hfsmp, 416 hfs_validate_rbtree (struct hfsmount *hfsmp, 420 static void hfs_checktreelinks (struct hfsmount *hfsmp); 423 void check_rbtree_extents (struct hfsmount *hfsmp, 434 static void remove_free_extent_cache(struct hfsmount *hfsmp, u_int32_t startBlock, u_int32_t blockCount); 435 static Boolean add_free_extent_cache(struct hfsmount *hfsm [all...] |