Searched refs:hfsmount (Results 1 - 25 of 32) sorted by relevance

12

/xnu-2782.1.97/bsd/hfs/
H A Dhfs_hotfiles.h107 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 Dhfs_catalog.h225 struct hfsmount;
253 extern int cat_insert_idhash (struct hfsmount *hfsmp, cat_preflightid_t *preflight);
254 extern int cat_check_idhash (struct hfsmount *hfsmp, cnid_t test_fileid);
257 extern void hfs_idhash_init (struct hfsmount *hfsmp);
260 extern void hfs_idhash_destroy (struct hfsmount *hfsmp);
263 extern int cat_acquire_cnid (struct hfsmount *hfsmp, cnid_t *new_cnid);
332 extern int cat_create ( struct hfsmount *hfsmp,
338 extern int cat_delete ( struct hfsmount *hfsmp,
342 extern int cat_lookup ( struct hfsmount *hfsmp,
351 extern int cat_idlookup (struct hfsmount *hfsm
[all...]
H A Dhfs.h144 typedef struct hfsmount { struct
315 lck_mtx_t hfs_mutex; /* protects access to hfsmount data */
549 #define VTOHFS(VP) ((struct hfsmount *)vfs_fsprivate(vnode_mount((VP))))
550 #define VFSTOHFS(MP) ((struct hfsmount *)vfs_fsprivate((MP)))
552 #define FCBTOHFS(FCB) ((struct hfsmount *)vfs_fsprivate(vnode_mount((FCB)->ff_cp->c_vp)))
696 void hfs_generate_volume_notifications(struct hfsmount *hfsmp);
711 extern int hfs_release_storage (struct hfsmount *hfsmp, struct filefork *datafork,
714 extern int hfs_prepare_release_storage (struct hfsmount *hfsmp, struct vnode *vp);
722 extern int hfs_removeallattr(struct hfsmount *hfsmp, u_int32_t fileid);
724 extern int hfs_set_volxattr(struct hfsmount *hfsm
[all...]
H A Dhfs_chash.c101 static void hfs_chash_lock(struct hfsmount *hfsmp)
106 static void hfs_chash_lock_spin(struct hfsmount *hfsmp)
111 static void hfs_chash_lock_convert (__unused struct hfsmount *hfsmp)
116 static void hfs_chash_unlock(struct hfsmount *hfsmp)
123 hfs_chashinit_finish(struct hfsmount *hfsmp)
132 hfs_delete_chash(struct hfsmount *hfsmp)
146 hfs_chash_getvnode(struct hfsmount *hfsmp, ino_t inum, int wantrsrc, int skiplock, int allow_deleted)
225 hfs_chash_snoop(struct hfsmount *hfsmp, ino_t inum, int existence_only,
295 hfs_chash_getcnode(struct hfsmount *hfsmp, ino_t inum, struct vnode **vpp,
437 hfs_chashwakeup(struct hfsmount *hfsm
[all...]
H A Dhfs_cnode.h332 int hfs_uncompressed_size_of_compressed_file(struct hfsmount *hfsmp, struct vnode *vp, cnid_t fid, off_t *size, int skiplock);
348 extern int hfs_getnewvnode(struct hfsmount *hfsmp, struct vnode *dvp, struct componentname *cnp,
366 extern void hfs_touchtimes(struct hfsmount *, struct cnode *);
394 extern void hfs_chashinit_finish(struct hfsmount *hfsmp);
395 extern void hfs_delete_chash(struct hfsmount *hfsmp);
396 extern int hfs_chashremove(struct hfsmount *hfsmp, struct cnode *cp);
397 extern void hfs_chash_abort(struct hfsmount *hfsmp, struct cnode *cp);
398 extern void hfs_chash_rehash(struct hfsmount *hfsmp, struct cnode *cp1, struct cnode *cp2);
399 extern void hfs_chashwakeup(struct hfsmount *hfsmp, struct cnode *cp, int flags);
400 extern void hfs_chash_mark_in_transit(struct hfsmount *hfsm
[all...]
H A Dhfs_quota.h99 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 Dhfs_btreeio.h53 int hfs_create_attr_btree(struct hfsmount *hfsmp, u_int32_t nodesize, u_int32_t nodecnt);
H A Dhfs_cprotect.c60 static int cp_getxattr(cnode_t *, struct hfsmount *hfsmp, struct cprotect **);
63 static int cp_restore_keys(struct cprotect *, struct hfsmount *hfsmp, struct cnode *);
67 static int cp_check_access (cnode_t *cp, struct hfsmount *hfsmp, int vnop);
68 static int cp_new(int newclass, struct hfsmount *hfsmp, struct cnode *cp, mode_t cmode,
70 static int cp_rewrap(struct cnode *cp, struct hfsmount *hfsmp, int newclass);
71 static int cp_unwrap(struct hfsmount *, struct cprotect *, struct cnode *);
143 struct hfsmount *hfsmp = VFSTOHFS(mp);
249 int cp_setup_newentry (struct hfsmount *hfsmp, struct cnode *dcp, int32_t suppliedclass,
339 int cp_needs_tempkeys (struct hfsmount *hfsmp, int *needs)
370 int cp_entry_gentempkeys(struct cprotect **entry_ptr, struct hfsmount *hfsm
[all...]
H A Dhfs_attrlist.h102 extern void hfs_packattrblk(struct attrblock *abp, struct hfsmount *hfsmp,
H A Dhfs_hotfiles.c96 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 Dhfs_catalog.c72 struct hfsmount * s_hfsmp;
80 struct hfsmount *hfsmp;
96 static int cat_lookupbykey(struct hfsmount *hfsmp, CatalogKey *keyp, int flags, u_int32_t hint, int wantrsrc,
99 int cat_lookupmangled(struct hfsmount *hfsmp, struct cat_desc *descp, int wantrsrc,
107 static int resolvelinkid(struct hfsmount *hfsmp, u_int32_t linkref, ino_t *ino);
109 static int getkey(struct hfsmount *hfsmp, cnid_t cnid, CatalogKey * key);
111 static int buildkey(struct hfsmount *hfsmp, struct cat_desc *descp,
123 static void getbsdattr(struct hfsmount *hfsmp, const struct HFSPlusCatalogFile *crp, struct cat_attr * attrp);
126 static void promotekey(struct hfsmount *hfsmp, const HFSCatalogKey *hfskey, HFSPlusCatalogKey *keyp, u_int32_t *encoding);
127 static void promotefork(struct hfsmount *hfsm
[all...]
H A Dhfs_quota.c106 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 Dhfs_vfsops.c144 static int hfs_flushMDB(struct hfsmount *hfsmp, int waitfor, int altflush);
153 static int hfs_getmountpoint(struct vnode *vp, struct hfsmount **hfsmpp);
155 static void hfs_locks_destroy(struct hfsmount *hfsmp);
161 static void hfs_syncer_free(struct hfsmount *hfsmp);
163 void hfs_initialize_allocator (struct hfsmount *hfsmp);
164 int hfs_teardown_allocator (struct hfsmount *hfsmp);
182 struct hfsmount *hfsmp;
230 struct hfsmount *hfsmp = NULL;
549 struct hfsmount *hfsmp;
616 struct hfsmount *hfsm
[all...]
H A Dhfs_btreeio.c54 static int btree_journal_modify_block_end(struct hfsmount *hfsmp, struct buf *bp);
216 struct hfsmount *hfsmp = VTOHFS(vp);
236 // struct hfsmount *hfsmp = (struct hfsmount *)arg;
260 btree_journal_modify_block_end(struct hfsmount *hfsmp, struct buf *bp)
268 struct hfsmount *hfsmp = VTOHFS(vp);
579 struct hfsmount *hfsmp = VTOHFS(vp);
637 hfs_create_attr_btree(struct hfsmount *hfsmp, u_int32_t nodesize, u_int32_t nodecnt)
H A Dhfs_vfsutils.c79 static int hfs_late_journal_init(struct hfsmount *hfsmp, HFSPlusVolumeHeader *vhp, void *_args);
81 static u_int32_t hfs_hotfile_freeblocks(struct hfsmount *);
82 static void hfs_thaw_locked(struct hfsmount *hfsmp);
105 OSErr hfs_MountHFSVolume(struct hfsmount *hfsmp, HFSMasterDirectoryBlock *mdb,
329 OSErr hfs_MountHFSPlusVolume(struct hfsmount *hfsmp, HFSPlusVolumeHeader *vhp,
1113 hfsUnmount( register struct hfsmount *hfsmp, __unused struct proc *p)
1207 boolean_t hfs_is_frozen(struct hfsmount *hfsmp)
1218 hfs_lock_global (struct hfsmount *hfsmp, enum hfs_locktype locktype)
1284 hfs_unlock_global (struct hfsmount *hfsmp)
1305 void hfs_lock_mount (struct hfsmount *hfsm
[all...]
H A Dhfs_link.c62 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,
419 struct hfsmount *hfsmp;
714 hfs_unlink(struct hfsmount *hfsmp, struct vnode *dvp, struct vnode *vp, struct componentname *cnp, int skip_reserve)
954 hfs_privatedir_init(struct hfsmount * hfsmp, enum privdirtype type)
1087 hfs_lookup_siblinglinks(struct hfsmount *hfsmp, cnid_t linkfileid, cnid_t *prevlinkid, cnid_t *nextlinkid)
1112 hfs_lookup_lastlink (struct hfsmount *hfsm
[all...]
H A Dhfs_attrlist.c60 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,
75 struct hfsmount *, struct vnode *, struct cat_desc *, struct cat_attr *,
79 struct hfsmount *, struct vnode *, struct cat_desc *, struct cat_attr *,
83 struct hfsmount *, struct vnode *, struct cat_desc *, struct cat_attr *);
86 struct hfsmount *, struct cat_attr *, struct cat_fork *, struct cat_fork *,
193 struct hfsmount * hfsmp;
587 struct hfsmount *hfsmp,
696 struct hfsmount *hfsm
[all...]
H A Dhfs_notification.c57 void hfs_generate_volume_notifications(struct hfsmount *hfsmp)
H A Dhfs_xattr.c86 static int remove_attribute_records(struct hfsmount *hfsmp, BTreeIterator * iterator);
88 static int getnodecount(struct hfsmount *hfsmp, size_t nodesize);
92 static int read_attr_data(struct hfsmount *hfsmp, uio_t uio, size_t datasize, HFSPlusExtentDescriptor *extents);
94 static int write_attr_data(struct hfsmount *hfsmp, uio_t uio, size_t datasize, HFSPlusExtentDescriptor *extents);
96 static int alloc_attr_blks(struct hfsmount *hfsmp, size_t attrsize, size_t extentbufsize, HFSPlusExtentDescriptor *extents, int *blocks);
98 static void free_attr_blks(struct hfsmount *hfsmp, int blkcnt, HFSPlusExtentDescriptor *extents);
271 struct hfsmount *hfsmp;
448 struct hfsmount *hfsmp, u_int32_t fileid)
704 struct hfsmount *hfsmp;
1018 struct vnop_setxattr_args *ap, struct hfsmount *hfsm
[all...]
H A Dhfs_resize.c50 static int hfs_file_extent_overlaps(struct hfsmount *hfsmp, u_int32_t allocLimit, struct HFSPlusCatalogFile *filerec);
51 static int hfs_reclaimspace(struct hfsmount *hfsmp, u_int32_t allocLimit, u_int32_t reclaimblks, vfs_context_t context);
52 static int hfs_extend_journal(struct hfsmount *hfsmp, u_int32_t sector_size, u_int64_t sector_count, vfs_context_t context);
58 hfs_extendfs(struct hfsmount *hfsmp, u_int64_t newsize, vfs_context_t context)
521 hfs_truncatefs(struct hfsmount *hfsmp, u_int64_t newsize, vfs_context_t context)
916 struct hfsmount *hfsmp,
1670 hfs_reclaim_extent(struct hfsmount *hfsmp, const u_long allocLimit, struct hfs_reclaim_extent_info *extent_info, vfs_context_t context)
1957 hfs_truncatefs_progress(struct hfsmount *hfsmp)
2005 hfs_reclaim_file(struct hfsmount *hfsmp, struct vnode *vp, u_int32_t fileID,
2298 struct hfsmount *hfsm
[all...]
H A Dhfs_lookup.c158 struct hfsmount *hfsmp;
468 struct hfsmount *hfsmp;
H A Dhfs_search.c106 static void ResolveHardlink(struct hfsmount *hfsmp, HFSPlusCatalogFile *recp);
109 static int UnpackSearchAttributeBlock(struct hfsmount *hfsmp, struct attrlist *alist,
123 static int InsertMatch(struct hfsmount *hfsmp, uio_t a_uio, CatalogRecord *rec,
181 struct hfsmount *hfsmp;
449 ResolveHardlink(struct hfsmount *hfsmp, HFSPlusCatalogFile *recp)
1114 InsertMatch(struct hfsmount *hfsmp, uio_t a_uio, CatalogRecord *rec,
1195 UnpackSearchAttributeBlock( struct hfsmount *hfsmp, struct attrlist *alist,
/xnu-2782.1.97/bsd/sys/
H A Dcprotect.h128 struct hfsmount;
297 int cp_entry_gentempkeys(struct cprotect **entry_ptr, struct hfsmount *hfsmp);
298 int cp_needs_tempkeys (struct hfsmount *hfsmp, int* needs);
304 int cp_getrootxattr (struct hfsmount *hfsmp, struct cp_root_xattr *outxattr);
305 int cp_setrootxattr (struct hfsmount *hfsmp, struct cp_root_xattr *newxattr);
306 int cp_setxattr(struct cnode *cp, struct cprotect *entry, struct hfsmount *hfsmp, uint32_t fileid, int options);
307 int cp_generate_keys (struct hfsmount *hfsmp, struct cnode *cp, int targetclass,
309 int cp_setup_newentry (struct hfsmount *hfsmp, struct cnode *dcp, int32_t suppliedclass,
311 int cp_handle_relocate (cnode_ptr_t cp, struct hfsmount *hfsmp);
316 int cp_set_trimmed(struct hfsmount *hfsm
[all...]
/xnu-2782.1.97/bsd/hfs/hfscommon/Misc/
H A DVolumeAllocation.c305 static OSErr ReadBitmapRange (struct hfsmount *hfsmp, uint32_t offset, uint32_t iosize,
310 static int hfs_track_unmap_blocks (struct hfsmount *hfsmp, u_int32_t offset,
313 static int hfs_issue_unmap (struct hfsmount *hfsmp, struct jnl_trim_list *list);
315 static int hfs_alloc_scan_range(struct hfsmount *hfsmp,
320 static int hfs_scan_range_size (struct hfsmount* hfsmp, uint32_t start, uint32_t *iosize);
321 static uint32_t CheckUnmappedBytes (struct hfsmount *hfsmp, uint64_t blockno, uint64_t numblocks, int *recent, uint32_t *next);
330 int hfs_isallocated_scan (struct hfsmount *hfsmp,
335 static int hfs_set_summary (struct hfsmount *hfsmp, uint32_t summarybit, uint32_t inuse);
336 static int hfs_get_summary_index (struct hfsmount *hfsmp, uint32_t block, uint32_t *index);
337 static int hfs_find_summary_free (struct hfsmount *hfsm
[all...]
/xnu-2782.1.97/bsd/hfs/hfscommon/headers/
H A DFileMgrInternal.h235 ResetVCBFreeExtCache(struct hfsmount *hfsmp);
250 UpdateAllocLimit (struct hfsmount *hfsmp, u_int32_t new_end_block);
253 ScanUnmapBlocks(struct hfsmount *hfsmp);
256 hfs_init_summary (struct hfsmount *hfsmp);

Completed in 101 milliseconds

12