From 39c59ccabf9dc15992390ec66072677f48665e73 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 11 Feb 2004 12:40:20 +0000 Subject: [PATCH] Temp kludge for FreeBSD mt_count problem git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1043 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/kernstodo | 1 + bacula/src/stored/dev.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bacula/kernstodo b/bacula/kernstodo index d4c627a5ea..9aa767fbd2 100644 --- a/bacula/kernstodo +++ b/bacula/kernstodo @@ -70,6 +70,7 @@ For 1.33 Testing/Documentation: http://howtos.linux.com/guides/nag2/x-087-2-nfs.mountd.shtml For 1.33 +- During install, copy any console.conf to bconsole.conf. - Have each daemon save the last_jobs structure when exiting and read it back in when starting up. - "restore jobid=1 select" calls get_storage_xxx, which prints "JobId 1 is diff --git a/bacula/src/stored/dev.c b/bacula/src/stored/dev.c index d004f023d0..5ef4ae83ac 100644 --- a/bacula/src/stored/dev.c +++ b/bacula/src/stored/dev.c @@ -439,7 +439,11 @@ eod_dev(DEVICE *dev) } } mt_com.mt_op = MTFSF; - mt_com.mt_count = INT32_MAX; /* use big positive number */ + /* + * ***FIXEM*** fix code to handle case that INT16_MAX is + * not large enough. + */ + mt_com.mt_count = INT16_MAX; /* use big positive number */ if (mt_com.mt_count < 0) { mt_com.mt_count = INT16_MAX; /* brain damaged system */ } -- 2.39.5