Made possible to silence error message about missing pseudo drive

This commit is contained in:
Thomas Schmitt 2007-10-15 11:58:08 +00:00
parent 7833b81678
commit a36dd06d92
2 changed files with 8 additions and 6 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2007.10.15.115448" #define Cdrskin_timestamP "2007.10.15.115728"

View File

@ -377,11 +377,13 @@ int burn_read_data(struct burn_drive *d, off_t byte_address,
fd = open(d->devname, O_RDONLY | O_LARGEFILE); fd = open(d->devname, O_RDONLY | O_LARGEFILE);
if (fd == -1) { if (fd == -1) {
libdax_msgs_submit(libdax_messenger, d->global_index, if (!(flag & 1))
0x00020005, libdax_msgs_submit(libdax_messenger,
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH, d->global_index,
"Failed to open device (a pseudo-drive)", 0x00020005,
errno, 0); LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
"Failed to open device (a pseudo-drive) for reading",
errno, 0);
ret = 0; goto ex; ret = 0; goto ex;
} }
if (lseek(fd, byte_address, SEEK_SET) == -1) { if (lseek(fd, byte_address, SEEK_SET) == -1) {