From: Jonathan Lennox <lennox@cs.columbia.edu>
To: cygwin@cygwin.com
Subject: Re: fstat st_size on open files on Parallels filesystem is wrong
Date: Mon, 02 Nov 2015 13:08:00 -0000 [thread overview]
Message-ID: <22071.24647.434328.551494@compute03.cs.columbia.edu> (raw)
In-Reply-To: <20151102112334.GC5319@calimero.vinschen.de>
On Monday, November 2 2015, "Corinna Vinschen" wrote to "cygwin@cygwin.com" saying:
> On Nov 2 04:38, Jonathan Lennox wrote:
> > Unfortunately, when I do "Run As Administrator" on MinTTY, the Mac drives
> > (/cygdrive/z and /cygdrive/y) don't show up. I don't know why that is. So I
> > can't test hard links as administrator.
>
> That's a security feature of UAC. You can change that in the registry.
> As administrator:
>
> regtool -d set /HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/System/EnableLinkedConnections 1
>
> Then reboot.
Didn't work:
$ ls /cygdrive/
c d e
$ regtool get /HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/System/EnableLinkedConnections
$ uname -a
CYGWIN_NT-10.0 Vidyo-LT0519-10 2.3.0(0.291/5/3) 2015-11-02 11:15 x86_64 Cygwin
Is Windows 10 the same?
> I added support for this filesystem (called prlfs in mount output) and
> without hardlink support for now. I uploaded a new developer snapshot
> to https://cygwin.com/snapshots/ Please give it a try.
No, still seeing the failure in the snapshot:
$ ./stat-size-test.exe /cygdrive/y/foo ~/foo
/cygdrive/y/foo: fstat: st_size=0
/cygdrive/y/foo: stat: st_size=12
/home/jonathan/foo: fstat: st_size=12
/home/jonathan/foo: stat: st_size=12
$ uname -a
CYGWIN_NT-10.0 Vidyo-LT0519-10 2.3.0(0.291/5/3) 2015-11-02 11:15 x86_64 Cygwin
(See https://cygwin.com/ml/cygwin/2014-04/msg00488.html for the source code
to stat-size-test.c).
Oddly, though, the original problematic behavior I saw in emacs (with it
falsely detecting files as being modified externally) has gone away. Maybe
emacs added a workaround for this?
--
Jonathan Lennox
lennox@cs.columbia.edu
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
next prev parent reply other threads:[~2015-11-02 13:08 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-21 18:27 lennox
2014-04-21 18:35 ` Andrey Repin
2014-04-21 18:46 ` lennox
2014-04-22 8:16 ` Corinna Vinschen
2014-04-22 16:09 ` lennox
2014-04-22 20:57 ` lennox
2014-04-23 8:41 ` Corinna Vinschen
2014-04-23 16:47 ` lennox
2014-04-23 17:24 ` Corinna Vinschen
2015-10-08 16:16 ` Jonathan Lennox
2015-10-21 11:07 ` Corinna Vinschen
2015-11-02 9:38 ` Jonathan Lennox
2015-11-02 11:23 ` Corinna Vinschen
2015-11-02 13:08 ` Jonathan Lennox [this message]
2015-11-02 14:06 ` Corinna Vinschen
2015-11-02 22:05 ` Jonathan Lennox
2015-11-03 12:19 ` Corinna Vinschen
2015-11-04 6:35 ` Jonathan Lennox
2015-11-04 9:45 ` Corinna Vinschen
2015-11-02 12:52 ` cyg Simple
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=22071.24647.434328.551494@compute03.cs.columbia.edu \
--to=lennox@cs.columbia.edu \
--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).