FreeBSD Port: MailScanner-4.54.6_2

Alejandro Pulver alepulver at FreeBSD.org
Sat Jul 1 23:17:21 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 01 Jul 2006 16:07:31 -0500
"James L. Day" <lday at jlday.com> wrote:

> Hello,
> 
> I'd like to recommend a change to your "patch-lib-clamav-wrapper" file
> in your FreeBSD MailScanner port.  You have the temporary directory path
> set to "/tmp".  I'm having trouble with my "/tmp" partition running out
> of space during scans of large messages.  I recommend that it be changed
> to "/var/tmp".
> 
> Instead of this:
> 
> TempDir="/tmp/clamav.$$"
> 
> Use this:
> 
> TempDir="/var/tmp/clamav.$$"
> 
> Thanks,
> Lynn
> 

Hello.

There is a difference between /tmp and /var/tmp as described in hier(7):

/tmp     - Temporary files not guaranteed to be preserved across
           reboots.
/var/tmp - Temporary files guaranteed to be preserved across reboots.

If it doesn't need the files to persist after the system is restarted,
then it shouldn't use /var/tmp. For example, /tmp can be a memory
filesystem (see mdconfig(8)), and in that case it would improve
performance, that wouldn't happen if it's in /var/tmp.

As a workaround you can:

1) Make /tmp be a symlink to /var/tmp.
2) Use mount_nullfs(8) or mount_unionfs(8) to replace/merge the
   contents of /tmp with a directory of a filesystem where you have
   more space (/var or /usr for example).

Best Regards,
Ale
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQFEpv2KiV05EpRcP2ERAp9XAKCFnmWCnC+Bdki+QF5NwH6bR4psGQCfUfoR
eOdMdo1WIdECFgT60mco2zk=
=6o2l
-----END PGP SIGNATURE-----


More information about the freebsd-ports mailing list