From d1a3f3f6455e71a935916ba1df89ff0dffb0f492 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 29 Oct 2017 17:12:33 +0100 Subject: [PATCH] Skip tape ioctls on FreeBSD when using a FIFO fixes bug #2324 --- bacula/src/stored/os.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bacula/src/stored/os.c b/bacula/src/stored/os.c index 0d181e522f..c8ec1cce1e 100644 --- a/bacula/src/stored/os.c +++ b/bacula/src/stored/os.c @@ -116,6 +116,9 @@ void set_os_device_parameters(DCR *dcr) } } #if defined(MTIOCSETEOTMODEL) + if (dev->is_fifo()) { + return; /* do not do tape stuff */ + } uint32_t neof; if (dev->has_cap(CAP_TWOEOF)) { neof = 2; -- 2.39.5