From 90c00ca832edcad2c01890f988e8a38a4d061a6e Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Sat, 8 Oct 1994 23:55:36 +0000 Subject: [PATCH] Be optionally verbose about free-space checking. I need this to ascertian whether or not this always works. --- usr.sbin/pkg_install/lib/pen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/pkg_install/lib/pen.c b/usr.sbin/pkg_install/lib/pen.c index a3cfcdf5775..ba2789ddd9c 100644 --- a/usr.sbin/pkg_install/lib/pen.c +++ b/usr.sbin/pkg_install/lib/pen.c @@ -1,5 +1,5 @@ #ifndef lint -static const char *rcsid = "$Id: pen.c,v 1.3 1993/09/05 04:54:23 jkh Exp $"; +static const char *rcsid = "$Id: pen.c,v 1.4 1994/10/04 16:07:50 jkh Exp $"; #endif /* @@ -55,6 +55,8 @@ make_playpen(char *pen, size_t sz) barf("Can't mktemp '%s'.", Pen); if (mkdir(Pen, 0755) == FAIL) barf("Can't mkdir '%s'.", Pen); + if (Verbose) + fprintf(stderr, "Projected package size: %d bytes, free space: %d bytes\n", sz, min_free(Pen)); if (min_free(Pen) < sz) { rmdir(Pen); barf("%s doesn't have enough free space. Please set your TMPDIR\nenvironment variable to a location with more space and\ntry the command again.", Pen);