Searched refs:hfsmp (Results 1 - 25 of 26) sorted by relevance

12

/darwin-on-arm/xnu/bsd/hfs/
H A Dhfs_notification.c57 void hfs_generate_volume_notifications(struct hfsmount *hfsmp) argument
63 if (hfsmp->vcbVN) {
64 if (strlen((char*)hfsmp->vcbVN) < 256) {
65 volname = (char*) hfsmp->vcbVN;
69 fsid.val[0] = (long)hfsmp->hfs_raw_dev;
70 fsid.val[1] = (long)vfs_typenum(HFSTOVFS(hfsmp));
72 freeblks = hfs_freeblks(hfsmp, 1);
74 if (freeblks < hfsmp->hfs_freespace_notify_dangerlimit) {
76 } else if (freeblks < hfsmp->hfs_freespace_notify_warninglimit) {
78 } else if (freeblks >= hfsmp
[all...]
H A Dhfs_chash.c86 #define CNODEHASH(hfsmp, inum) (&hfsmp->hfs_cnodehashtbl[(inum) & hfsmp->hfs_cnodehash])
101 static void hfs_chash_lock(struct hfsmount *hfsmp) argument
103 lck_mtx_lock(&hfsmp->hfs_chash_mutex);
106 static void hfs_chash_lock_spin(struct hfsmount *hfsmp) argument
108 lck_mtx_lock_spin(&hfsmp->hfs_chash_mutex);
112 static void hfs_chash_lock_convert (struct hfsmount *hfsmp) argument
114 static void hfs_chash_lock_convert (__unused struct hfsmount *hfsmp)
117 lck_mtx_convert_spin(&hfsmp
120 hfs_chash_unlock(struct hfsmount *hfsmp) argument
127 hfs_chashinit_finish(struct hfsmount *hfsmp) argument
136 hfs_delete_chash(struct hfsmount *hfsmp) argument
150 hfs_chash_getvnode(struct hfsmount *hfsmp, ino_t inum, int wantrsrc, int skiplock, int allow_deleted) argument
229 hfs_chash_snoop(struct hfsmount *hfsmp, ino_t inum, int existence_only, int (*callout)(const struct cat_desc *, const struct cat_attr *, void *), void * arg) argument
297 hfs_chash_getcnode(struct hfsmount *hfsmp, ino_t inum, struct vnode **vpp, int wantrsrc, int skiplock, int *out_flags, int *hflags) argument
439 hfs_chashwakeup(struct hfsmount *hfsmp, struct cnode *cp, int hflags) argument
458 hfs_chash_rehash(struct hfsmount *hfsmp, struct cnode *cp1, struct cnode *cp2) argument
476 hfs_chashremove(struct hfsmount *hfsmp, struct cnode *cp) argument
500 hfs_chash_abort(struct hfsmount *hfsmp, struct cnode *cp) argument
522 hfs_chash_mark_in_transit(struct hfsmount *hfsmp, struct cnode *cp) argument
538 hfs_chash_search_cnid(struct hfsmount *hfsmp, cnid_t cnid) argument
568 hfs_chash_set_childlinkbit(struct hfsmount *hfsmp, cnid_t cnid) argument
[all...]
H A Dhfs_vfsutils.c68 static int hfs_late_journal_init(struct hfsmount *hfsmp, HFSPlusVolumeHeader *vhp, void *_args);
93 OSErr hfs_MountHFSVolume(struct hfsmount *hfsmp, HFSMasterDirectoryBlock *mdb, argument
96 ExtendedVCB *vcb = HFSTOVCB(hfsmp);
110 if (((hfsmp->hfs_flags & HFS_READ_ONLY) == 0) &&
114 hfsmp->hfs_flags |= HFS_STANDARD;
141 if ((hfsmp->hfs_flags & HFS_READ_ONLY) == 0)
158 hfsmp->hfs_logBlockSize = BestBlockSizeFit(vcb->blockSize, MAXBSIZE, hfsmp->hfs_logical_block_size);
161 hfsmp->hfs_alt_id_sector = HFS_ALT_SECTOR(hfsmp
311 hfs_MountHFSPlusVolume(struct hfsmount *hfsmp, HFSPlusVolumeHeader *vhp, off_t embeddedOffset, u_int64_t disksize, __unused struct proc *p, void *args, kauth_cred_t cred) argument
906 hfsUnmount( register struct hfsmount *hfsmp, __unused struct proc *p) argument
995 hfs_lock_global(struct hfsmount *hfsmp, enum hfslocktype locktype) argument
1022 hfs_unlock_global(struct hfsmount *hfsmp) argument
1042 hfs_systemfile_lock(struct hfsmount *hfsmp, int flags, enum hfslocktype locktype) argument
1164 hfs_systemfile_unlock(struct hfsmount *hfsmp, int flags) argument
1275 hfs_owner_rights(struct hfsmount *hfsmp, uid_t cnode_uid, kauth_cred_t cred, __unused struct proc *p, int invokesuperuserstatus) argument
1338 struct hfsmount * hfsmp; local
1374 hfs_remove_orphans(struct hfsmount * hfsmp) argument
1659 hfs_freeblks(struct hfsmount * hfsmp, int wantreserve) argument
2108 hfs_early_journal_init(struct hfsmount *hfsmp, HFSPlusVolumeHeader *vhp, void *_args, off_t embeddedOffset, daddr64_t mdb_offset, HFSMasterDirectoryBlock *mdbp, kauth_cred_t cred) argument
2316 hfs_late_journal_init(struct hfsmount *hfsmp, HFSPlusVolumeHeader *vhp, void *_args) argument
2590 hfs_metadatazone_init(struct hfsmount *hfsmp, int disable) argument
2786 hfs_hotfile_freeblocks(struct hfsmount *hfsmp) argument
2842 hfs_sync_ejectable(struct hfsmount *hfsmp) argument
2884 hfs_start_transaction(struct hfsmount *hfsmp) argument
2942 hfs_end_transaction(struct hfsmount *hfsmp) argument
2994 hfs_journal_flush(struct hfsmount *hfsmp, boolean_t wait_for_IO) argument
3030 hfs_erase_unused_nodes(struct hfsmount *hfsmp) argument
[all...]
H A Dhfs_vfsops.c148 static int hfs_flushMDB(struct hfsmount *hfsmp, int waitfor, int altflush);
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; local
193 /* Init hfsmp */
194 hfsmp
223 struct hfsmount *hfsmp = NULL; local
588 struct hfsmount *hfsmp; member in struct:hfs_changefs_cargs
655 struct hfsmount *hfsmp; local
792 struct hfsmount *hfsmp; member in struct:hfs_reload_cargs
859 struct hfsmount *hfsmp; local
1031 struct hfsmount *hfsmp = arg0; local
1160 hfs_initialize_allocator(struct hfsmount *hfsmp) argument
1202 hfs_unmap_blocks(struct hfsmount *hfsmp) argument
1230 hfs_teardown_allocator(struct hfsmount *hfsmp) argument
1282 struct hfsmount *hfsmp = NULL; local
2114 struct hfsmount *hfsmp = VFSTOHFS(mp); local
2436 struct hfsmount *hfsmp = VFSTOHFS(mp); local
2487 struct hfsmount *hfsmp; local
2578 struct hfsmount *hfsmp; local
2805 struct hfsmount * hfsmp; local
2840 struct hfsmount *hfsmp; local
3181 struct hfsmount *hfsmp; local
3227 hfs_vget(struct hfsmount *hfsmp, cnid_t cnid, struct vnode **vpp, int skiplock, int allow_deleted) argument
3394 struct hfsmount *hfsmp; local
3465 hfs_setencodingbits(struct hfsmount *hfsmp, u_int32_t encoding) argument
3498 hfs_volupdate(struct hfsmount *hfsmp, enum volop op, int inroot) argument
3549 hfs_flushMDB(struct hfsmount *hfsmp, int waitfor, int altflush) argument
3649 hfs_flushvolumeheader(struct hfsmount *hfsmp, int waitfor, int altflush) argument
3956 hfs_extendfs(struct hfsmount *hfsmp, u_int64_t newsize, vfs_context_t context) argument
4402 hfs_truncatefs(struct hfsmount *hfsmp, u_int64_t newsize, vfs_context_t context) argument
4794 hfs_copy_extent( struct hfsmount *hfsmp, struct vnode *vp, u_int32_t oldStart, u_int32_t newStart, u_int32_t blockCount, vfs_context_t context) argument
5549 hfs_reclaim_extent(struct hfsmount *hfsmp, const u_long allocLimit, struct hfs_reclaim_extent_info *extent_info, vfs_context_t context) argument
5815 hfs_truncatefs_progress(struct hfsmount *hfsmp) argument
5863 hfs_reclaim_file(struct hfsmount *hfsmp, struct vnode *vp, u_int32_t fileID, u_int8_t forktype, u_long allocLimit, vfs_context_t context) argument
6156 struct hfsmount *hfsmp; member in struct:hfs_journal_relocate_args
6167 struct hfsmount *hfsmp = args->hfsmp; local
6217 hfs_relocate_journal_file(struct hfsmount *hfsmp, u_int32_t jnl_size, int resize_type, vfs_context_t context) argument
6358 hfs_reclaim_journal_file(struct hfsmount *hfsmp, u_int32_t allocLimit, vfs_context_t context) argument
6418 hfs_reclaim_journal_info_block(struct hfsmount *hfsmp, u_int32_t allocLimit, vfs_context_t context) argument
6556 calculate_journal_size(struct hfsmount *hfsmp, u_int32_t sector_size, u_int64_t sector_count) argument
6588 hfs_extend_journal(struct hfsmount *hfsmp, u_int32_t sector_size, u_int64_t sector_count, vfs_context_t context) argument
6640 hfs_reclaim_xattr(struct hfsmount *hfsmp, struct vnode *vp, u_int32_t fileID, u_int32_t allocLimit, vfs_context_t context) argument
6801 hfs_reclaim_xattrspace(struct hfsmount *hfsmp, u_int32_t allocLimit, vfs_context_t context) argument
6930 hfs_reclaim_filespace(struct hfsmount *hfsmp, u_int32_t allocLimit, vfs_context_t context) argument
7085 hfs_reclaimspace(struct hfsmount *hfsmp, u_int32_t allocLimit, u_int32_t reclaimblks, vfs_context_t context) argument
7214 hfs_file_extent_overlaps(struct hfsmount *hfsmp, u_int32_t allocLimit, struct HFSPlusCatalogFile *filerec) argument
7325 hfs_resize_progress(struct hfsmount *hfsmp, u_int32_t *progress) argument
7346 hfs_getvoluuid(struct hfsmount *hfsmp, uuid_t result) argument
7374 struct hfsmount *hfsmp = VFSTOHFS(mp); local
7565 struct hfsmount *hfsmp = VTOHFS(vp); local
7693 hfs_mark_volume_inconsistent(struct hfsmount *hfsmp) argument
[all...]
H A Dhfs_hotfiles.c96 struct hfsmount *hfsmp; member in struct:hotfile_data
162 hfs_recording_start(struct hfsmount *hfsmp) argument
171 if ((hfsmp->hfs_flags & HFS_READ_ONLY) ||
172 (hfsmp->jnl == NULL) ||
173 (hfsmp->hfs_flags & HFS_METADATA_ZONE) == 0) {
176 if (HFSTOVCB(hfsmp)->freeBlocks < (2 * (u_int32_t)hfsmp->hfs_hotfile_maxblks)) {
179 if (hfsmp->hfc_stage != HFC_IDLE) {
182 hfsmp->hfc_stage = HFC_BUSY;
187 if (hfsmp
299 hfs_recording_stop(struct hfsmount *hfsmp) argument
432 hfs_recording_suspend(struct hfsmount *hfsmp) argument
514 hfs_recording_init(struct hfsmount *hfsmp) argument
720 hfs_hotfilesync(struct hfsmount *hfsmp, vfs_context_t ctx) argument
768 hfsmount_t *hfsmp; local
786 hfsmount_t *hfsmp; local
856 hfsmount_t *hfsmp; local
917 hotfiles_collect(struct hfsmount *hfsmp) argument
954 hotfiles_refine(struct hfsmount *hfsmp) argument
1070 hotfiles_adopt(struct hfsmount *hfsmp) argument
1279 hotfiles_evict(struct hfsmount *hfsmp, vfs_context_t ctx) argument
1479 hotfiles_age(struct hfsmount *hfsmp) argument
1642 hotextents(struct hfsmount *hfsmp, HFSPlusExtentDescriptor * extents) argument
1677 hfc_btree_open(struct hfsmount *hfsmp, struct vnode **vpp) argument
1756 hfc_btree_close(struct hfsmount *hfsmp, struct vnode *vp) argument
1786 hfc_btree_create(struct hfsmount *hfsmp, unsigned int nodesize, unsigned int entries) argument
[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, argument
98 attr.ca_itime = hfsmp->hfs_metadata_createdate;
121 return cat_createlink(hfsmp, descp, &attr, nextcnid, linkcnid);
134 hfs_makelink(struct hfsmount *hfsmp, struct vnode *src_vp, struct cnode *cp, argument
159 if (dcp->c_fileid == hfsmp->hfs_private_desc[FILE_HARDLINKS].cd_cnid ||
160 dcp->c_fileid == hfsmp->hfs_private_desc[DIR_HARDLINKS].cd_cnid) {
166 if ((retval = cat_preflight(hfsmp, (
404 struct hfsmount *hfsmp; local
675 hfs_unlink(struct hfsmount *hfsmp, struct vnode *dvp, struct vnode *vp, struct componentname *cnp, int skip_reserve) argument
900 hfs_privatedir_init(struct hfsmount * hfsmp, enum privdirtype type) argument
1024 hfs_lookup_siblinglinks(struct hfsmount *hfsmp, cnid_t linkfileid, cnid_t *prevlinkid, cnid_t *nextlinkid) argument
1197 setfirstlink(struct hfsmount * hfsmp, cnid_t fileid, cnid_t firstlink) argument
1259 getfirstlink(struct hfsmount * hfsmp, cnid_t fileid, cnid_t *firstlink) argument
[all...]
H A Dhfs_catalog.h279 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 *hfsmp,
335 struct hfsmount *hfsmp,
[all...]
H A Dhfs_catalog.c80 struct hfsmount *hfsmp; member in struct:position_state
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 *hfsmp, const struct HFSCatalogFile *file, int resource, struct cat_fork * forkp);
126 static void promoteattr(struct hfsmount *hfsmp, cons
142 cat_preflight(struct hfsmount *hfsmp, catops_t ops, cat_cookie_t *cookie, __unused proc_t p) argument
159 cat_postflight(struct hfsmount *hfsmp, cat_cookie_t *cookie, __unused proc_t p) argument
174 cat_convertattr( struct hfsmount *hfsmp, CatalogRecord * recp, struct cat_attr *attrp, struct cat_fork *datafp, struct cat_fork *rsrcfp) argument
239 cat_convertkey( struct hfsmount *hfsmp, CatalogKey *key, CatalogRecord * recp, struct cat_desc *descp) argument
302 cat_lookup(struct hfsmount *hfsmp, struct cat_desc *descp, int wantrsrc, struct cat_desc *outdescp, struct cat_attr *attrp, struct cat_fork *forkp, cnid_t *desc_cnid) argument
348 cat_insertfilethread(struct hfsmount *hfsmp, struct cat_desc *descp) argument
412 cat_findname(struct hfsmount *hfsmp, cnid_t cnid, struct cat_desc *outdescp) argument
484 cat_idlookup(struct hfsmount *hfsmp, cnid_t cnid, int allow_system_files, int wantrsrc, struct cat_desc *outdescp, struct cat_attr *attrp, struct cat_fork *forkp) argument
572 cat_lookupmangled(struct hfsmount *hfsmp, struct cat_desc *descp, int wantrsrc, struct cat_desc *outdescp, struct cat_attr *attrp, struct cat_fork *forkp) argument
637 cat_lookupbykey(struct hfsmount *hfsmp, CatalogKey *keyp, int flags, u_int32_t hint, int wantrsrc, struct cat_desc *descp, struct cat_attr *attrp, struct cat_fork *forkp, cnid_t *desc_cnid) argument
886 cat_create(struct hfsmount *hfsmp, struct cat_desc *descp, struct cat_attr *attrp, struct cat_desc *out_descp) argument
1075 cat_rename( struct hfsmount * hfsmp, struct cat_desc * from_cdp, struct cat_desc * todir_cdp, struct cat_desc * to_cdp, struct cat_desc * out_cdp ) argument
1382 cat_delete(struct hfsmount *hfsmp, struct cat_desc *descp, struct cat_attr *attrp) argument
1477 cat_update_internal(struct hfsmount *hfsmp, int update_hardlink, struct cat_desc *descp, struct cat_attr *attrp, struct cat_fork *dataforkp, struct cat_fork *rsrcforkp) argument
1539 cat_update(struct hfsmount *hfsmp, struct cat_desc *descp, struct cat_attr *attrp, struct cat_fork *dataforkp, struct cat_fork *rsrcforkp) argument
1555 struct hfsmount *hfsmp; local
1825 cat_set_childlinkbit(struct hfsmount *hfsmp, cnid_t cnid) argument
1890 cat_check_link_ancestry(struct hfsmount *hfsmp, cnid_t cnid, cnid_t pointed_at_cnid) argument
1972 cat_update_siblinglinks(struct hfsmount *hfsmp, cnid_t linkfileid, cnid_t prevlinkid, cnid_t nextlinkid) argument
2004 cat_lookuplink(struct hfsmount *hfsmp, struct cat_desc *descp, cnid_t *linkfileid, cnid_t *prevlinkid, cnid_t *nextlinkid) argument
2049 cat_lookup_siblinglinks(struct hfsmount *hfsmp, cnid_t linkfileid, cnid_t *prevlinkid, cnid_t *nextlinkid) argument
2109 cat_createlink(struct hfsmount *hfsmp, struct cat_desc *descp, struct cat_attr *attrp, cnid_t nextlinkid, cnid_t *linkfileid) argument
2333 cat_makealias(struct hfsmount *hfsmp, u_int32_t inode_num, struct HFSPlusCatalogFile *crp) argument
2422 cat_deletelink(struct hfsmount *hfsmp, struct cat_desc *descp) argument
2489 struct hfsmount *hfsmp; member in struct:readattr_state
2501 struct hfsmount *hfsmp = state->hfsmp; local
2598 cat_getentriesattr(struct hfsmount *hfsmp, directoryhint_t *dirhint, struct cat_entrylist *ce_list) argument
2784 struct hfsmount *hfsmp; local
3110 struct hfsmount *hfsmp; local
3195 cat_getdirentries(struct hfsmount *hfsmp, u_int32_t entrycnt, directoryhint_t *dirhint, uio_t uio, int flags, int * items, int * eofflag) argument
3607 buildkey(struct hfsmount *hfsmp, struct cat_desc *descp, HFSPlusCatalogKey *key, int retry) argument
3671 cat_resolvelink(struct hfsmount *hfsmp, u_int32_t linkref, int isdirlink, struct HFSPlusCatalogFile *recp) argument
3723 resolvelinkid(struct hfsmount *hfsmp, u_int32_t linkref, ino_t *ino) argument
3748 getkey(struct hfsmount *hfsmp, cnid_t cnid, CatalogKey * key) argument
3810 cat_getkeyplusattr(struct hfsmount *hfsmp, cnid_t cnid, CatalogKey * key, struct cat_attr *attrp) argument
3987 getbsdattr(struct hfsmount *hfsmp, const struct HFSPlusCatalogFile *crp, struct cat_attr * attrp) argument
4099 promotekey(struct hfsmount *hfsmp, const HFSCatalogKey *hfskey, HFSPlusCatalogKey *keyp, u_int32_t *encoding) argument
4131 promotefork(struct hfsmount *hfsmp, const struct HFSCatalogFile *filep, int resource, struct cat_fork * forkp) argument
4169 promoteattr(struct hfsmount *hfsmp, const CatalogRecord *dataPtr, struct HFSPlusCatalogFile *crp) argument
4364 cat_lookup_dirlink(struct hfsmount *hfsmp, cnid_t dirlink_id, u_int8_t forktype, struct cat_desc *outdescp, struct cat_attr *attrp, struct cat_fork *forkp) argument
4441 cat_update_dirlink(struct hfsmount *hfsmp, u_int8_t forktype, struct cat_desc *descp, struct cat_attr *attrp, struct cat_fork *forkp) argument
[all...]
H A Dhfs_btreeio.c54 static int btree_journal_modify_block_end(struct hfsmount *hfsmp, struct buf *bp);
191 struct hfsmount *hfsmp = VTOHFS(vp); local
194 if (hfsmp->jnl == NULL) {
204 journal_modify_block_start(hfsmp->jnl, bp);
211 // struct hfsmount *hfsmp = (struct hfsmount *)arg;
235 btree_journal_modify_block_end(struct hfsmount *hfsmp, struct buf *bp) argument
237 return journal_modify_block_end(hfsmp->jnl, bp, btree_swap_node, hfsmp);
243 struct hfsmount *hfsmp = VTOHFS(vp); local
257 if (hfsmp
554 struct hfsmount *hfsmp = VTOHFS(vp); local
612 hfs_create_attr_btree(struct hfsmount *hfsmp, u_int32_t nodesize, u_int32_t nodecnt) argument
[all...]
H A Dhfs_vnops.c85 int hfs_metasync(struct hfsmount *hfsmp, daddr64_t node, __unused struct proc *p);
86 int hfs_metasync_all(struct hfsmount *hfsmp);
94 int hfs_removefile_callback(struct buf *bp, void *hfsmp);
152 hfs_is_journal_file(struct hfsmount *hfsmp, struct cnode *cp) argument
154 if (hfsmp->jnl != NULL &&
155 (cp->c_fileid == hfsmp->hfs_jnlinfoblkid ||
156 cp->c_fileid == hfsmp->hfs_jnlfileid)) {
367 * if the caller has passed a valid vnode (has a ref count > 0), then hfsmp and fid are not required.
368 * if the caller doesn't have a vnode, pass NULL in vp, and pass valid hfsmp and fid.
374 hfs_uncompressed_size_of_compressed_file(struct hfsmount *hfsmp, struc argument
460 struct hfsmount *hfsmp = VTOHFS(vp); local
584 struct hfsmount *hfsmp; local
684 struct hfsmount *hfsmp; local
1117 struct hfsmount *hfsmp; local
1614 struct hfsmount *hfsmp; local
1992 struct hfsmount *hfsmp = NULL; local
2262 struct hfsmount *hfsmp = VTOHFS(vp); local
2469 hfs_metasync(struct hfsmount *hfsmp, daddr64_t node, __unused struct proc *p) argument
2515 hfs_metasync_all(struct hfsmount *hfsmp) argument
2638 struct hfsmount * hfsmp; local
2974 hfs_removefile_callback(struct buf *bp, void *hfsmp) argument
3014 struct hfsmount *hfsmp; local
3622 struct hfsmount *hfsmp; local
4315 struct hfsmount *hfsmp; local
4504 struct hfsmount *hfsmp; local
4930 struct hfsmount *hfsmp; local
5072 struct hfsmount *hfsmp; local
5455 hfs_vgetrsrc(struct hfsmount *hfsmp, struct vnode *vp, struct vnode **rvpp, int can_drop_lock, int error_on_unlinked) argument
5887 struct hfsmount *hfsmp; local
[all...]
H A Dhfs_readwrite.c117 struct hfsmount *hfsmp; local
177 hfsmp = VTOHFS(vp);
203 filebytes = (off_t)fp->ff_blocks * (off_t)hfsmp->blockSize;
205 if ((hfsmp->hfs_flags & HFS_STANDARD) &&
225 if (hfsmp->hfc_stage == HFC_RECORDING && retval == 0) {
240 if (cp->c_atime < hfsmp->hfc_timebase) {
275 struct hfsmount *hfsmp; local
340 hfsmp = VTOHFS(vp);
355 if ((hfsmp->hfs_flags & HFS_HAS_SPARSE_DEVICE) &&
356 (hfs_freeblks(hfsmp,
1050 do_attr_lookup(struct hfsmount *hfsmp, struct access_cache *cache, cnid_t cnid, struct cnode *skip_cp, CatalogKey *keyp, struct cat_attr *cnattrp) argument
1098 do_access_check(struct hfsmount *hfsmp, int *err, struct access_cache *cache, HFSCatalogNodeID nodeID, struct cnode *skip_cp, struct proc *theProcPtr, kauth_cred_t myp_ucred, struct vfs_context *my_context, char *bitmap, uint32_t map_size, cnid_t* parents, uint32_t num_parents) argument
1249 do_bulk_access_check(struct hfsmount *hfsmp, struct vnode *vp, struct vnop_ioctl_args *ap, int arg_size, vfs_context_t context) argument
1574 struct hfsmount *hfsmp = VTOHFS(vp); local
2388 struct hfsmount *hfsmp = VTOHFS(vp); local
2510 struct hfsmount *hfsmp; local
2850 struct hfsmount *hfsmp; local
3154 hfs_prepare_release_storage(struct hfsmount *hfsmp, struct vnode *vp) argument
3235 hfs_release_storage(struct hfsmount *hfsmp, struct filefork *datafork, struct filefork *rsrcfork, u_int32_t fileid) argument
3454 struct hfsmount *hfsmp; local
4378 struct hfsmount *hfsmp; local
[all...]
H A Dhfs.h461 #define HFS_UPDATE_NEXT_ALLOCATION(hfsmp, new_nextAllocation) \
463 if ((hfsmp->hfs_flags & HFS_SKIP_UPDATE_NEXT_ALLOCATION) == 0)\
464 hfsmp->nextAllocation = new_nextAllocation; \
467 #define HFS_MOUNT_LOCK(hfsmp, metadata) \
470 lck_mtx_lock(&(hfsmp)->hfs_mutex); \
473 #define HFS_MOUNT_UNLOCK(hfsmp, metadata) \
476 lck_mtx_unlock(&(hfsmp)->hfs_mutex); \
484 #define INC_FOLDERCOUNT(hfsmp, cattr) \
485 if ((hfsmp->hfs_flags & HFS_FOLDERCOUNT) && \
490 #define DEC_FOLDERCOUNT(hfsmp, catt
[all...]
H A Dhfs_cprotect.c54 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); local
149 if (hfsmp->hfs_running_cp_major_vers == 0) {
155 error = cp_getxattr(cp, hfsmp, &entry);
168 sub_error = cp_entry_create_keys (&entry, NULL, hfsmp, PROTECTION_CLASS_D, cp->c_fileid, cp->c_mode);
172 sub_error = cp_setxattr (cp, entry, hfsmp, cp->c_fileid, XATTR_CREATE);
213 cp_entry_create_keys(struct cprotect **entry_ptr, struct cnode *dcp, struct hfsmount *hfsmp, argument
312 cp_entry_gentempkeys(struct cprotect **entry_ptr, struct hfsmount *hfsmp) argument
404 struct hfsmount *hfsmp = NULL; local
480 struct hfsmount *hfsmp = NULL; local
581 struct hfsmount *hfsmp = NULL; local
685 struct hfsmount *hfsmp = NULL; local
868 cp_handle_relocate(struct cnode *cp, struct hfsmount *hfsmp) argument
916 cp_getrootxattr(struct hfsmount* hfsmp, struct cp_root_xattr *outxattr) argument
965 cp_setrootxattr(struct hfsmount *hfsmp, struct cp_root_xattr *newxattr) argument
994 cp_setxattr(struct cnode *cp, struct cprotect *entry, struct hfsmount *hfsmp, uint32_t fileid, int options) argument
1122 struct hfsmount *hfsmp = NULL; local
1154 struct hfsmount *hfsmp = NULL; local
1219 cp_getxattr(struct cnode *cp, struct hfsmount *hfsmp, struct cprotect **outentry) argument
1392 cp_make_keys(struct cprotect **entry_arg, struct hfsmount *hfsmp, cnid_t fileid, int default_pclass) argument
1453 cp_restore_keys(struct cprotect *entry, struct hfsmount *hfsmp) argument
1643 cp_wrap(int class, struct hfsmount *hfsmp, cnid_t fileid, struct cprotect **entry_ptr) argument
[all...]
H A Dhfs_cnode.c63 extern int hfs_removefile_callback(struct buf *bp, void *hfsmp);
184 struct hfsmount *hfsmp = VTOHFS(vp); local
317 if (hfs_start_transaction(hfsmp) != 0) {
348 if (hfsmp->jnl && vnode_islnk(vp)) {
349 buf_iterate(vp, hfs_removefile_callback, BUF_SKIP_NONLOCKED, (void *)hfsmp);
397 lookup_rsrc->lookup_desc.cd_parentcnid = hfsmp->hfs_private_desc[FILE_HARDLINKS].cd_cnid;
406 lockflags = hfs_systemfile_lock (hfsmp, SFL_CATALOG, HFS_SHARED_LOCK);
408 error = cat_lookup (hfsmp, desc_ptr, 1, (struct cat_desc *) NULL,
411 hfs_systemfile_unlock (hfsmp, lockflags);
430 error = hfs_release_storage (hfsmp, NUL
641 struct hfsmount *hfsmp = VTOHFS(vp); local
733 struct hfsmount *hfsmp; local
841 struct hfsmount *hfsmp = VTOHFS(vp); local
957 hfs_getnewvnode( struct hfsmount *hfsmp, struct vnode *dvp, struct componentname *cnp, struct cat_desc *descp, int flags, struct cat_attr *attrp, struct cat_fork *forkp, struct vnode **vpp, int *out_flags) argument
1455 hfs_valid_cnode(struct hfsmount *hfsmp, struct vnode *dvp, struct componentname *cnp, cnid_t cnid, struct cat_attr *cattr, int *error) argument
1646 hfs_touchtimes(struct hfsmount *hfsmp, struct cnode* cp) argument
1786 struct hfsmount *hfsmp = VTOHFS(vp); local
[all...]
H A Dhfs_xattr.c90 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; local
347 hfsmp = VTOHFS(vp);
352 result = hfs_vgetrsrc(hfsmp, vp, &rvp, TRUE, FALSE);
400 hfsmp
440 hfs_getxattr_internal(struct cnode *cp, struct vnop_getxattr_args *ap, struct hfsmount *hfsmp, u_int32_t fileid) argument
662 struct hfsmount *hfsmp; local
939 hfs_setxattr_internal(struct cnode *cp, caddr_t data_ptr, size_t attrsize, struct vnop_setxattr_args *ap, struct hfsmount *hfsmp, u_int32_t fileid) argument
1261 struct hfsmount *hfsmp; local
1493 file_attribute_exist(struct hfsmount *hfsmp, uint32_t fileID) argument
1553 remove_attribute_records(struct hfsmount *hfsmp, BTreeIterator * iterator) argument
1644 struct hfsmount *hfsmp; local
1873 hfs_removeallattr(struct hfsmount *hfsmp, u_int32_t fileid) argument
1931 hfs_xattr_init(struct hfsmount * hfsmp) argument
1952 hfs_set_volxattr(struct hfsmount *hfsmp, unsigned int xattrtype, int state) argument
2154 getnodecount(struct hfsmount *hfsmp, size_t nodesize) argument
2221 init_attrdata_vnode(struct hfsmount *hfsmp) argument
2278 read_attr_data(struct hfsmount *hfsmp, uio_t uio, size_t datasize, HFSPlusExtentDescriptor *extents) argument
2327 write_attr_data(struct hfsmount *hfsmp, uio_t uio, size_t datasize, HFSPlusExtentDescriptor *extents) argument
2377 alloc_attr_blks(struct hfsmount *hfsmp, size_t attrsize, size_t extentbufsize, HFSPlusExtentDescriptor *extents, int *blocks) argument
2437 free_attr_blks(struct hfsmount *hfsmp, int blkcnt, HFSPlusExtentDescriptor *extents) argument
[all...]
H A Dhfs_lookup.c158 struct hfsmount *hfsmp; local
173 hfsmp = VTOHFS(dvp);
221 lockflags = hfs_systemfile_lock(hfsmp, SFL_CATALOG, HFS_SHARED_LOCK);
223 retval = cat_lookup(hfsmp, &cndesc, 0, &desc, &attr, &fork, NULL);
225 hfs_systemfile_unlock(hfsmp, lockflags);
237 if (desc.cd_cnid == hfsmp->hfs_private_desc[FILE_HARDLINKS].cd_cnid ||
238 desc.cd_cnid == hfsmp->hfs_private_desc[DIR_HARDLINKS].cd_cnid) {
280 if ((hfsmp->hfs_flags & HFS_STANDARD) == 0 &&
315 if ((retval = hfs_vget(hfsmp, hfs_currentparent(VTOC(dvp)), &tvp, 0, 0))) {
335 retval = hfs_getnewvnode(hfsmp, dv
447 struct hfsmount *hfsmp; local
[all...]
H A Dhfs_cnode.h300 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,
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 *hfsmp, struct cnode *cp);
353 extern struct vnode * hfs_chash_getvnode(struct hfsmount *hfsmp, ino_
[all...]
H A Dhfs_quota.c106 struct hfsmount *hfsmp; local
112 hfsmp = VTOHFS(vp);
118 error = dqget(cp->c_uid, &hfsmp->hfs_qfiles[USRQUOTA], USRQUOTA, &cp->c_dquot[USRQUOTA]);
131 error = dqget(cp->c_gid, &hfsmp->hfs_qfiles[GRPQUOTA], GRPQUOTA, &cp->c_dquot[GRPQUOTA]);
367 int hfs_isiqchg_allowed(dq, hfsmp, change, cred, type, uid)
369 struct hfsmount* hfsmp;
401 dq->dq_itime = tv.tv_sec + hfsmp->hfs_qfiles[type].qf_itime;
505 struct hfsmount *hfsmp = VTOHFS(vp); local
509 if (hfsmp->hfs_qfiles[i].qf_vp == NULLVP)
551 struct hfsmount *hfsmp local
656 struct hfsmount *hfsmp = VFSTOHFS(mp); local
816 struct hfsmount *hfsmp = VFSTOHFS(mp); local
877 struct hfsmount *hfsmp = VFSTOHFS(mp); local
941 struct hfsmount *hfsmp = VFSTOHFS(mp); local
987 struct hfsmount *hfsmp = VFSTOHFS(mp); local
[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,
100 struct hfsmount * hfsmp; local
161 hfsmp = VTOHFS(dvp);
225 lockflags = hfs_systemfile_lock(hfsmp, SFL_CATALOG, HFS_SHARED_LOCK);
227 error = cat_getentriesattr(hfsmp, dirhint, ce_list);
230 hfs_systemfile_unlock(hfsmp, lockflags);
272 if (hfs_vget(hfsmp, cattrp->ca_fileid, &vp, 0, 0) != 0) {
277 vp = hfs_chash_getvnode(hfsmp, cattr
423 hfs_packattrblk(struct attrblock *abp, struct hfsmount *hfsmp, struct vnode *vp, struct cat_desc *descp, struct cat_attr *attrp, struct cat_fork *datafork, struct cat_fork *rsrcfork, struct vfs_context *ctx) argument
532 packcommonattr( struct attrblock *abp, struct hfsmount *hfsmp, struct vnode *vp, struct cat_desc * cdp, struct cat_attr * cap, struct vfs_context * ctx) argument
776 packdirattr( struct attrblock *abp, struct hfsmount *hfsmp, struct vnode *vp, struct cat_desc * descp, struct cat_attr * cattrp) argument
824 packfileattr( struct attrblock *abp, struct hfsmount *hfsmp, struct cat_attr *cattrp, struct cat_fork *datafork, struct cat_fork *rsrcfork, struct vnode *vp) argument
[all...]
H A Dhfs_search.c106 static void ResolveHardlink(struct hfsmount *hfsmp, HFSPlusCatalogFile *recp);
109 static int UnpackSearchAttributeBlock(struct hfsmount *hfsmp, struct attrlist *alist,
122 static int InsertMatch(struct hfsmount *hfsmp, uio_t a_uio, CatalogRecord *rec,
180 struct hfsmount *hfsmp; local
252 hfsmp = VTOHFS(ap->a_vp);
262 err = UnpackSearchAttributeBlock(hfsmp, ap->a_searchattrs,
265 err = UnpackSearchAttributeBlock(hfsmp, ap->a_searchattrs,
294 if (hfsmp->jnl && uio_isuserspace(ap->a_uio)) {
304 lockflags = hfs_systemfile_lock(hfsmp, SFL_CATALOG, HFS_SHARED_LOCK);
315 if (hfsmp
439 ResolveHardlink(struct hfsmount *hfsmp, HFSPlusCatalogFile *recp) argument
552 hfsmount_t * hfsmp; local
1018 InsertMatch(struct hfsmount *hfsmp, uio_t a_uio, CatalogRecord *rec, CatalogKey *key, struct attrlist *returnAttrList, void *attributesBuffer, void *variableBuffer, uint32_t * nummatches) argument
1092 UnpackSearchAttributeBlock( struct hfsmount *hfsmp, struct attrlist *alist, searchinfospec_t *searchInfo, void *attributeBuffer, int firstblock) argument
[all...]
H A Dhfs_btreeio.h53 int hfs_create_attr_btree(struct hfsmount *hfsmp, u_int32_t nodesize, u_int32_t nodecnt);
/darwin-on-arm/xnu/bsd/hfs/hfscommon/Misc/
H A DVolumeAllocation.c365 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 *hfsmp, u_int32_
446 trim_validate_bitmap(struct hfsmount *hfsmp) argument
504 hfs_unmap_free_extent(struct hfsmount *hfsmp, u_int32_t startingBlock, u_int32_t numBlocks) argument
572 hfs_track_unmap_blocks(struct hfsmount *hfsmp, u_int32_t start, u_int32_t numBlocks, struct jnl_trim_list *list) argument
609 hfs_issue_unmap(struct hfsmount *hfsmp, struct jnl_trim_list *list) argument
645 hfs_unmap_alloc_extent(struct hfsmount *hfsmp, u_int32_t startingBlock, u_int32_t numBlocks) argument
702 struct hfsmount *hfsmp = arg; local
734 UnmapBlocks(struct hfsmount *hfsmp) argument
829 struct hfsmount *hfsmp; local
1127 struct hfsmount *hfsmp; local
1306 struct hfsmount *hfsmp = VCBTOHFS(vcb); local
1421 struct hfsmount *hfsmp = VCBTOHFS(vcb); local
1584 struct hfsmount *hfsmp = VCBTOHFS(vcb); local
1885 struct hfsmount *hfsmp = VCBTOHFS(vcb); local
2196 struct hfsmount *hfsmp; local
2271 struct hfsmount *hfsmp = VCBTOHFS(vcb); local
2430 struct hfsmount *hfsmp = VCBTOHFS(vcb); local
2525 struct hfsmount *hfsmp; local
2587 struct hfsmount *hfsmp = VCBTOHFS(vcb); local
2690 struct hfsmount *hfsmp = VCBTOHFS(vcb); local
2916 struct hfsmount *hfsmp = VCBTOHFS(vcb); local
3369 check_rbtree_extents(struct hfsmount *hfsmp, u_int32_t startBlocks, u_int32_t numBlocks, int shouldBeFree) argument
3421 hfs_validate_rbtree(struct hfsmount *hfsmp, u_int32_t start, u_int32_t end) argument
3449 hfs_checktreelinks(struct hfsmount *hfsmp) argument
3487 hfs_isrbtree_allocated(struct hfsmount *hfsmp, u_int32_t startBlock, u_int32_t numBlocks, extent_node_t **ret_node) argument
3582 hfs_isallocated_internal(struct hfsmount *hfsmp, u_int32_t startingBlock, u_int32_t numBlocks, Boolean stop_on_first, u_int32_t *allocCount) argument
3729 hfs_count_allocated(struct hfsmount *hfsmp, u_int32_t startBlock, u_int32_t numBlocks, u_int32_t *allocCount) argument
3752 hfs_isallocated(struct hfsmount *hfsmp, u_int32_t startingBlock, u_int32_t numBlocks) argument
3780 hfs_isrbtree_active(struct hfsmount *hfsmp) argument
3823 hfs_alloc_scan_block(struct hfsmount *hfsmp, u_int32_t startbit, u_int32_t endBit, u_int32_t *bitToScan, struct jnl_trim_list *list) argument
3933 hfs_isallocated_scan(struct hfsmount *hfsmp, u_int32_t startingBlock, u_int32_t *bp_buf) argument
4010 InitTree(struct hfsmount *hfsmp) argument
4036 GenerateTree(struct hfsmount *hfsmp, u_int32_t endBlock, int *flags, int initialscan) argument
4115 DestroyTrees(struct hfsmount *hfsmp) argument
4154 ResetVCBFreeExtCache(struct hfsmount *hfsmp) argument
4200 UpdateAllocLimit(struct hfsmount *hfsmp, u_int32_t new_end_block) argument
4368 remove_free_extent_list(struct hfsmount *hfsmp, int index) argument
4404 add_free_extent_list(struct hfsmount *hfsmp, u_int32_t startBlock, u_int32_t blockCount) argument
4480 remove_free_extent_cache(struct hfsmount *hfsmp, u_int32_t startBlock, u_int32_t blockCount) argument
4607 add_free_extent_cache(struct hfsmount *hfsmp, u_int32_t startBlock, u_int32_t blockCount) argument
4686 sanity_check_free_ext(struct hfsmount *hfsmp, int check_allocated) argument
[all...]
/darwin-on-arm/xnu/bsd/sys/
H A Dcprotect.h175 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/BTree/
H A DBTreeNodeReserve.c156 struct hfsmount *hfsmp; local
159 hfsmp = VTOVCB(btree->fileRefNum);
160 rsrvblks = ((u_int64_t)hfsmp->allocLimit * 5) / 100;
161 rsrvblks = MIN(rsrvblks, HFS_MAXRESERVE / hfsmp->blockSize);
162 freeblks = hfs_freeblks(hfsmp, 0);
172 reqblks = clumpsize / hfsmp->blockSize;
175 reqblks = ((rsrvNodes - availNodes) * btree->nodeSize) / hfsmp->blockSize;
180 file->ff_clumpsize = freeblks * hfsmp->blockSize;
/darwin-on-arm/xnu/bsd/hfs/hfscommon/headers/
H A DFileMgrInternal.h237 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);

Completed in 87 milliseconds

12