delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 24EA73858C2D |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
s=default; t=1692006415; | |
bh=wuhLOwamqcw8tti4FOlNm8Bv4HrcGC4apbU8xvqbqpM=; | |
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: | |
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: | |
From; | |
b=pbvbf7tuvq3zXlpBZ8IzNP6Nyk/TUkm1sSe3ANvJ1ZMqUOFpciS4Tj6Om5PkXY42p | |
55mcZUxDKcqHf84olTAK26uh8rx29YKRDniFMt+Dt4S8GMIirhFb/KE6USAtXyn2mb | |
06P1aUHVUV2YwGWU4vOvVQoxUVyogGjBhoHxAZbc= | |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org C1F303858D39 |
Date: | Mon, 14 Aug 2023 11:46:34 +0200 |
To: | Cedric Blancher <cedric DOT blancher AT gmail DOT com> |
Subject: | Re: how to set mount posix=1 option for an existing bind mount? |
Message-ID: | <ZNn3+lDK5d0ZQJP1@calimero.vinschen.de> |
Mail-Followup-To: | Cedric Blancher <cedric DOT blancher AT gmail DOT com>, |
cygwin AT cygwin DOT com | |
References: | <CALXu0UfCjqhak_VRogTgvH-qf_Taheg4t5qdA4reAwNf_u0sNQ AT mail DOT gmail DOT com> |
<ZNKPG8xeGT65WxSS AT calimero DOT vinschen DOT de> | |
<CALXu0UcBZE74EVbYc=EQ+UK6z4Rb-DAk__DRK71+eaOsQ7fZAA AT mail DOT gmail DOT com> | |
MIME-Version: | 1.0 |
In-Reply-To: | <CALXu0UcBZE74EVbYc=EQ+UK6z4Rb-DAk__DRK71+eaOsQ7fZAA@mail.gmail.com> |
X-BeenThere: | cygwin AT cygwin DOT com |
X-Mailman-Version: | 2.1.29 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Unsubscribe: | <https://cygwin.com/mailman/options/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
From: | Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
Cc: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com>, cygwin AT cygwin DOT com |
Errors-To: | cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com |
Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
On Aug 11 17:37, Cedric Blancher via Cygwin wrote: > On Tue, 8 Aug 2023 at 20:53, Corinna Vinschen <corinna-cygwin AT cygwin DOT com> wrote: > > > > On Aug 8 16:52, Cedric Blancher via Cygwin wrote: > > > Good afternoon! > > > > > > How do I set mount posix=1 option for an existing bind mount? mount -o > > > remount does not work. > > > > Did you read https://cygwin.com/cygwin-ug-net/mount.html? > > > > Mount points created by mount(1) only exist in the current user session, > > and they will disappear with the last process of that user. > > Where are the sessions stored? How can I list, create and destroy sessions? I'm talking about Windows sessions. Cygwin just has a shared memory shared between all processes of a user session. That's where the mount points are stored. Shared memory is not persistent and destroyed (by Windows) as soon as the last process having a HANDLE on that shared memory exits. > > Our mount(1) doesn't support remount, so you have to unmount and mount > > again. Again, this only affects the current user session, not other > > users on the system. > > > > Last but not least, posix=1 is default and is not shown in the output > > of mount(1). Only posix=0 will be printed. So this: > > > > C:/foo on /home/bar type smbfs (binary,user,bind) > > > > means the mount point is mounted with posix=1. > > But on my Cygwin 4.7 installation C: defaults to posix=1 > > posix=0 is default for /cygwin/c: > $ mount > C:/cygwin64/bin on /usr/bin type ntfs (binary,auto) > C:/cygwin64/lib on /usr/lib type ntfs (binary,auto) > C:/cygwin64 on / type ntfs (binary,auto) > C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto) > > Why? Where do I change the default? https://cygwin.com/cygwin-ug-net/using.html#mount-table https://cygwin.com/cygwin-ug-net/using.html#cygdrive Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |