X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20081107150802.GX6478@calimero.vinschen.de>
References: <1KyQ6X-0Eq5dw0@fwd11.aul.t-online.de>  <20081107131108.GS6478@calimero.vinschen.de>  <1KySWS-1YxwGG0@fwd02.aul.t-online.de>  <20081107150802.GX6478@calimero.vinschen.de>
Date: Fri, 07 Nov 2008 16:34:21 +0100
Reply-To: "Christian Franke" <Christian.Franke@t-online.de>
To: cygwin@cygwin.com
X-UMS: email
X-Mailer: TOI Kommunikationscenter V9-2-23
Subject: Re: Mount of VSS volumes (//?/GLOBALROOT/...) does not work
From: "Christian Franke" <Christian.Franke@t-online.de>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Message-ID: <1KyTLp-1iqKB60@fwd11.aul.t-online.de>
X-ID: VaCyLOZHwhreUurfQwpfKrpUwPOdv8eXGA38lF3xkaFte0lg3UOdvWEikUDAHpvge6@t-dialin.net
X-TOI-MSGID: 0ce5079d-824e-4066-9956-954c1b1d37c1
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Corinna Vinschen wrote:
> On Nov  7 15:41, Christian Franke wrote:
> > 
> > The access to the path works, except the access to the root dir of
> > the volume. It appears as a regular file which apparently provides
> > raw read access to the partition:
> > 
> > $ ls -l '//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy1'
> > -rw-r--r-- 1 ... 0 Dec  1  2006 //?/.../HarddiskVolumeShadowCopy1 
> > $ xxd '//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy1'
> > 0000000: eb52 904e 5446 5320 2020 2000 0208 0000  .R.NTFS    .....
> > 
> 
> The windows path handling code in Cygwin doesn't recognize the path as
> the path to a drive's root dir.  The path normalization code removes
> all trailing backslashes.  When accessing a root dir, Windows requires
> a trailing backslash.  When accessing the volume without the trailing
> backslash, it's opened for raw access.
> 

Now I understand where the problem is. Thanks.


> This is still a highly unusual situation from a POSIXy point of view.
> I'm not sure I want to slow down Cygwin for this any further.  It
> seems the ability to mount a shadow volume as a dos drive is
> sufficient for this kind of problem, isn't it?
> 

I agree.

Christian




--
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/

