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)  

iso_tree.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 <errno.h>
#include <pwd.h>
#include <grp.h>
#include "xorriso.h"
#include "xorriso_private.h"
#include "xorrisoburn.h"
#include "lib_mgt.h"
#include "iso_img.h"
#include "iso_tree.h"
#include "iso_manip.h"
#include "sort_cmp.h"
Include dependency graph for iso_tree.c:

Go to the source code of this file.

Functions

int Xorriso_normalize_img_path (struct XorrisO *xorriso, char *wd, char *img_path, char eff_path[], int flag)
 
int Xorriso_get_node_by_path (struct XorrisO *xorriso, char *in_path, char *eff_path, IsoNode **node, int flag)
 
int Xorriso_node_get_dev (struct XorrisO *xorriso, IsoNode *node, char *path, dev_t *dev, int flag)
 
int Xorriso_fake_stbuf (struct XorrisO *xorriso, char *path, struct stat *stbuf, IsoNode **node, int flag)
 
int Xorriso_iso_lstat (struct XorrisO *xorriso, char *path, struct stat *stbuf, int flag)
 
int Xorriso_node_is_valid (struct XorrisO *xorriso, IsoNode *in_node, int flag)
 
int Xorriso_path_from_node (struct XorrisO *xorriso, IsoNode *in_node, char path[4096], int flag)
 
int Xorriso_path_from_lba (struct XorrisO *xorriso, IsoNode *node, int lba, char path[4096], int flag)
 
int Xorriso_identify_split (struct XorrisO *xorriso, char *iso_adr, void *in_node, struct SplitparT **parts, int *count, struct stat *total_stbuf, int flag)
 
int Xorriso_is_split (struct XorrisO *xorriso, char *path, void *node, int flag)
 
int Xorriso_getfacl (struct XorrisO *xorriso, void *in_node, char *path, char **acl_text, int flag)
 
int Xorriso_getfattr (struct XorrisO *xorriso, void *in_node, char *path, char **attr_text, int flag)
 
int Xorriso_append_extattr_comp (struct XorrisO *xorriso, char *comp, size_t comp_len, char *mode, int flag)
 
int Xorriso_list_extattr (struct XorrisO *xorriso, void *in_node, char *path, char *show_path, char *mode, int flag)
 
int Xorriso_local_getfacl (struct XorrisO *xorriso, char *disk_path, char **text, int flag)
 
int Xorriso_get_attrs (struct XorrisO *xorriso, void *in_node, char *path, size_t *num_attrs, char ***names, size_t **value_lengths, char ***values, int flag)
 
int Xorriso_get_attr_value (struct XorrisO *xorriso, void *in_node, char *path, char *name, size_t *value_length, char **value, int flag)
 
int Xorriso_stream_type (struct XorrisO *xorriso, IsoNode *node, IsoStream *stream, char type_text[], int flag)
 
int Xorriso_get_md5 (struct XorrisO *xorriso, void *in_node, char *path, char md5[16], int flag)
 
int Xorriso_make_md5 (struct XorrisO *xorriso, void *in_node, char *path, int flag)
 
int Xorriso_show_du_subs (struct XorrisO *xorriso, IsoDir *dir_node, char *abs_path, char *rel_path, off_t *size, off_t boss_mem, int flag)
 
int Xorriso_sorted_dir_i (struct XorrisO *xorriso, IsoDir *dir_node, int *filec, char ***filev, off_t boss_mem, int flag)
 
int Xorriso_node_eff_hidden (struct XorrisO *xorriso, IsoNode *node, int flag)
 
int Xorriso_truncate_path_comps (struct XorrisO *xorriso, char *path, char *buffer, char **resultpt, int flag)
 
int Xorriso_ls_filev (struct XorrisO *xorriso, char *wd, int filec, char **filev, off_t boss_mem, int flag)
 
int Xorriso_get_dus (struct XorrisO *xorriso, char *iso_rr_path, off_t *size, off_t boss_mem, int flag)
 
int Xorriso_ls (struct XorrisO *xorriso, int flag)
 
int Xorriso_obtain_pattern_files_i (struct XorrisO *xorriso, char *wd, IsoDir *dir, int *filec, char **filev, int count_limit, off_t *mem, int *dive_count, int flag)
 
