FreeBSD Port: MailScanner-4.54.6_2
alepulver at FreeBSD.org
Sat Jul 1 23:17:21 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
On Sat, 01 Jul 2006 16:07:31 -0500
"James L. Day" <lday at jlday.com> wrote:
> 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:
> Use this:
There is a difference between /tmp and /var/tmp as described in hier(7):
/tmp - Temporary files not guaranteed to be preserved across
/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).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)
-----END PGP SIGNATURE-----
More information about the freebsd-ports