xorriso  1.5.4.pl02
About: GNU xorriso creates, loads, manipulates and writes ISO 9660 filesystem images with Rock Ridge extensions. It is suitable for incremental data backup and for production of bootable ISO 9660 images. GNU xorriso is a statical compilation of the libraries libburn, libisofs, libisoburn, and libjte.
  Fossies Dox: xorriso-1.5.4.pl02.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

disk_ops.h
Go to the documentation of this file.
1 
2 /* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images.
3 
4  Copyright 2007-2019 Thomas Schmitt, <scdbackup@gmx.net>
5 
6  Provided under GPL version 2 or later.
7 
8  This file contains declarations of class DirseQ which
9  crawls along a directory's content list.
10 */
11 
12 
13 #ifndef Xorriso_pvt_diskop_includeD
14 #define Xorriso_pvt_diskop_includeD yes
15 
16 
17 /* @param flag bit0= simple readlink(): no normalization, no multi-hop
18 */
19 int Xorriso_resolve_link(struct XorrisO *xorriso,
20  char *link_path, char result_path[SfileadrL], int flag);
21 
22 int Xorriso_convert_gidstring(struct XorrisO *xorriso, char *gid_string,
23  gid_t *gid, int flag);
24 
25 int Xorriso_convert_modstring(struct XorrisO *xorriso, char *cmd, char *mode,
26  mode_t *mode_and, mode_t *mode_or, int flag);
27 
28 int Xorriso_convert_uidstring(struct XorrisO *xorriso, char *uid_string,
29  uid_t *uid, int flag);
30 
31 /* @param flag bit0= for Xorriso_msgs_submit: use pager
32 */
33 int Xorriso_hop_link(struct XorrisO *xorriso, char *link_path,
34  struct LinkiteM **link_stack, struct stat *stbuf, int flag);
35 
36 int Xorriso__mode_to_perms(mode_t st_mode, char perms[11], int flag);
37 
38 int Xorriso_format_ls_l(struct XorrisO *xorriso, struct stat *stbuf, int flag);
39 
40 /* @param flag bit0= long format
41  bit1= do not print count of nodes
42  bit2= du format
43  bit3= print directories as themselves (ls -d)
44 */
45 int Xorriso_lsx_filev(struct XorrisO *xorriso, char *wd,
46  int filec, char **filev, off_t boss_mem, int flag);
47 
48 /* @param flag bit0= do not only sum up sizes but also print subdirs
49  bit1= this is a recursion
50  bit2= do not report result by Xorriso_result()
51  @return <=0 error , 1 ok , 2 could not open directory
52 */
53 int Xorriso_show_dux_subs(struct XorrisO *xorriso,
54  char *abs_path, char *rel_path, off_t *size,
55  off_t boss_mem,
56  struct LinkiteM *link_stack,
57  int flag);
58 
59 /*
60  @param flag >>> bit0= remove whole sub tree: rm -r
61  bit1= remove empty directory: rmdir
62  bit2= recursion: do not reassure in mode 2 "tree"
63  bit3= this is for overwriting and not for plain removal
64  bit4= count deleted files in xorriso->pacifier_count
65  bit5= with bit0 only remove directory content, not the directory
66  @return <=0 = error
67  1 = removed leaf file object
68  2 = removed directory or tree
69  3 = did not remove on user revocation
70 */
71 int Xorriso_rmx(struct XorrisO *xorriso, off_t boss_mem, char *path, int flag);
72 
73 int Xorriso_findx(struct XorrisO *xorriso, struct FindjoB *job,
74  char *abs_dir_parm, char *dir_path,
75  struct stat *dir_stbuf, int depth,
76  struct LinkiteM *link_stack, int flag);
77 
78 /* @param flag bit0= no hardlink reconstruction
79  bit1= do not set xorriso->node_*_prefixes
80  bit5= -extract_single: eventually do not insert directory tree
81 */
82 int Xorriso_restore_sorted(struct XorrisO *xorriso, int count,
83  char **src_array, char **tgt_array,
84  int *problem_count, int flag);
85 
86 /* @param flag bit0= path is a directory
87  bit2= recursion: do not reassure in mode 2 "tree"
88  bit3= this is for overwriting and not for plain removal
89 */
90 int Xorriso_reassure_restore(struct XorrisO *xorriso, char *path, int flag);
91 
92 /* @param flag bit7= return 4 if restore fails from denied permission
93  do not issue error message
94  @return <=0 failure , 1 success ,
95  4 with bit7: permission to create file was denied
96 */
97 int Xorriso_make_tmp_path(struct XorrisO *xorriso, char *orig_path,
98  char *tmp_path, int *fd, int flag);
99 
100 /* @param flag bit0= change regardless of xorriso->do_auto_chmod
101  bit1= desired is only rx
102 */
103 int Xorriso_auto_chmod(struct XorrisO *xorriso, char *disk_path, int flag);
104 
105 int Xorriso_make_accessible(struct XorrisO *xorriso, char *disk_path,int flag);
106 
107 /* @param flag bit0= prefer to find a match after *img_prefixes
108  (but deliver img_prefixes if no other can be found)
109 */
110 int Xorriso_make_restore_path(struct XorrisO *xorriso,
111  struct Xorriso_lsT **img_prefixes, struct Xorriso_lsT **disk_prefixes,
112  char img_path[SfileadrL], char disk_path[SfileadrL], int flag);
113 
114 int Xorriso_restore_make_hl(struct XorrisO *xorriso,
115  char *old_path, char *new_path, int flag);
116 
117 int Xorriso_afile_fopen(struct XorrisO *xorriso,
118  char *filename, char *mode, FILE **ret_fp, int flag);
119 
120 int Xorriso_make_mount_cmd(struct XorrisO *xorriso, char *cmd,
121  int lba, int track, int session, char *volid,
122  char *devadr, char result[SfileadrL], int flag);
123 
124 int Xorriso_append_scdbackup_record(struct XorrisO *xorriso, int flag);
125 
126 int Xorriso_concat(struct XorrisO *xorriso, char *mode, char *target,
127  int progc, char **progv,
128  int filec, char **filev, int flag);
129 
130 #endif /* ! Xorriso_pvt_diskop_includeD */
131 
int Xorriso_auto_chmod(struct XorrisO *xorriso, char *disk_path, int flag)
Definition: disk_ops.c:1609
int Xorriso__mode_to_perms(mode_t st_mode, char perms[11], int flag)
Definition: disk_ops.c:602
int Xorriso_afile_fopen(struct XorrisO *xorriso, char *filename, char *mode, FILE **ret_fp, int flag)
Definition: disk_ops.c:1780
int Xorriso_reassure_restore(struct XorrisO *xorriso, char *path, int flag)
Definition: disk_ops.c:1518
int Xorriso_concat(struct XorrisO *xorriso, char *mode, char *target, int progc, char **progv, int filec, char **filev, int flag)
Definition: disk_ops.c:2074
int Xorriso_format_ls_l(struct XorrisO *xorriso, struct stat *stbuf, int flag)
Definition: disk_ops.c:661
int Xorriso_append_scdbackup_record(struct XorrisO *xorriso, int flag)
Definition: disk_ops.c:1964
int Xorriso_make_tmp_path(struct XorrisO *xorriso, char *orig_path, char *tmp_path, int *fd, int flag)
Definition: disk_ops.c:1578
int Xorriso_lsx_filev(struct XorrisO *xorriso, char *wd, int filec, char **filev, off_t boss_mem, int flag)
Definition: disk_ops.c:809
int Xorriso_make_mount_cmd(struct XorrisO *xorriso, char *cmd, int lba, int track, int session, char *volid, char *devadr, char result[SfileadrL], int flag)
int Xorriso_make_accessible(struct XorrisO *xorriso, char *disk_path, int flag)
Definition: disk_ops.c:1666
int Xorriso_convert_uidstring(struct XorrisO *xorriso, char *uid_string, uid_t *uid, int flag)
Definition: disk_ops.c:154
int Xorriso_make_restore_path(struct XorrisO *xorriso, struct Xorriso_lsT **img_prefixes, struct Xorriso_lsT **disk_prefixes, char img_path[SfileadrL], char disk_path[SfileadrL], int flag)
int Xorriso_convert_modstring(struct XorrisO *xorriso, char *cmd, char *mode, mode_t *mode_and, mode_t *mode_or, int flag)
Definition: disk_ops.c:202
int Xorriso_restore_sorted(struct XorrisO *xorriso, int count, char **src_array, char **tgt_array, int *problem_count, int flag)
Definition: disk_ops.c:1427
int Xorriso_hop_link(struct XorrisO *xorriso, char *link_path, struct LinkiteM **link_stack, struct stat *stbuf, int flag)
Definition: disk_ops.c:304
int Xorriso_restore_make_hl(struct XorrisO *xorriso, char *old_path, char *new_path, int flag)
Definition: disk_ops.c:1749
int Xorriso_show_dux_subs(struct XorrisO *xorriso, char *abs_path, char *rel_path, off_t *size, off_t boss_mem, struct LinkiteM *link_stack, int flag)
Definition: disk_ops.c:349
int Xorriso_findx(struct XorrisO *xorriso, struct FindjoB *job, char *abs_dir_parm, char *dir_path, struct stat *dir_stbuf, int depth, struct LinkiteM *link_stack, int flag)
Definition: disk_ops.c:1268
int Xorriso_resolve_link(struct XorrisO *xorriso, char *link_path, char result_path[SfileadrL], int flag)
int Xorriso_convert_gidstring(struct XorrisO *xorriso, char *gid_string, gid_t *gid, int flag)
Definition: disk_ops.c:178
int Xorriso_rmx(struct XorrisO *xorriso, off_t boss_mem, char *path, int flag)
Definition: disk_ops.c:954
#define SfileadrL