int Xorriso_expand_pattern (struct XorrisO *xorriso, int num_patterns, char **patterns, int extra_filec, int *filec, char ***filev, off_t *mem, int flag)
 
int Xorriso__start_end_lbas (IsoNode *node, int *lba_count, int **start_lbas, int **end_lbas, off_t **section_sizes, off_t *size, int flag)
 
int Xorriso__file_start_lba (IsoNode *node, int *lba, int flag)
 
int Xorriso_dir_disk_path (struct XorrisO *xorriso, IsoNode *dir_node, char disk_path[4096], int flag)
 
int Xorriso_retrieve_disk_path (struct XorrisO *xorriso, IsoNode *node, char disk_path[4096], int flag)
 
int Xorriso_show_stream (struct XorrisO *xorriso, void *in_node, char *path, int flag)
 
int Xorriso_file_eval_damage (struct XorrisO *xorriso, IsoNode *node, off_t *damage_start, off_t *damage_end, int flag)
 
int Xorriso_report_lba (struct XorrisO *xorriso, char *show_path, IsoNode *node, uint32_t *last_block, int flag)
 
int Xorriso_report_damage (struct XorrisO *xorriso, char *show_path, IsoNode *node, int flag)
 
int Xorriso_search_hardlinks (struct XorrisO *xorriso, IsoNode *node, int *node_idx, int *min_hl, int *max_hl, int flag)
 
int Xorriso_node_from_path (struct XorrisO *xorriso, IsoImage *volume, char *path, IsoNode **node, int flag)
 
int Xorriso_dir_from_path (struct XorrisO *xorriso, char *purpose, char *path, IsoDir **dir_node, int flag)
 
int Xorriso_getfname (struct XorrisO *xorriso, char *path, int flag)
 
int Xorriso_is_plain_image_file (struct XorrisO *xorriso, void *in_node, char *path, int flag)
 

Function Documentation

◆ Xorriso__file_start_lba()

◆ Xorriso__start_end_lbas()

int Xorriso__start_end_lbas ( IsoNode node,
int *  lba_count,
int **  start_lbas,
int **  end_lbas,
off_t **  section_sizes,
off_t *  size,
int  flag 
)

◆ Xorriso_append_extattr_comp()

int Xorriso_append_extattr_comp ( struct XorrisO xorriso,
char *  comp,
size_t  comp_len,
char *  mode,
int  flag 
)

◆ Xorriso_dir_disk_path()

int Xorriso_dir_disk_path ( struct XorrisO xorriso,
IsoNode dir_node,
char  disk_path[4096],
int  flag 
)

◆ Xorriso_dir_from_path()

int Xorriso_dir_from_path ( struct XorrisO xorriso,
char *  purpose,
char *  path,
IsoDir **  dir_node,
int  flag 
)

◆ Xorriso_expand_pattern()

◆ Xorriso_fake_stbuf()

◆ Xorriso_file_eval_damage()

int Xorriso_file_eval_damage ( struct XorrisO xorriso,
IsoNode node,
off_t *  damage_start,
off_t *  damage_end,
int  flag 
)

◆ Xorriso_get_attr_value()

int Xorriso_get_attr_value ( struct XorrisO xorriso,
void *  in_node,
char *  path,
char *  name,
size_t *  value_length,
char **  value,
int  flag 
)

Definition at line 1263 of file iso_tree.c.

References Xorriso_get_attrs().

Referenced by Xorriso_findi_action(), and Xorriso_record_dev_inode().

◆ Xorriso_get_attrs()

int Xorriso_get_attrs ( struct XorrisO xorriso,
void *  in_node,
char *  path,
size_t *  num_attrs,
char ***  names,
size_t **  value_lengths,
char ***  values,
int  flag 
)

◆ Xorriso_get_dus()

int Xorriso_get_dus ( struct XorrisO xorriso,
char *  iso_rr_path,
off_t *  size,
off_t  boss_mem,
int  flag 
)

◆ Xorriso_get_md5()

int Xorriso_get_md5 ( struct XorrisO xorriso,
void *  in_node,
char *  path,
char  md5[16],
int  flag 
)

◆ Xorriso_get_node_by_path()

◆ Xorriso_getfacl()

