public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: how about little improve "stat" function for virtual cloned drisk on windows ?
Date: Thu, 29 Apr 2021 18:07:34 +0200	[thread overview]
Message-ID: <YIrZxoRUJOcrSTMT@calimero.vinschen.de> (raw)
In-Reply-To: <CAHO0KOUQbcFnCsnjETPH5tsGwG8-rUn80KBBt2RkyWr=J9mPGg@mail.gmail.com>

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

      parent reply	other threads:[~2021-04-29 16:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-29 15:29 dreverser
2021-04-29 16:04 ` Brian Inglis
2021-04-29 16:07 ` Corinna Vinschen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YIrZxoRUJOcrSTMT@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).