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)  

check_media.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 "xorriso.h"
#include "xorriso_private.h"
#include "xorrisoburn.h"
Include dependency graph for check_media.c:

Go to the source code of this file.

Data Structures

struct  SpotlistiteM
 
struct  SpotlisT
 

Macros

#define O_BINARY   0
 

Functions

int Spotlistitem_new (struct SpotlistiteM **o, int start_lba, int blocks, int quality, int flag)
 
int Spotlistitem_destroy (struct SpotlistiteM **o, int flag)
 
int Spotlist_new (struct SpotlisT **o, int flag)
 
int Spotlist_destroy (struct SpotlisT **o, int flag)
 
int Spotlist_add_item (struct SpotlisT *o, int start_lba, int blocks, int quality, int flag)
 
int Spotlist_count (struct SpotlisT *o, int flag)
 
int Spotlist_block_count (struct SpotlisT *o, int flag)
 
int Spotlist_sector_size (struct SpotlisT *o, int read_chunk, int flag)
 
int Spotlist_get_item (struct SpotlisT *o, int idx, int *start_lba, int *blocks, int *quality, int flag)
 
char * Spotlist__quality_name (int quality, char name[80], int bad_limit, int flag)
 
int Sectorbitmap_new (struct SectorbitmaP **o, int sectors, int sector_size, int flag)
 
int Sectorbitmap_destroy (struct SectorbitmaP **o, int flag)
 
int Sectorbitmap_from_file (struct SectorbitmaP **o, char *path, char *msg, int *os_errno, int flag)
 
int Sectorbitmap_to_file (struct SectorbitmaP *o, char *path, char *info, char *msg, int *os_errno, int flag)
 
int Sectorbitmap_set (struct SectorbitmaP *o, int sector, int flag)
 
int Sectorbitmap_set_range (struct SectorbitmaP *o, int start_sector, int sectors, int flag)
 
int Sectorbitmap_is_set (struct SectorbitmaP *o, int sector, int flag)
 
int Sectorbitmap_bytes_are_set (struct SectorbitmaP *o, off_t start_byte, off_t end_byte, int flag)
 
int Sectorbitmap_get_layout (struct SectorbitmaP *o, int *sectors, int *sector_size, int flag)
 
int Sectorbitmap_copy (struct SectorbitmaP *from, struct SectorbitmaP *to, int flag)
 
int Sectorbitmap_clone (struct SectorbitmaP *from, struct SectorbitmaP **clone, int flag)
 
int Checkmediajob_new (struct CheckmediajoB **o, int flag)
 
int Checkmediajob_destroy (struct CheckmediajoB **o, int flag)
 
int Checkmediajob_copy (struct CheckmediajoB *from, struct CheckmediajoB *to, int flag)
 
int Xorriso_check_media_setup_job (struct XorrisO *xorriso, struct CheckmediajoB *job, char **argv, int old_idx, int end_idx, int flag)
 
int Xorriso_check_media_list_job (struct XorrisO *xorriso, struct CheckmediajoB *job, char *report, int flag)
 
int Xorriso_sectormap_to_spotlist (struct XorrisO *xorriso, struct CheckmediajoB *job, struct SpotlisT **spotlist, int flag)
 
int Xorriso_spotlist_to_sectormap (struct XorrisO *xorriso, struct SpotlisT *spotlist, int read_chunk, struct SectorbitmaP **map, int flag)
 
int Xorriso_open_job_data_to (struct XorrisO *xorriso, struct CheckmediajoB *job, int flag)
 
int Xorriso_update_in_sector_map (struct XorrisO *xorriso, struct SpotlisT *spotlist, int read_chunk, struct CheckmediajoB *job, int flag)
 

Macro Definition Documentation

◆ O_BINARY

#define O_BINARY   0

Definition at line 30 of file check_media.c.

Function Documentation

◆ Checkmediajob_copy()

◆ Checkmediajob_destroy()

◆ Checkmediajob_new()

◆ Sectorbitmap_bytes_are_set()

int Sectorbitmap_bytes_are_set ( struct SectorbitmaP o,
off_t  start_byte,
off_t  end_byte,
int  flag 
)

Definition at line 485 of file check_media.c.

References SectorbitmaP::sector_size, and Sectorbitmap_is_set().

Referenced by Xorriso_update_iso_lba0().

◆ Sectorbitmap_clone()

int Sectorbitmap_clone ( struct SectorbitmaP from,
struct SectorbitmaP **  clone,
int  flag 
)

◆ Sectorbitmap_copy()

◆ Sectorbitmap_destroy()

◆ Sectorbitmap_from_file()

int Sectorbitmap_from_file ( struct SectorbitmaP **  o,
char *  path,
char *  msg,
int *  os_errno,
int  flag 
)

◆ Sectorbitmap_get_layout()

int Sectorbitmap_get_layout ( struct SectorbitmaP o,
int *  sectors,
int *  sector_size,
int  flag 
)

◆ Sectorbitmap_is_set()

int Sectorbitmap_is_set ( struct SectorbitmaP o,
int  sector,
int  flag 
)

◆ Sectorbitmap_new()

int Sectorbitmap_new ( struct SectorbitmaP **  o,
int  sectors,
int  sector_size,
int  flag 
)

◆ Sectorbitmap_set()

int Sectorbitmap_set ( struct SectorbitmaP o,
int  sector,
int  flag 
)

Definition at line 438 of file check_media.c.

References SectorbitmaP::map, and SectorbitmaP::sectors.

Referenced by Sectorbitmap_set_range().

◆ Sectorbitmap_set_range()

int Sectorbitmap_set_range ( struct SectorbitmaP o,
int  start_sector,
int  sectors,
int  flag 
)

◆ Sectorbitmap_to_file()

int Sectorbitmap_to_file ( struct SectorbitmaP o,
char *  path,
char *  info,
char *  msg,
int *  os_errno,
int  flag 
)

◆ Spotlist__quality_name()

◆ Spotlist_add_item()

◆ Spotlist_block_count()

int Spotlist_block_count ( struct SpotlisT o,
int  flag 
)

◆ Spotlist_count()

◆ Spotlist_destroy()

int Spotlist_destroy ( struct SpotlisT **  o,
int  flag 
)

◆ Spotlist_get_item()

int Spotlist_get_item ( struct SpotlisT o,
int  idx,
int *  start_lba,
int *  blocks,
int *  quality,
int  flag 
)

◆ Spotlist_new()

◆ Spotlist_sector_size()

int Spotlist_sector_size ( struct SpotlisT o,
int  read_chunk,
int  flag 
)

◆ Spotlistitem_destroy()

int Spotlistitem_destroy ( struct SpotlistiteM **  o,
int  flag 
)

Definition at line 66 of file check_media.c.

Referenced by Spotlist_destroy().

◆ Spotlistitem_new()

int Spotlistitem_new ( struct SpotlistiteM **  o,
int  start_lba,
int  blocks,
int  quality,
int  flag 
)

◆ Xorriso_check_media_list_job()

◆ Xorriso_check_media_setup_job()

◆ Xorriso_open_job_data_to()

int Xorriso_open_job_data_to ( struct XorrisO xorriso,
struct CheckmediajoB job,
int  flag 
)

◆ Xorriso_sectormap_to_spotlist()

◆ Xorriso_spotlist_to_sectormap()

◆ Xorriso_update_in_sector_map()