"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libburn/drive.c" between
xorriso-1.4.6.tar.gz and xorriso-1.4.8.tar.gz

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.

drive.c  (xorriso-1.4.6):drive.c  (xorriso-1.4.8)
/* -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 8; -*- */ /* -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 8; -*- */
/* Copyright (c) 2004 - 2006 Derek Foreman, Ben Jansens /* Copyright (c) 2004 - 2006 Derek Foreman, Ben Jansens
Copyright (c) 2006 - 2016 Thomas Schmitt <scdbackup@gmx.net> Copyright (c) 2006 - 2017 Thomas Schmitt <scdbackup@gmx.net>
Provided under GPL version 2 or later. Provided under GPL version 2 or later.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "../config.h" #include "../config.h"
#endif #endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <stdlib.h> #include <stdlib.h>
skipping to change at line 1550 skipping to change at line 1550
d->wfb_min_percent = min_percent; d->wfb_min_percent = min_percent;
} }
if (max_percent >= 0) { if (max_percent >= 0) {
if (max_percent < 25 || max_percent > 100) if (max_percent < 25 || max_percent > 100)
return 0; return 0;
d->wfb_max_percent = max_percent; d->wfb_max_percent = max_percent;
} }
return 1; return 1;
} }
int burn_drive_reset_simulate(struct burn_drive *d, int simulate)
{
if (d->busy != BURN_DRIVE_IDLE) {
libdax_msgs_submit(libdax_messenger,
d->global_index, 0x00020140,
LIBDAX_MSGS_SEV_FATAL, LIBDAX_MSGS_PRIO_HIGH,
"Drive is busy on attempt to write random access",0,0);
return 0;
}
d->do_simulate = !!simulate;
return 1;
}
int burn_msf_to_sectors(int m, int s, int f) int burn_msf_to_sectors(int m, int s, int f)
{ {
return (m * 60 + s) * 75 + f; return (m * 60 + s) * 75 + f;
} }
void burn_sectors_to_msf(int sectors, int *m, int *s, int *f) void burn_sectors_to_msf(int sectors, int *m, int *s, int *f)
{ {
*m = sectors / (60 * 75); *m = sectors / (60 * 75);
*s = (sectors - *m * 60 * 75) / 75; *s = (sectors - *m * 60 * 75) / 75;
*f = sectors - *m * 60 * 75 - *s * 75; *f = sectors - *m * 60 * 75 - *s * 75;
skipping to change at line 3510 skipping to change at line 3523
*sno_len = 0; *sno_len = 0;
BURN_ALLOC_MEM(*sno, char, *sno_len + 1); BURN_ALLOC_MEM(*sno, char, *sno_len + 1);
if (*sno_len > 0) if (*sno_len > 0)
memcpy(*sno, d->media_serial_number, *sno_len); memcpy(*sno, d->media_serial_number, *sno_len);
(*sno)[*sno_len] = 0; (*sno)[*sno_len] = 0;
ret = 1; ret = 1;
ex: ex:
return ret; return ret;
} }
int burn_drive_get_bd_r_pow(struct burn_drive *d)
{
struct burn_feature_descr *feature;
if (d->current_profile == 0x41)
if (burn_drive_has_feature(d, 0x38, &feature, 0) == 1)
if (feature->flags & 1)
return 1;
return 0;
}
int burn_drive_set_immed(struct burn_drive *drive, int enable) int burn_drive_set_immed(struct burn_drive *drive, int enable)
{ {
drive->do_no_immed = !enable; drive->do_no_immed = !enable;
return 1; return 1;
} }
int burn_drive_get_immed(struct burn_drive *drive) int burn_drive_get_immed(struct burn_drive *drive)
{ {
return !drive->do_no_immed; return !drive->do_no_immed;
} }
 End of changes. 3 change blocks. 
1 lines changed or deleted 25 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)