◆ Xorriso_getfattr()

int Xorriso_getfattr ( struct XorrisO xorriso,
void *  in_node,
char *  path,
char **  attr_text,
int  flag 
)

◆ Xorriso_getfname()

int Xorriso_getfname ( struct XorrisO xorriso,
char *  path,
int  flag 
)

◆ Xorriso_identify_split()

◆ Xorriso_is_plain_image_file()

int Xorriso_is_plain_image_file ( struct XorrisO xorriso,
void *  in_node,
char *  path,
int  flag 
)

◆ Xorriso_is_split()

int Xorriso_is_split ( struct XorrisO xorriso,
char *  path,
void *  node,
int  flag 
)

◆ Xorriso_iso_lstat()

◆ Xorriso_list_extattr()

int Xorriso_list_extattr ( struct XorrisO xorriso,
void *  in_node,
char *  path,
char *  show_path,
char *  mode,
int  flag 
)

◆ Xorriso_local_getfacl()

int Xorriso_local_getfacl ( struct XorrisO xorriso,
char *  disk_path,
char **  text,
int  flag 
)

◆ Xorriso_ls()

◆ Xorriso_ls_filev()

◆ Xorriso_make_md5()

◆ Xorriso_node_eff_hidden()

int Xorriso_node_eff_hidden ( struct XorrisO xorriso,
IsoNode node,
int  flag 
)

◆ Xorriso_node_from_path()

◆ Xorriso_node_get_dev()

int Xorriso_node_get_dev ( struct XorrisO xorriso,
IsoNode node,
char *  path,
dev_t *  dev,
int  flag 
)

Definition at line 229 of file iso_tree.c.

References iso_special_get_dev().

Referenced by Xorriso_fake_stbuf(), and Xorriso_tree_restore_node().

◆ Xorriso_node_is_valid()

int Xorriso_node_is_valid ( struct XorrisO xorriso,
IsoNode in_node,
int  flag 
)

Definition at line 384 of file iso_tree.c.

References iso_node_get_parent().

Referenced by Xorriso_remake_hln_array().

◆ Xorriso_normalize_img_path()

◆ Xorriso_obtain_pattern_files_i()

int Xorriso_obtain_pattern_files_i ( struct XorrisO xorriso,
char *  wd,
IsoDir dir,
int *  filec,
char **  filev,
int  count_limit,
off_t *  mem,
int *  dive_count,
int  flag 
)

◆ Xorriso_path_from_lba()

int Xorriso_path_from_lba ( struct XorrisO xorriso,
IsoNode node,
int  lba,
char  path[4096],
int  flag 
)

◆ Xorriso_path_from_node()

int Xorriso_path_from_node ( struct XorrisO xorriso,
IsoNode in_node,
char  path[4096],
int  flag 
)

◆ Xorriso_report_damage()

int Xorriso_report_damage ( struct XorrisO xorriso,
char *  show_path,
IsoNode node,
int  flag 
)

◆ Xorriso_report_lba()

int Xorriso_report_lba ( struct XorrisO xorriso,
char *  show_path,
IsoNode node,
uint32_t *  last_block,
int  flag 
)

◆ Xorriso_retrieve_disk_path()

int Xorriso_retrieve_disk_path ( struct XorrisO xorriso,
IsoNode node,
char  disk_path[4096],
int  flag 
)

◆ Xorriso_search_hardlinks()

int Xorriso_search_hardlinks ( struct XorrisO xorriso,
IsoNode node,
int *  node_idx,
int *  min_hl,
int *  max_hl,
int  flag 
)

◆ Xorriso_show_du_subs()

◆ Xorriso_show_stream()

◆ Xorriso_sorted_dir_i()

int Xorriso_sorted_dir_i ( struct XorrisO xorriso,
IsoDir dir_node,
int *  filec,
char ***  filev,
off_t  boss_mem,
int  flag 
)

◆ Xorriso_stream_type()

int Xorriso_stream_type ( struct XorrisO xorriso,
IsoNode node,
IsoStream stream,
char  type_text[],
int  flag 
)

◆ Xorriso_truncate_path_comps()

int Xorriso_truncate_path_comps ( struct XorrisO xorriso,
char *  path,
char *  buffer,
char **  resultpt,
int  flag 
)