From: Kern Sibbald Date: Wed, 11 Feb 2004 12:40:20 +0000 (+0000) Subject: Temp kludge for FreeBSD mt_count problem X-Git-Tag: Release-1.34.0~135 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=95ba4310ccf104272fd38fe74f21c1a214500676;p=bacula%2Fbacula Temp kludge for FreeBSD mt_count problem git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1043 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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 */ }