From 3119ed2af3b04130e5248a1a3cfad383ef29b52f Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 15 Oct 2007 11:58:08 +0000 Subject: [PATCH] Made possible to silence error message about missing pseudo drive --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/read.c | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index c5af2d9..d3f7eba 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2007.10.15.115448" +#define Cdrskin_timestamP "2007.10.15.115728" diff --git a/libburn/read.c b/libburn/read.c index 913533a..f36774d 100644 --- a/libburn/read.c +++ b/libburn/read.c @@ -377,11 +377,13 @@ int burn_read_data(struct burn_drive *d, off_t byte_address, fd = open(d->devname, O_RDONLY | O_LARGEFILE); if (fd == -1) { - libdax_msgs_submit(libdax_messenger, d->global_index, - 0x00020005, - LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH, - "Failed to open device (a pseudo-drive)", - errno, 0); + if (!(flag & 1)) + libdax_msgs_submit(libdax_messenger, + d->global_index, + 0x00020005, + LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH, + "Failed to open device (a pseudo-drive) for reading", + errno, 0); ret = 0; goto ex; } if (lseek(fd, byte_address, SEEK_SET) == -1) {