on Solaris.
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4570
91ce42f0-d328-0410-95d8-
f526ca767f89
/* On some systems such as NetBSD, this clears all errors */
get_os_tape_file();
-/* Found on Linux */
+/* Found on Solaris */
#ifdef MTIOCLRERR
{
- struct mtop mt_com;
- mt_com.mt_op = MTIOCLRERR;
- mt_com.mt_count = 1;
- /* Clear any error condition on the tape */
- tape_ioctl(m_fd, MTIOCTOP, (char *)&mt_com);
+ tape_ioctl(m_fd, MTIOCLRERR);
Dmsg0(200, "Did MTIOCLRERR\n");
}
#endif
Technical notes on version 2.1
General:
+19Apr07
+kes Correct usage of MTIOCLRERR ioctl for clearing persistant errors
+ on Solaris.
18Apr07
kes The bgnome-console (gnome-console) and bwx-console (wx-console) are
deprecated. No additional bugs will be fixed, and they will be dropped