delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/11/07/10:06:57

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 7 Nov 2008 16:08:02 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Mount of VSS volumes (//?/GLOBALROOT/...) does not work
Message-ID: <20081107150802.GX6478@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1KyQ6X-0Eq5dw0 AT fwd11 DOT aul DOT t-online DOT de> <20081107131108 DOT GS6478 AT calimero DOT vinschen DOT de> <1KySWS-1YxwGG0 AT fwd02 DOT aul DOT t-online DOT de>
MIME-Version: 1.0
In-Reply-To: <1KySWS-1YxwGG0@fwd02.aul.t-online.de>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Nov  7 15:41, Christian Franke wrote:
> Corinna Vinschen wrote:
> > On Nov  7 13:06, Christian Franke wrote:
> > > According to
> > > http://sourceware.org/ml/cygwin/2007-05/msg00359.html
> > > http://sourceware.org/ml/cygwin-patches/2006-q4/msg00008.html
> > > Cygwin includes support to mount a //?/GLOBALROOT/... path
> > 
> > No, it doesn't.  It allows to *access* the path, but the mount call
> > follows a somewhat different route.  You can only access the path
> > directly (a concenssion to a necessity which has no POSIX equivalent)
> > or, as you did, map the VSS volume to a drive letter.  The patch is
> > not in 1.5.25, btw., only in 1.7.0.
> > 
> 
> Thanks for clarification.
> 
> 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.

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?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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