"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libburn/sg-dummy.c" between
xorriso-1.5.2.tar.gz and xorriso-1.5.4.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.

sg-dummy.c  (xorriso-1.5.2):sg-dummy.c  (xorriso-1.5.4)
skipping to change at line 138 skipping to change at line 138
/* ts A61115: replacing call to sg-implementation internals from drive.c */ /* ts A61115: replacing call to sg-implementation internals from drive.c */
int scsi_enumerate_drives(void) int scsi_enumerate_drives(void)
{ {
libdax_msgs_submit(libdax_messenger, -1, 0x0002016b, libdax_msgs_submit(libdax_messenger, -1, 0x0002016b,
LIBDAX_MSGS_SEV_WARNING, LIBDAX_MSGS_PRIO_HIGH, LIBDAX_MSGS_SEV_WARNING, LIBDAX_MSGS_PRIO_HIGH,
"No MMC transport adapter is present. Running on sg-dummy.c.", "No MMC transport adapter is present. Running on sg-dummy.c.",
0, 0); 0, 0);
return 1; return 1;
} }
/** Tells wether libburn has the given drive in use or exclusively reserved. /** Tells whether libburn has the given drive in use or exclusively reserved.
If it is "open" then libburn will eventually call sg_release() on it when If it is "open" then libburn will eventually call sg_release() on it when
it is time to give up usage and reservation. it is time to give up usage and reservation.
*/ */
/** Published as burn_drive.drive_is_open() */ /** Published as burn_drive.drive_is_open() */
int sg_drive_is_open(struct burn_drive * d) int sg_drive_is_open(struct burn_drive * d)
{ {
return 0; return 0;
} }
/** Opens the drive for SCSI commands and - if burn activities are prone /** Opens the drive for SCSI commands and - if burn activities are prone
skipping to change at line 171 skipping to change at line 171
} }
/** Gives up the drive for SCSI commands and releases eventual access locks. /** Gives up the drive for SCSI commands and releases eventual access locks.
(Note: this is not physical tray locking.) (Note: this is not physical tray locking.)
*/ */
int sg_release(struct burn_drive *d) int sg_release(struct burn_drive *d)
{ {
return 0; return 0;
} }
/** Sends a SCSI command to the drive, receives reply and evaluates wether /** Sends a SCSI command to the drive, receives reply and evaluates whether
the command succeeded or shall be retried or finally failed. the command succeeded or shall be retried or finally failed.
Returned SCSI errors shall not lead to a return value indicating failure. Returned SCSI errors shall not lead to a return value indicating failure.
The callers get notified by c->error. An SCSI failure which leads not to The callers get notified by c->error. An SCSI failure which leads not to
a retry shall be notified via scsi_notify_error(). a retry shall be notified via scsi_notify_error().
The Libburn_log_sg_commandS facility might be of help when problems with The Libburn_log_sg_commandS facility might be of help when problems with
a drive have to be examined. It shall stay disabled for normal use. a drive have to be examined. It shall stay disabled for normal use.
@return: 1 success , <=0 failure @return: 1 success , <=0 failure
*/ */
int sg_issue_command(struct burn_drive *d, struct command *c) int sg_issue_command(struct burn_drive *d, struct command *c)
{ {
skipping to change at line 202 skipping to change at line 202
int sg_obtain_scsi_adr(char *path, int *bus_no, int *host_no, int *channel_no, int sg_obtain_scsi_adr(char *path, int *bus_no, int *host_no, int *channel_no,
int *target_no, int *lun_no) int *target_no, int *lun_no)
{ {
libdax_msgs_submit(libdax_messenger, -1, 0x0002016c, libdax_msgs_submit(libdax_messenger, -1, 0x0002016c,
LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_PRIO_HIGH, LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_PRIO_HIGH,
"No MMC transport adapter is present. Running on sg-dummy.c.", "No MMC transport adapter is present. Running on sg-dummy.c.",
0, 0); 0, 0);
return 0; return 0;
} }
/** Tells wether a text is a persistent address as listed by the enumeration /** Tells whether a text is a persistent address as listed by the enumeration
functions. functions.
*/ */
int sg_is_enumerable_adr(char *adr) int sg_is_enumerable_adr(char *adr)
{ {
return(0); return(0);
} }
/* Return 1 if the given path leads to a regular file or a device that can be /* Return 1 if the given path leads to a regular file or a device that can be
fseeked, read, and possibly written with 2 kB granularity. fseeked, read, and possibly written with 2 kB granularity.
*/ */
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

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