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

Re: Unable to hotcopy to a NAS shared directory: E720002

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 21 Jan 2015 16:41:32 +0000

Cory Riddell <cory_at_codeware.com> writes:

> On 1/20/2015 9:32 AM, Cory Riddell wrote:
>> I'm trying to use hotcopy to create a backup of my repositories on a
>> network drive. When I run the hotcopy command, most of the repository
>> copies, then I get an error:
>>
>> E:\>svnadmin hotcopy E:\MyRepo \\Diskstation\svn\MyRepo
>> svnadmin: E720002: Can't remove file
>> '\\diskstation\svn\MyRepo\db\rev-prop-atomics.shm': The system cannot
>> find the file specified.
>
> I've been looking at the source code for this and I think I see what'
> generating the error:
>
> In named_atomic.c, around line 515, is this code:
>
> svn_error_t *
> svn_atomic_namespace__cleanup(const char *name,
> apr_pool_t *pool)
> {
> const char *shm_name, *lock_name;
>
> /* file names used for the specified namespace */
> shm_name = apr_pstrcat(pool, name, SHM_NAME_SUFFIX, NULL);
> lock_name = apr_pstrcat(pool, name, MUTEX_NAME_SUFFIX, NULL);
>
> /* remove these files if they exist */
> SVN_ERR(svn_io_remove_file2(shm_name, TRUE, pool));
> SVN_ERR(svn_io_remove_file2(lock_name, TRUE, pool));
>
> return SVN_NO_ERROR;
> }
>
> In the line "SVN_ERR(svn_io_remove_file2(shm_name, TRUE, pool));", the
> TRUE parameter is supposed to suppress file not found errors yet that's
> the error I'm getting, isn't it?

Yes, it should. It's failing because it's getting error 720002 and that
is not an error the code recognises. I don't recognise it either. What
sort of network drive is producing that error?

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2015-01-21 17:42:48 CET

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

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