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)  

image.h File Reference
#include "libisofs.h"
#include "node.h"
#include "fsource.h"
#include "builder.h"
Include dependency graph for image.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Iso_Image
 
struct  iso_imported_sys_area
 

Macros

#define ISO_USED_INODE_RANGE   (1 << 18)
 
#define ISO_IMPORT_COLL_WARN_MAX   10
 

Functions

int iso_image_truncate_name (IsoImage *image, const char *name, char **namept, int flag)
 
int img_collect_inos (IsoImage *image, IsoDir *dir, int flag)
 
uint32_t img_give_ino_number (IsoImage *image, int flag)
 
int img_make_inos (IsoImage *image, IsoDir *dir, int flag)
 
int iso_image_free_checksums (IsoImage *image, int flag)
 
int iso_image_set_checksums (IsoImage *image, char *checksum_array, uint32_t start_lba, uint32_t end_lba, uint32_t idx_count, int flag)
 
int iso_image_set_pvd_times (IsoImage *image, char *creation_time, char *modification_time, char *expiration_time, char *effective_time)
 
int iso_imported_sa_new (struct iso_imported_sys_area **sa_info, int flag)
 
int iso_imported_sa_unref (struct iso_imported_sys_area **sa_info, int flag)
 

Macro Definition Documentation

◆ ISO_IMPORT_COLL_WARN_MAX

#define ISO_IMPORT_COLL_WARN_MAX   10

Definition at line 27 of file image.h.

◆ ISO_USED_INODE_RANGE

#define ISO_USED_INODE_RANGE   (1 << 18)

Definition at line 23 of file image.h.

Function Documentation

◆ img_collect_inos()

◆ img_give_ino_number()

uint32_t img_give_ino_number ( IsoImage image,
int  flag 
)

A global counter for inode numbers for the ISO image filesystem. On image import it gets maxed by the eventual inode numbers from PX entries. Up to the first 32 bit rollover it simply increments the counter. After the first rollover it uses a look ahead bitmap which gets filled by a full tree traversal. It covers the next inode numbers to come (somewhere between 1 and ISO_USED_INODE_RANGE which is quite many) and advances when being exhausted.

Parameters
imageThe image where the number shall be used
flagbit0= reset count (Caution: image must get new inos then)
Returns
Since 0 is used as default and considered self-unique, the value 0 should only be returned in case of error.

A global counter for Rock Ridge inode numbers in the ISO image filesystem.

On image import it gets maxed by the eventual inode numbers from PX entries. Up to the first 32 bit rollover it simply increments the counter. After the first rollover it uses a look ahead bitmap which gets filled by a full tree traversal. It covers the next inode numbers to come (somewhere between 1 and ISO_USED_INODE_RANGE which is quite many) and advances when being exhausted.

Parameters
imageThe image where the number shall be used
flagbit0= reset count (Caution: image must get new inos then)
Returns
Since 0 is used as default and considered self-unique, the value 0 should only be returned in case of error.

Definition at line 713 of file image.c.

References img_collect_inos(), Iso_Image::inode_counter, ISO_USED_INODE_RANGE, Iso_Image::used_inodes, and Iso_Image::used_inodes_start.

Referenced by create_boot_img_filesrc(), family_set_ino(), and iso_node_set_unique_id().

◆ img_make_inos()

int img_make_inos ( IsoImage image,
IsoDir dir,
int  flag 
)

◆ iso_image_free_checksums()

int iso_image_free_checksums ( IsoImage image,
int  flag 
)

◆ iso_image_set_checksums()

int iso_image_set_checksums ( IsoImage image,
char *  checksum_array,
uint32_t  start_lba,
uint32_t  end_lba,
uint32_t  idx_count,
int  flag 
)

◆ iso_image_set_pvd_times()

int iso_image_set_pvd_times ( IsoImage image,
char *  creation_time,
char *  modification_time,
char *  expiration_time,
char *  effective_time 
)

◆ iso_image_truncate_name()

◆ iso_imported_sa_new()

◆ iso_imported_sa_unref()