delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/05/04:45:56

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=ec+l6wtPYXvQvAN2AdVGiwUew3wx8LsmkF8nUnwko7Z4m5AlkS1BE
m9Oseh9R2lBpfZeh9/0182QyBmxdRH6XpytwuZE6ssYnkkyp9aLsfXfDzA8cQI4k
7Lo7eFFIqffHUoS5YHg7TrvAjNwaxUcc0JrLoZz2WuvPPbWA0FnLig=
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=vLQlIW3iTKdzWXC5CULYNhRyPvY=; b=DlIlpiEoN9Yph5w2yxF0vLvYzC/j
e+qBo8Su3Ggo1jqDlMpD5koMOF64Ugjhn+TT1fHk5HP5TSXvlnEuz/haaPlCE6/X
NAwTlkUO0XUl1WhlqRoof2h19ohgCkpb0+Q3Uh8k9jymHfc+sdZPR39JrL7thTGr
jNWzQH4CZSgKGUE=
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=-5.0 required=5.0 tests=AWL,BAYES_00,UNSUBSCRIBE_BODY autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Wed, 5 Feb 2014 10:45:38 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: How to remount hotplugged USB drive as noacl (for use with rsync)?
Message-ID: <20140205094538.GX2821@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <lcquk0$a6o$1 AT ger DOT gmane DOT org> <274460581 DOT 20140204191024 AT mtu-net DOT ru> <lcr3b7$9vl$1 AT ger DOT gmane DOT org> <255901706 DOT 20140204205005 AT mtu-net DOT ru> <lcrmpt$3ka$1 AT ger DOT gmane DOT org> <52F16008 DOT 5050000 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <52F16008.5050000@gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)

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

On Feb  4 22:47, Marco Atzeri wrote:
> On 04/02/2014 22:41, carolus wrote:
>=20
> >
> >>You're not remounting the Cygwin root.
> >
> >I'm confused by this statement. Isn't /cygdrive/c/cygwin/ the same as
> >Cygwin root?
>=20
> YES

Uhm... no?

You have to look at this from the POSIX path angle.

"/" is not the same as "/cygdrive/c/cygwin", even if, under the hood,
they resolve to the same Windows path.  For every POSIX path, the mount
flags are taken from the matching fstab entry.  So, take two fstab
entries:

  C:/foo /bar some_fs binary 0 0
  C:/foo /baz some_fs text 0 0=20

If you write to a file under /bar, it will be written in binary mode,
if you write to the exact same file under /baz, it will be written in
text mode:

  $ cd /bar
  $ echo Hallo > blub
  $ od -c blub
  0000000   H   e   l   l   o  \n
  0000006
  [~]$ cd /baz
  [~]$ echo Hello > blub
  [~]$ od -c blub
  0000000   H   e   l   l   o  \r  \n
  0000007

Does this example make it clearer?


Corinna

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

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJS8ghCAAoJEPU2Bp2uRE+gnbAP/jtmHYlcgODpFlWn5AgVjKlZ
6Jvp0SLMMtCLGAS7BCLdONEFgi4jVgPn03sCgORZgoVzaH+anrzUdyMoSvBAUs/X
svBUdiEo7f6kMoXKPe9isaKxKqpuE6lnzjU5kwDQiRqkJseqSb8mHf2AQZ12dWQs
YDXQd8J7ERUvXFhmslBqW1YCLWOPKA1cFuGettIMsGwcZtTtxpt1gc+yPE0mVu5H
eK+gjEdn2yxg5TL7pFNvt8kaBM+dlg7/b45zGYHX3Vj1AEGPUBoQuxY4UOibPWoA
4SQKOJ14CdGaUS3lG+TOVjj3nq+vlCuAFpU0sxWJ31xij7j+ZF6lkbIn85MhKvk+
govB9VnInsnkMOL+l8CM2FkimgXM2A+j0OMZMScrSHZGKMeGR825QKJXPsP6+kiz
IG/8r/cPlkQ0/ef+iN0E3UiLdfQgu7ttLKQCFxCVZIfw6zmO5ZhZp61bn7iKxMXk
Fgv2zuxhWvkaGFWGuMBm+muV84ocKVCM5amt4GdlbKlken4Qo06TdYfQVron8pSG
cLk+skrbRoe6QVKMHp9Mg4CVQwf2Xhe9P6aLLgiKFQaWyxuGwfB9yOVrUUgP0C+T
WS8EBTcYcBcdEbgQzP/lmO8XhaDGBX6q0wAMl6ILBIqcwM5GoOv9mq1RscL80ZFl
b1eAFspTEaSPW2fmn3EZ
=A4v0
-----END PGP SIGNATURE-----

--eP8xGX2lG1UwfyBj--

- Raw text -


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