This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: diff -r won't recurse


On Apr  4 21:51, Jeffrey Altman wrote:
> On 4/4/2015 3:27 PM, lemkemch@t-online.de wrote:
> >> Clutching at straws (note the identical serial number, does it confuse Cygwin?):
> >>
> >> orion> /usr/lib/csih/getVolInfo.exe /g
> >> Device Type        : 7
> >> Characteristics    : 20
> >> Volume Name        : <ND D (HDD)>
> >> Serial Number      : 3357258338
> > ...
> >>
> >> orion> /usr/lib/csih/getVolInfo.exe /d
> >> Device Type        : 7
> >> Characteristics    : 20
> >> Volume Name        : <ND D (HDD)>
> >> Serial Number      : 3357258338
> > 
> > This was it.  I changed the Volume Serial Number with a Sysinternals tool
> > (https://technet.microsoft.com/en-us/sysinternals/bb897436.aspx)
> > and after a reboot diff now recurses into the directories in question.
> > 
> > Now is this a Cygwin bug or am I doing something terribly unsupported?
> 
> The serial number is used by many tools to track the volumes that are
> crossed by reparse points to ensure that a loop does not occur.  I
> suspect that in this case the tool is concluding that the reparse point
> is referring back to the same volume.

Just as an extra datapoint, the serial number is used by Cygwin as the
st_dev value for a filesystem.  If diff checks st_dev to recognize
filesystems and mount points, it will see the same filesystem in the
above case.


Corinna

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

Attachment: pgp1CJX8neGip.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]