-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathsnapshot_utils.h
22 lines (20 loc) · 1.15 KB
/
snapshot_utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#import <sys/snapshot.h>
#import <sys/mount.h>
int list_snapshots(const char *vol);
char *find_system_snapshot(void);
int do_rename(const char *vol, const char *snap, const char *nw);
char *copyBootHash(void);
int snapshot_check(const char *vol, const char *name);
int mountSnapshot(const char *vol, const char *name, const char *dir);
struct hfs_mount_args {
char *fspec; /* block special device to mount */
uid_t hfs_uid; /* uid that owns hfs files (standard HFS only) */
gid_t hfs_gid; /* gid that owns hfs files (standard HFS only) */
mode_t hfs_mask; /* mask to be applied for hfs perms (standard HFS only) */
u_int32_t hfs_encoding; /* encoding for this volume (standard HFS only) */
struct timezone hfs_timezone; /* user time zone info (standard HFS only) */
int flags; /* mounting flags, see below */
int journal_tbuffer_size; /* size in bytes of the journal transaction buffer */
int journal_flags; /* flags to pass to journal_open/create */
int journal_disable; /* don't use journaling (potentially dangerous) */
};