delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:cc:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=QQXXVPmAC46rWGi86Z2Eq9qv2PQqDBoZVT3gk4XIlv09PztUd9SKs | |
G+x8o5jhw6Cns6z6Z5VdQhXFuq7eynp8y9BsMWEMwXmKssdVCpV8d8GcYVurh9NC | |
3Zs7eKK6JhH766USlNYfUOfwR3HHrZQ5AzQm7H0SXFwWzw6SZ+0LjQ= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:cc:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=n93hMJeJtJ7OcZnVbDIbq45zoWU=; b=LcuqDvN9Ly55jpKZkSn+E+QbvFq0 | |
mfQUMBghU5F9e6ttJM2PosVnfyAw8wGsmLMPo3Hcoj1UXf3gTaVo2pOZM8AwRQao | |
IS2jchbM0GGflV6V0PfRatz02mpNuOdPDjOhCMQGlvAeJCacGaMjMGcchFcSybkj | |
dCgAreQmdNWns5A= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Spam-SWARE-Status: | No, score=-100.9 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=supporting, gracefully |
X-HELO: | mout.kundenserver.de |
Date: | Mon, 17 Dec 2018 17:57:41 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Cc: | Simon Liesenfeld <surgeonde AT yahoo DOT de> |
Subject: | Re: symbolic links on Paragon Linux File systems |
Message-ID: | <20181217165741.GB28727@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com, Simon Liesenfeld <surgeonde AT yahoo DOT de> |
References: | <1823593702 DOT 5343751 DOT 1545034298027 DOT ref AT mail DOT yahoo DOT com> <1823593702 DOT 5343751 DOT 1545034298027 AT mail DOT yahoo DOT com> <20181217093428 DOT GQ28727 AT calimero DOT vinschen DOT de> |
MIME-Version: | 1.0 |
In-Reply-To: | <20181217093428.GQ28727@calimero.vinschen.de> |
User-Agent: | Mutt/1.9.2 (2017-12-15) |
--zn4k3Q+N5puqXur4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Dec 17 10:34, Corinna Vinschen wrote: > On Dec 17 08:11, Simon Liesenfeld via cygwin wrote: > > Hi all > >=20 > > There is a commercial ext3-4 file system driver for windowsLinux File > > Systems f=C3=BCr Windows | Paragon Softwarewhich enable Windows to read= an > > write on native ext3-4 volumes.In General cygwin works perfectly on > > such volumes,even named pipes work, > > but Cygwin programs do not interprete those links correctly,which are > > created on such volumes.whilst symbolic links on native NTFS drives > > referring files on such volumeswork perfectly. > > $pwd/cygdrive/e > >=20 > > $ echo hallo > source > >=20 > > $ ln -s source sl > >=20 > > $ cat sl > > !<symlink>=E2=96=92=E2=96=92source >=20 > Yes, we can't do that without special knowledge of the FS. The default > symlinks on Cygwin are only evaluated correctly if the DOS SYSTEM > attribute is set. The ext4 driver can't do that, obviously. >=20 > Are the native symlinks on an ext4 FS converted to NTFS symlinks > on the fly by the driver? Are they visible as symlinks in Windows > or Cygwin? >=20 > If so, you could try setting the environment variable CYGWIN to contain > "winsymlinks:native". This creates native Windows symlinks rather than > the special Cygwin POSIX symlinks. If the driver is handling this > correctly, it should transparently convert them to ext4 symlinks and > they should just work. Answering my own questions: No, the driver does not handle symlinks gracefully *at all*. - Existing symlinks on the FS are handled as if they are simple files. They are in no way identifiable as symlinks by any Windows client. They supposedly only contain the name of the symlink target, which is an arbitrary string. No symlink marker or anything. - DOS file attributes don't work, so we can't use Cygwin's symlink handling, not even by utilizing Windows shortcuts instead of Cygwin symlinks. - Windows native symlinks and transparent conversion to and from ext4 symlinks is not supported. - No ACL handling, not even to fake basic POSIX permissions, so we can't change the permissions at all. I don't think it's worth to go to great length supporting Cygwin symlinks on this FS. They won't be recognized by your Linux installation as symlinks anyway and we'd have to perform excessively slow checks just to recognize them. As a sidenote, the OSS project Ext2Fsd handles symlinks transparently via standard Windows functions. With "CYGWIN=3Dwinsymlinks:native" you can generate real ext4 symlinks transparently. Even the good old Cygwin symlink works on Cygwin without programmatic intervention, albeit those won't be recognized as symlinks by Linux of course. Unfortunately Ext2Fsd didn't learn to handle ext4 with the 64bit FS option set yet. 64bit is default for quite some time. Corinna --=20 Corinna Vinschen Cygwin Maintainer --zn4k3Q+N5puqXur4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlwX1YQACgkQ9TYGna5E T6AnnQ/9G1Vbs6YsU73b2pRBE/OWlvZVunIyYqa6plCgb/8gwxv7uyjmXgYLbC1p cRi0/fA7I1KfdxBlJQr8A79TrJFB6+VvPuzvwVf516NZzrLTdie1hUOA5zBhzzxq C2FoIPu7zReHUC32rCOYhT5ROLvWpr+hm5U3sTH0tkLZPAYjlIM3ukYatlj37Isz RaBzy0ZcQOt9uyBZuDjxF9WKsabEYOSL9gAcWGxNSHbDpSVAUAUpS9rieeSIX/Qe 3AmwJ07MA8FMLcEGFB2NOs4i4vfuulNIIco06sjPGbZwyPgbgnuZb9xtFnJPU2Im 1XzePNP09wkDa++NpJquBoptZu+yIdsQP7S4ZwFYXKe02b8nCKVGDMBro/bxiULm frZbZgfsHFqMm4RCZ7XxQI7XdnmgobKKEUIGGKvKJIljK1jtVi1i4l29KKZY4Law jfHcx9xoYT6AXILeOnWQ/JEznH2ZyKGNbE7ZNwwHl/+H7eg7YoAml0Tx5HCute7P 8mEgWuYnC4vz4y9PlM4RfdIBSp0NfWf54m3ZQ4p6gGSXBz+/jrc33PwXDUhaIZSo 7mKShRXHBG/grmLShRgL4aNfEbcqwB1l5+0hbHJOgg66SdAv5gtoyClj4YJsX/Uu ckDdSkOE3+yo+2AEmtEqrcBHkn1ljIz3D4+ILfhtJxkjsD5vGRw= =Xsog -----END PGP SIGNATURE----- --zn4k3Q+N5puqXur4--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |