On Apr 29 18: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

Unfortunately it's not that easy, because it's not just one drive letter
mounted filesystem vs. the virtual clone.  What if the filesystem is not
mounted with a drive letter but into a directory instead?  What if the
same filesystem has been mounted multiple times?  Especially the latter
case is a problem because it's the same filesystem in a very real sense.


Corinna

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

Reply via email to