#ifndef lint
static const char rcsid[] =
- "$Id: tape.c,v 1.64 2002/02/27 09:47:48 stelian Exp $";
+ "$Id: tape.c,v 1.66 2002/03/27 16:48:38 stelian Exp $";
#endif /* not lint */
#include <config.h>
#include <sys/wait.h>
#include <sys/mtio.h>
#ifdef __linux__
-#include <linux/fs.h>
-#undef atomic_read /* this get wrongly defined in kernel */
- /* headers and we don't want it */
#ifdef HAVE_EXT2FS_EXT2_FS_H
#include <ext2fs/ext2_fs.h>
#else
OPEN(tape, O_RDWR|O_CREAT, 0666))) < 0)
#endif
{
- msg("Cannot open output \"%s\".\n", tape);
+ msg("Cannot open output \"%s\": %s\n", tape,
+ strerror(errno));
if (!query("Do you want to retry the open?"))
dumpabort(0);
}