delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/01/06:44:28

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Matthias Meyer <matthias DOT meyer AT gmx DOT li>
Subject: Re: rsyncd cannot access volume shadow copy
Date: Fri, 01 May 2009 12:43:54 +0200
Lines: 59
Message-ID: <gtejpf$g0f$1@ger.gmane.org>
References: <gnfkij$sgg$1 AT ger DOT gmane DOT org> <gnhmkt$bci$1 AT ger DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: KNode/0.10.9
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Matthias Meyer wrote:

> Matthias Meyer wrote:
> 
>> Hi,
>> 
>> I run cygwin in Vista:
>> 
>> I can create a volume shadow copy with vshadow from the Microsoft SDK as
>> well as map it to drive B:.
>> 
>> I can access /cygdrive/b (bash) as well as B: (cmd) from terminals of the
>> same user which has mapped the shadow copy to the drive.
>> 
>> But I can not access the shadow copy from terminals of other users.
>> 
>> AND my rsyncd, which runs under the same user where the shadow copy was
>> mapped, can't access /cygdrive/b.
>> 
>> rsync: chdir /cygdrive/b failed
>> 
>> Any hint?
>> Thanks
>> Matthias
> I try the same under Windows XP and it works. But only one time.
> I map the drive with "dosdev b: \\?\GLOBALROOT\Device...
> rsyncd works but has locked files
> 2009/02/18 19:54:05 [2112] rsync: send_files failed to open "Dokumente und
> Einstellungen/Administrator/Lokale
> Einstellungen/Anwendungsdaten/Microsoft/Windows/UsrClass.dat" (in B):
> Device or resource busy (16)
> 
> After dosdev -r -d b: and again dosdev b: \\?\GLOBALROOT\Device...
> I get from rsyncd:
> 2009/02/18 20:03:19 [2580] name lookup failed for 127.0.0.1: Unknown
> server error
> 2009/02/18 20:03:19 [2580] connect from UNKNOWN (127.0.0.1)
> 2009/02/18 20:03:19 [2580] rsync: chdir /cygdrive/b failed
> : No such file or directory (2)
> 
> In both cases ls -alh /cygdrive/b will list the content of drive c: (which
> is as expected)
> 
> :-O
> Matthias

dosdev as well as rsyncd must be run in the same user account.
In addition rsyncd should not be startet by cygrunsrv. Also if cygrunsrv
starts rsyncd as the same user as dosdev runs, windows apparently sees
differences between them.
vshadow, on the other hand, can (and must) be started through schtasks in
the user account SYSTEM.

I've didn't try to start rsyncd by schtasks. Maybee that works too.

br
Matthias
-- 
Don't Panic


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019