]> git.saurik.com Git - apple/hfs.git/blob - livefiles_hfs_plugin/lf_hfs_readwrite_ops.h
hfs-522.0.9.tar.gz
[apple/hfs.git] / livefiles_hfs_plugin / lf_hfs_readwrite_ops.h
1 //
2 // lf_hfs_readwrite_ops.h
3 // livefiles_hfs
4 //
5 // Created by Yakov Ben Zaken on 22/03/2018.
6 //
7
8 #ifndef lf_hfs_readwrite_ops_h
9 #define lf_hfs_readwrite_ops_h
10
11 #include <stdio.h>
12 #include "lf_hfs.h"
13
14 struct vnop_blockmap_args {
15 struct vnodeop_desc *a_desc;
16 vnode_t a_vp;
17 off_t a_foffset;
18 size_t a_size;
19 daddr64_t *a_bpn;
20 size_t *a_run;
21 void *a_poff;
22 int a_flags;
23 };
24
25 #define HFS_TRUNCATE_SKIPTIMES 0x00000002 /* implied by skipupdate; it is a subset */
26
27 int hfs_vnop_blockmap(struct vnop_blockmap_args *ap);
28 int hfs_prepare_release_storage (struct hfsmount *hfsmp, struct vnode *vp);
29 int hfs_release_storage (struct hfsmount *hfsmp, struct filefork *datafork, struct filefork *rsrcfork, u_int32_t fileid);
30 int hfs_truncate(struct vnode *vp, off_t length, int flags, int truncateflags);
31
32 #endif /* lf_hfs_readwrite_ops_h */