delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/30/07:17:13

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:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=o/Zdv2YeRbAdbAwHAnDHk8MKl+a4ecIRo57Ylq90CHJSzje+QoHgn
UkWnKsGYQQSwh5I/I8k7qoPFfmGY37BnWqwBoCKfarGEXha+IVwmXlAwusBeXDJo
Vfp6pa2zeC/pA7CxqC1iH2Sf2BxpxJnriye13E7jPIXmITO03CG7c4=
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:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=UQhi974qk8nerFOE/a5xDjMC8Hc=; b=YN5IU9WRnmWTPTs6/lBaywkoshGd
7vR3SCt3zyiyz+Pw3q1lnqN4nkNon7Sr9EBJxsgxZ7kSyHjI2BxFLDoC4CSoYaLY
UArxtiuHPB0SBBNP3jvdLbQQZDjgeFKR7krlk4uEamneBe/a6KacW2qIQ7qvWfpW
OqeYbrszoyWLM0U=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Mon, 30 Mar 2015 13:16:51 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: "cannot create hard link X to Y: Operation not permitted" on ext2fsd-mounted ext2 drive from cygwin cp -al
Message-ID: <20150330111651.GA10785@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <55140163 DOT 1080703 AT brantaero DOT com>
MIME-Version: 1.0
In-Reply-To: <55140163.1080703@brantaero.com>
User-Agent: Mutt/1.5.23 (2014-03-12)

--ZGiS0Q5IWpPtfppv
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mar 26 08:53, Kevin Field wrote:
> Hi everyone.
>=20
> This is a cross-post from SuperUser.com .  If you're a StackExchange memb=
er
> please feel free to answer it at http://superuser.com/questions/894015/ca=
nnot-create-hard-link-x-to-y-operation-not-permitted-on-ext2-drive-from-cyg
>=20
> In one comment you'll see there, someone has proposed that cygwin will on=
ly
> try NTFS hardlinks, even if the mounted drive is ext2 via ext2fsd.  Maybe
> someone here could confirm that, or if it's not true...help me find a
> solution :)  Thanks, -Kev
>=20
> -------------------
>=20
> /cygdrive/d/ is a USB hard disk formatted as ext2 and mounted with
> [ext2fsd][1].
>=20
> When I try `cp -al /cygdrive/d/X /cygdrive/d/Y` where X is a file, I get =
the
> error in the title.
>=20
> Things I've Tried/Verified
> ---
>=20
> I did `chmod -R 777 /cygdrive/d` but I still get the same result.
>=20
> I am running as local administrator, who is the owner of /cygdrive/d.
>=20
> X is a file, not a directory.
>=20
> Windows Server 2012 R2 running cygwin64 current as of today.
>=20
> It's ext2 because I can, for example, `touch
> /cygdrive/d/filename_with_a_colon:in_it` and it works and I can see it wi=
th
> `ls`.  Not to mention, it says so in ext2fsd and the Windows Disk Manager.
>=20
> Ironically, the same syntax on an NTFS drive works fine and creates an NT=
FS
> hardlink.
>=20
> I've also tried reformatting the drive as ext3, with the same results. I
> *had* figured on ext2 being more likely to be fully supported on account =
of
> it being older than ext3/4, but I guess it doesn't make a difference.
>=20
> The question
> --
>=20
> How can I create simple ext2 hardlinks with cygwin?

Does ext2fsd support creating hardlinks?  The reason I'm asking is that
Cygwin does not create hardlinks out of the blue.  It certainly doesn't
communicate with a driver directly.  It just calls the underlying system
call NtSetInformationFile(FileLinkInformation).  If that doesn't work,
neither Cygwin nor any other Windows applications have a chance to
create a hardlink.

Alternatively, does the CMD.exe `mklink /h' call work?  If so, ext2fsd
requires another set of flags to create hardlinks than NTFS, apparently.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--ZGiS0Q5IWpPtfppv
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJVGTCjAAoJEPU2Bp2uRE+gkh8P+wVrnhRqViFcz4rj7T8szk8j
9Kum8aliW8WIxduL4QP/Jqno3hYu1REd7pPywtuItDMjHzLr8HGw81XZCk90fGKt
ihsTJOFn6wjZ8jmHbje7jCFHSIQExew/7TfAp0f1Gwxwt9hDjOy7ra4svliMdCti
8HGFTye+qQkdteJlruUKQC8NUSF+nTOEs6oS2YZTficFfCkgmYY8xOaqkwt1wA4e
XJ1FXSeQec54/CDu4MU/r2xCKc5XbCcbV1BMgpBLi/h1ZnxUGuq4Vk0ARs+VrX+D
9JymZK0epzAvrKFBmsSUk5bH6AwHmSNcTJoaq9z/wnpx/La7pBtcKrAphpLDJZS/
g9SrbXoNy+oQJ6jYCV3LaE/5McRCBruFpVSB3TTswvd55tAME2CmyyyO5veiku71
rwDWj30AGU57cYw0XoYFpi7wgHTr1OFp9tTuMlNcggQSmc3N1eFJhIgxagcQx+FR
4N2buKAs3FAUbq6VZOT5kj4NFYhUnelZ80Pd5LR5UUhlvUsxgaALWfcTsplINqhC
xKx7slAK32uYyAQKep1B2PmOLxN1FFJN13uQyxMKAO8ZsMtxfOQqpJP5iHy3n8IO
1XYinrn6luGB6rVKoOqctIdYyef5DP2JVzkC+/si2njYnajUDqZWPVm/hYWjJcX3
XPgfmeRddYnvDNysP4j4
=weNC
-----END PGP SIGNATURE-----

--ZGiS0Q5IWpPtfppv--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019