X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE4B8395BC4F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1619710181;
	bh=o4944fm9zfhJO51hqraZM6S3928Oz6OCffcgkvWjD6A=;
	h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:From;
	b=GvZPmx4ChEtqEa0YgzAJ64XUmnmyTSKgsNdxdl0JIR2ixDIqSFWRSgHQhPzBcDAhl
	 Yc2YLd38rW5ezR68fXTIHRUDhQfxmfBT24VcoWTC63kyaPNo8qncb8F1psSKNfyFVz
	 qad8TQQtOr7CuY7iizomL6gyVGCTB3XLjSIBMBtA=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9486F3947406
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=IWz+BWnaHk0xeAWOZ5nHhz2O5xxF/V5KuR1Dy/jsNoY=;
 b=fShH5aAaNrr+wJKsEpG54mLM7JLop8elxQvbreSXLC7dtpnRzzO38eqYU1tTAlCQ/J
 pW6s1QehKZ+zbynHKzBoGwewTEx5sfop4WJaeXtn4sncdW6I6krqqzAPqvaSCDoxmSRE
 5+vhd35prEFBMGFBBnW1koLdyDZidZvWWxgfUNUrFwVoG/n/vRMo9lbihz916l1B9bSo
 eWktJOu4acNUnOdPK11BwcNEJiwVlwY584BTJHV8tS6P8uOpmcaLJNdaUwZgkm2eyt2N
 J12O5jqe0l8EwElT+rvlnZZOrZn3gJnaL03lUN8OG0eVPwdyWjn2Ik3rAFk6pWccuFRp
 M6eQ==
X-Gm-Message-State: AOAM531LDVOrD5jU3aJVE2q+/LmUefWhEGtmXJ42Mo4xUEWFmgxBFk4Q
 0O5sTItjflCBQUJArqzEnjS1wrw/+bcQabvUrDxLugwE
X-Google-Smtp-Source: ABdhPJzToL9SpNpjWJCMYZ6GFysyA2Mhou0BTdixoHOz5GJAQgY44fbpaiViwsto9652VUzfIR5C3Rd9OSzKGaL5sQs=
X-Received: by 2002:adf:c70b:: with SMTP id k11mr379958wrg.165.1619710178447; 
 Thu, 29 Apr 2021 08:29:38 -0700 (PDT)
MIME-Version: 1.0
Date: Thu, 29 Apr 2021 18:29:37 +0300
Message-ID: <CAHO0KOUQbcFnCsnjETPH5tsGwG8-rUn80KBBt2RkyWr=J9mPGg@mail.gmail.com>
Subject: how about little improve "stat" function for virtual cloned drisk on
 windows ?
To: cygwin@cygwin.com
X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: dreverser--- via Cygwin <cygwin@cygwin.com>
Reply-To: dreverser@gmail.com
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

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

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