X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BA90B3858439
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1691520809;
	bh=DEF8rwp0TBIpO/AsVKDHSwHU1Y3QkhXzAhG6wDeo/Yk=;
	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=PPMQM+/zL99sYxXKUiztFAh3c0dsJdyWVgftQjqfLXP5OLhF54Jw5ibwrd0RYv6Ak
	 18VjselzRuFV3uaHBseH7/+Zw5dkJk6udtO9QSp2K1dvjwJRw5u/D8teuVsuWw4kCy
	 DqNbJjMd6KbkMDk12CDSZE8+QrAK62+TPS2qd0js=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5A0693858D20
Date: Tue, 8 Aug 2023 20:53:15 +0200
To: Cedric Blancher <cedric.blancher@gmail.com>
Subject: Re: how to set mount posix=1 option for an existing bind mount?
Message-ID: <ZNKPG8xeGT65WxSS@calimero.vinschen.de>
Mail-Followup-To: Cedric Blancher <cedric.blancher@gmail.com>,
 cygwin@cygwin.com
References: <CALXu0UfCjqhak_VRogTgvH-qf_Taheg4t5qdA4reAwNf_u0sNQ@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <CALXu0UfCjqhak_VRogTgvH-qf_Taheg4t5qdA4reAwNf_u0sNQ@mail.gmail.com>
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Corinna Vinschen <corinna-cygwin@cygwin.com>, cygwin@cygwin.com
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

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.

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.


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
