]>
git.saurik.com Git - apple/hfs.git/blob - livefiles_hfs_plugin/lf_hfs_link.h
1 /* Copyright © 2017-2018 Apple Inc. All rights reserved.
6 * Created by Or Haimovich on 17/05/2018.
12 #include "lf_hfs_catalog.h"
13 #include "lf_hfs_cnode.h"
16 void hfs_relorigin(struct cnode
*cp
, cnid_t parentcnid
);
17 void hfs_savelinkorigin(cnode_t
*cp
, cnid_t parentcnid
);
18 void hfs_privatedir_init(struct hfsmount
* hfsmp
, enum privdirtype type
);
19 int hfs_lookup_lastlink (struct hfsmount
*hfsmp
, cnid_t linkfileid
, cnid_t
*lastid
, struct cat_desc
*cdesc
);
20 int hfs_unlink(struct hfsmount
*hfsmp
, struct vnode
*dvp
, struct vnode
*vp
, struct componentname
*cnp
, int skip_reserve
);
21 void hfs_relorigins(struct cnode
*cp
);
22 int hfs_makelink(struct hfsmount
*hfsmp
, struct vnode
*src_vp
, struct cnode
*cp
,struct cnode
*dcp
, struct componentname
*cnp
);
23 cnid_t
hfs_currentparent(cnode_t
*cp
, bool have_lock
);
24 #endif /* lf_hfs_link_h */