[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] fix for unclear error message "Can't find a temporary directory"

From: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: Thu, 31 Jan 2008 15:59:47 -0600

Hendy Irawan wrote:
> I added an explanation where this usually (99% of the time? at least
> according to Google) means the repository runs out of disk space.
>
> Please accept this patch.

I've reproduced your patch below.
There could be other reasons for being unable to find a temporary
directory, with being out of disk space only one of them. The directory
may not exist, it may not be writable by the user, or Subversion could
be prohibited from writing there by other means (eg, SELinux). I
hesitant to give more information in this error message, for fear of
leading other users astray.

-Hyrum

index dd29b82..fcc4fdd 100644
--- a/subversion/libsvn_subr/io.c
+++ b/subversion/libsvn_subr/io.c
@@ -645,7 +645,7 @@ svn_io_temp_dir(const char **dir,
   apr_status_t apr_err = apr_temp_dir_get(dir, pool);

   if (apr_err)
- return svn_error_wrap_apr(apr_err, _("Can't find a temporary
directory"));
+ return svn_error_wrap_apr(apr_err, _("Can't find a temporary
directory (repository probably runs out of disk space)"));

   *dir = svn_path_canonicalize(*dir, pool);

Received on 2008-01-31 23:00:00 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.