delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/04/29/12:04:45

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8D11E394C01A
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=SystematicSw.ab.ca
Authentication-Results: sourceware.org;
spf=none smtp.mailfrom=brian DOT inglis AT systematicsw DOT ab DOT ca
X-Authority-Analysis: v=2.4 cv=Nv6yz+RJ c=1 sm=1 tr=0 ts=608ad914
a=T+ovY1NZ+FAi/xYICV7Bgg==:117 a=T+ovY1NZ+FAi/xYICV7Bgg==:17
a=JMlwWtpi4oG9xg3K:21 a=IkcTkHD0fZMA:10 a=Ro-zfTxTAAAA:20
a=uYT-Tk0qkVT609LjNaIA:9 a=QEXdDO2ut3YA:10 a=lcZYGsl-DWyJYuAOizVJ:22
a=nhBiZLy9dCYQrwyDy6gO:22
Subject: Re: how about little improve "stat" function for virtual cloned drisk
on windows ?
To: cygwin AT cygwin DOT com
References: <CAHO0KOUQbcFnCsnjETPH5tsGwG8-rUn80KBBt2RkyWr=J9mPGg AT mail DOT gmail DOT com>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Organization: Systematic Software
Message-ID: <2f399a0f-6715-1e27-223c-397d7b0d590f@SystematicSw.ab.ca>
Date: Thu, 29 Apr 2021 10:04:35 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.10.0
MIME-Version: 1.0
In-Reply-To: <CAHO0KOUQbcFnCsnjETPH5tsGwG8-rUn80KBBt2RkyWr=J9mPGg@mail.gmail.com>
X-CMAE-Envelope: MS4xfO65BO4FBm+AUNIi8iXr/yMVP+PDf0wJehwq1jIpjREgbFokehhWcMYph5P5GVy8x5FNE5qT3Sgqs1wg+NY88U0GpeMGklWeBH/DTBh+rkZ/ZQIwWXAz
HFyuXqJECD/GIANuTIviLhqAo5Ca9bR4dLf3V/JyCq6UVVpc5ol3xQutVMvQxnzkZnjXLu8h/lXwhky6rBYbr4xzpCTBCiWoV3M=
X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL,
RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,
SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On 2021-04-29 09:29, dreverser--- via Cygwin wrote:
> hello, i have issue for using stat for virtual cloned disk on windows/vmware
> st_dev give me the the same serial number
> and diff util doest work, because thinking path the same and there are
> no files for diff
> 
> iam propose improve winsup\cygwin\mount.c
> by add disk letter to st_dev
> 
> at this line
> https://github.com/cygwin/cygwin/blob/367c1ae16185e7a81aea5bcc2388e4a7a473c92e/winsup/cygwin/mount.cc#L266
> 
> sernum = ffvi_buf.ffvi.VolumeSerialNumber;
> 
> after add disk letter to sernum
> stat will give more unique st_dev
> and as less diff will work

To provide more information, please run and post results of commands below: e.g.

$ head /proc/version
CYGWIN_NT-10.0-19042 version 3.2.0-340.x86_64 (corinna AT calimero) (gcc version 
9.3.0 20200312 (Fedora Cygwin 9.3.0-1) (GCC) ) 2021-03-29 08:42 UTC
$ stat /proc/cygdrive/?
   File: /proc/cygdrive/c
   Size: 0               Blocks: 8          IO Block: 65536  directory
Device: ee454341h/3997516609d   Inode: 1407374883553285  Links: 1
Access: (0050/d---r-x---)  Uid: (328384/NT SERVICE+TrustedInstaller)   Gid: 
(328384/NT SERVICE+TrustedInstaller)
Access: 2021-04-29 10:00:59.850885200 -0600
Modify: 2021-04-24 21:37:53.292164400 -0600
Change: 2021-04-24 21:37:53.292164400 -0600
  Birth: 2019-03-18 22:37:21.986161300 -0600
   File: /proc/cygdrive/d
   Size: 0               Blocks: 8          IO Block: 65536  directory
Device: 6b8d438h/112776248d     Inode: 1407374883553285  Links: 1
Access: (0050/d---r-x---)  Uid: (328384/NT SERVICE+TrustedInstaller)   Gid: 
(328384/NT SERVICE+TrustedInstaller)
Access: 2021-04-24 15:14:10.005696600 -0600
Modify: 2021-04-24 15:14:10.005696600 -0600
Change: 2021-04-24 15:14:10.005696600 -0600
  Birth: 2009-07-13 20:38:56.526817600 -0600

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

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

- Raw text -


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