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.c File Reference
#include <ctype.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <time.h>
#include <fcntl.h>
#include <errno.h>
#include <pwd.h>
#include <grp.h>
#include "xorriso.h"
#include "xorriso_private.h"
#include "xorrisoburn.h"
Include dependency graph for disk_ops.c:

Go to the source code of this file.

Data Structures

struct  DirentrY


#define O_BINARY   0


int Xorriso_resolve_link (struct XorrisO *xorriso, char *link_path, char result_path[4096], int flag)
int Xorriso_convert_uidstring (struct XorrisO *xorriso, char *uid_string, uid_t *uid, int flag)
int Xorriso_convert_gidstring (struct XorrisO *xorriso, char *gid_string, gid_t *gid, int flag)
int Xorriso_convert_modstring (struct XorrisO *xorriso, char *cmd, char *mode, mode_t *mode_and, mode_t *mode_or, int flag)
int Xorriso_hop_link (struct XorrisO *xorriso, char *link_path, struct LinkiteM **link_stack, struct stat *stbuf, int flag)
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)
int Xorriso__mode_to_perms (mode_t st_mode, char perms[11], int flag)
int Xorriso_format_ls_l (struct XorrisO *xorriso, struct stat *stbuf, int flag)
int Xorriso_sorted_dir_x (struct XorrisO *xorriso, char *dir_path, int *filec, char ***filev, off_t boss_mem, int flag)
int Xorriso_lsx_filev (struct XorrisO *xorriso, char *wd, int filec, char **filev, off_t boss_mem, int flag)
int Xorriso_rmx (struct XorrisO *xorriso, off_t boss_mem, char *path, int flag)
int Xorriso_findx_action (struct XorrisO *xorriso, struct FindjoB *job, char *abs_path, char *show_path, int depth, int flag)
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)
int Xorriso_restore_sorted (struct XorrisO *xorriso, int count, char **src_array, char **tgt_array, int *problem_count, int flag)
int Xorriso_reassure_restore (struct XorrisO *xorriso, char *path, int flag)
int Xorriso_make_tmp_path (struct XorrisO *xorriso, char *orig_path, char *tmp_path, int *fd, int flag)
int Xorriso_auto_chmod (struct XorrisO *xorriso, char *disk_path, int flag)
int Xorriso_make_accessible (struct XorrisO *xorriso, char *disk_path, int flag)
int Xorriso_make_restore_path (struct XorrisO *xorriso, struct Xorriso_lsT **img_prefixes, struct Xorriso_lsT **disk_prefixes, char img_path[4096], char disk_path[4096], int flag)
int Xorriso_restore_make_hl (struct XorrisO *xorriso, char *old_path, char *new_path, int flag)
int Xorriso_afile_fopen (struct XorrisO *xorriso, char *filename, char *mode, FILE **ret_fp, int flag)
int Xorriso_make_mount_cmd (struct XorrisO *xorriso, char *cmd, int lba, int track, int session, char *volid, char *devadr, char result[4096], int flag)
int Xorriso_append_scdbackup_record (struct XorrisO *xorriso, int flag)
int Xorriso_is_concat_target (struct XorrisO *xorriso, char *target, int *ftype, int *fd, int flag)
int Xorriso_concat (struct XorrisO *xorriso, char *mode, char *target, int progc, char **progv, int filec, char **filev, int flag)

Macro Definition Documentation


#define O_BINARY   0

Definition at line 32 of file disk_ops.c.

Function Documentation

◆ Xorriso__mode_to_perms()

int Xorriso__mode_to_perms ( mode_t  st_mode,
char  perms[11],
int  flag 

Definition at line 602 of file disk_ops.c.

Referenced by Xorriso_format_ls_l().

◆ Xorriso_afile_fopen()

◆ Xorriso_append_scdbackup_record()

int Xorriso_append_scdbackup_record ( struct XorrisO xorriso,
int  flag 

◆ Xorriso_auto_chmod()

◆ Xorriso_concat()

int Xorriso_concat ( struct XorrisO xorriso,
char *  mode,
char *  target,
int  progc,
char **  progv,
int  filec,
char **  filev,
int  flag 

◆ Xorriso_convert_gidstring()

int Xorriso_convert_gidstring ( struct XorrisO xorriso,
char *  gid_string,
gid_t *  gid,
int  flag 

◆ Xorriso_convert_modstring()

int Xorriso_convert_modstring ( struct XorrisO xorriso,
char *  cmd,
char *  mode,
mode_t *  mode_and,
mode_t *  mode_or,
int  flag 

◆ Xorriso_convert_uidstring()

int Xorriso_convert_uidstring ( struct XorrisO xorriso,
char *  uid_string,
uid_t *  uid,
int  flag 

◆ Xorriso_findx()

◆ Xorriso_findx_action()

◆ Xorriso_format_ls_l()

int Xorriso_format_ls_l ( struct XorrisO xorriso,
struct stat *  stbuf,
int  flag 

◆ Xorriso_hop_link()

int Xorriso_hop_link ( struct XorrisO xorriso,
char *  link_path,
struct LinkiteM **  link_stack,
struct stat *  stbuf,
int  flag 

◆ Xorriso_is_concat_target()

int Xorriso_is_concat_target ( struct XorrisO xorriso,
char *  target,
int *  ftype,
int *  fd,
int  flag 

◆ Xorriso_lsx_filev()

◆ Xorriso_make_accessible()

int Xorriso_make_accessible ( struct XorrisO xorriso,
char *  disk_path,
int  flag 

◆ Xorriso_make_mount_cmd()

int Xorriso_make_mount_cmd ( struct XorrisO xorriso,
char *  cmd,
int  lba,
int  track,
int  session,
char *  volid,
char *  devadr,
char  result[4096],
int  flag 

◆ Xorriso_make_restore_path()

int Xorriso_make_restore_path ( struct XorrisO xorriso,
struct Xorriso_lsT **  img_prefixes,
struct Xorriso_lsT **  disk_prefixes,
char  img_path[4096],
char  disk_path[4096],
int  flag 

◆ Xorriso_make_tmp_path()

int Xorriso_make_tmp_path ( struct XorrisO xorriso,
char *  orig_path,
char *  tmp_path,
int *  fd,
int  flag 

Definition at line 1578 of file disk_ops.c.

References XorrisO::info_text, Text_shellsafe(), and Xorriso_msgs_submit().

Referenced by Xorriso_tree_restore_node().

◆ Xorriso_reassure_restore()

◆ Xorriso_resolve_link()

◆ Xorriso_restore_make_hl()

int Xorriso_restore_make_hl ( struct XorrisO xorriso,
char *  old_path,
char *  new_path,
int  flag 

◆ Xorriso_restore_sorted()

int Xorriso_restore_sorted ( struct XorrisO xorriso,
int  count,
char **  src_array,
char **  tgt_array,
int *  problem_count,
int  flag 

◆ Xorriso_rmx()

◆ Xorriso_show_dux_subs()

◆ Xorriso_sorted_dir_x()

int Xorriso_sorted_dir_x ( struct XorrisO xorriso,
char *  dir_path,
int *  filec,
char ***  filev,
off_t  boss_mem,
int  flag