diff options
author | jkh <jkh@FreeBSD.org> | 1994-10-08 23:55:36 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-10-08 23:55:36 +0000 |
commit | 34751162a4db3680fe22ce8afa2d2563252b9065 (patch) | |
tree | 03ecec72b4fd66a0ba22b29450ac924a41b520c6 /usr.sbin/pkg_install/lib/pen.c | |
parent | 632c3f49e9475d503a10c106a9f31e42df71532a (diff) | |
download | FreeBSD-src-34751162a4db3680fe22ce8afa2d2563252b9065.zip FreeBSD-src-34751162a4db3680fe22ce8afa2d2563252b9065.tar.gz |
Be optionally verbose about free-space checking. I need this to ascertian
whether or not this always works.
Diffstat (limited to 'usr.sbin/pkg_install/lib/pen.c')
-rw-r--r-- | usr.sbin/pkg_install/lib/pen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/lib/pen.c b/usr.sbin/pkg_install/lib/pen.c index a3cfcdf..ba2789d 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); |