Lines Matching refs:hfsmp

461 #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, cattr) \
491 if ((hfsmp->hfs_flags & HFS_FOLDERCOUNT) && \
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 *hfsmp, unsigned int xattrtype, int state);
708 extern int hfs_isallocated(struct hfsmount *hfsmp, u_int32_t startingBlock, u_int32_t numBlocks);
710 extern int hfs_count_allocated(struct hfsmount *hfsmp, u_int32_t startBlock,
713 extern int hfs_isrbtree_active (struct hfsmount *hfsmp);
726 extern void hfs_setencodingbits(struct hfsmount *hfsmp, u_int32_t encoding);
729 extern int hfs_volupdate(struct hfsmount *hfsmp, enum volop op, int inroot);
731 int hfs_flushvolumeheader(struct hfsmount *hfsmp, int waitfor, int altflush);
741 void hfs_mark_volume_inconsistent(struct hfsmount *hfsmp);
750 OSErr hfs_MountHFSVolume(struct hfsmount *hfsmp, HFSMasterDirectoryBlock *mdb,
752 OSErr hfs_MountHFSPlusVolume(struct hfsmount *hfsmp, HFSPlusVolumeHeader *vhp,
755 extern int hfsUnmount(struct hfsmount *hfsmp, struct proc *p);
759 extern int hfs_owner_rights(struct hfsmount *hfsmp, uid_t cnode_uid, kauth_cred_t cred,
768 int hfs_lock_global (struct hfsmount *hfsmp, enum hfslocktype locktype);
769 void hfs_unlock_global (struct hfsmount *hfsmp);
790 extern u_int32_t hfs_freeblks(struct hfsmount * hfsmp, int wantreserve);
794 void hfs_metadatazone_init(struct hfsmount *hfsmp, int disable);
804 extern int hfs_early_journal_init(struct hfsmount *hfsmp, HFSPlusVolumeHeader *vhp,
810 extern int hfs_start_transaction(struct hfsmount *hfsmp);
811 extern int hfs_end_transaction(struct hfsmount *hfsmp);
812 extern int hfs_journal_flush(struct hfsmount *hfsmp, boolean_t wait_for_IO);
813 extern void hfs_sync_ejectable(struct hfsmount *hfsmp);
818 extern int hfs_erase_unused_nodes(struct hfsmount *hfsmp);
836 extern int hfs_vgetrsrc(struct hfsmount *hfsmp, struct vnode *vp,
856 void hfs_xattr_init(struct hfsmount * hfsmp);
857 int file_attribute_exist(struct hfsmount *hfsmp, uint32_t fileID);
858 int init_attrdata_vnode(struct hfsmount *hfsmp);
870 extern int hfs_unlink(struct hfsmount *hfsmp, struct vnode *dvp, struct vnode *vp,
872 extern int hfs_lookup_siblinglinks(struct hfsmount *hfsmp, cnid_t linkfileid,