From: Eric Bollengier Date: Sat, 24 Feb 2007 21:54:38 +0000 (+0000) Subject: ebl fix fifo stuff, bacula tries to rewind the fifo... Thanks to Andreas X-Git-Tag: Release-7.0.0~6846 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5a45991dd389422bdb9aab653b5d5299a794dad1;p=bacula%2Fbacula ebl fix fifo stuff, bacula tries to rewind the fifo... Thanks to Andreas git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4238 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/dev.c b/bacula/src/stored/dev.c index 6e543384d7..7a57709b5b 100644 --- a/bacula/src/stored/dev.c +++ b/bacula/src/stored/dev.c @@ -382,7 +382,8 @@ void DEVICE::open_tape_device(DCR *dcr, int omode) Dmsg0(050, "Rewind after open\n"); mt_com.mt_op = MTREW; mt_com.mt_count = 1; - if (ioctl(m_fd, MTIOCTOP, (char *)&mt_com) < 0) { + /* rewind only if dev is a tape */ + if (is_tape() && (ioctl(m_fd, MTIOCTOP, (char *)&mt_com) < 0)) { berrno be; dev_errno = errno; /* set error status from rewind */ ::close(m_fd);