X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A99D838582B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1691768281; bh=bYZlnZMZKq96TrtPWAKLpFgVBtq+ZQBMN2OZPiyaXXE=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=sgfZTg8P5JLIE5+bouQSWej+lhk7hN/gvSoWECRW3YN3NYfPOsQSM3eO5QWmoAysz iyZhq1gBa7yupPrCaljfWo3BiM35dsgw/nJ3U9QpA4jlmFIIZsr5yWfgriJJuWePX3 9W557X8AWGyqVoIAcy0733/rAgH47dGVYAgfyDE4= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B07E53858004 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691768263; x=1692373063; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Vh6oDJkkmmazU657uefLRuB/EX/ypexwVDG/ShDyKcI=; b=GJqLl5Q++ajh6RW1JXPsS8i2S6G/xCYMctPp6JHu7Rc2F4qEH8snFKhzIJi4O6D2US pGBX1KIgmoCgwDoYfbOfIwUxGtpkBy40h3NFKdV4YQQamOS4e7Xu5rfTv/s+CNzL+q2y TyP/aJQq2nw2fXe1EjMeaVuY4SGWG15Ur52OeOn71F2RntG5NsC9lJAi+qm640fT5WVN ybv6Q3OzMvJVj1qTz6XgsseTkqOzH9uCsCwHA1klqJhmEGEEVVZ2hj0I7weps5B/jmij 1RmK4Fc9J3eUhmJUsDTptY5ARwlKpKWmAy+b6A5CQA3pG4QD8RopQOkSOSsxuLrKbQJ6 fOjw== X-Gm-Message-State: AOJu0YyaKrG7EnE1jD+2KvbqOcSHV6wgRlXJr9MwBRspsFK+9SofUuxi JIpGVDqx9tpy1Tb8aMNv6v0c0P4wILvdUGXr+sCAiJy0H5r8uK6b X-Google-Smtp-Source: AGHT+IE4G6k2hqNULwDb4+WMrHYzRakPRr5CHNJUMcw5i7pwbZhlqJxxnwkgnSc0EH+AQ+bQY5F/FiUk+9lnxWSeVTE= X-Received: by 2002:a05:6512:12c3:b0:4fb:94fd:6465 with SMTP id p3-20020a05651212c300b004fb94fd6465mr2055414lfg.15.1691768263175; Fri, 11 Aug 2023 08:37:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 11 Aug 2023 17:37:29 +0200 Message-ID: Subject: Re: how to set mount posix=1 option for an existing bind mount? To: cygwin AT cygwin DOT com X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Cedric Blancher via Cygwin Reply-To: Cedric Blancher Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" On Tue, 8 Aug 2023 at 20:53, Corinna Vinschen 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? > 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? Ced -- Cedric Blancher [https://plus.google.com/u/0/+CedricBlancher/] Institute Pasteur -- 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