X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 44EC938618BC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1701422315; bh=9x2y9+KXShIP3NTLD4blKEVv9EbUE8UCK4nd4vvgySI=; 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=To2tN3KXW0BiCkoKJhbX22VLjemv1pPhTBDOBNTDIWlZy36gtOkN7IRXmhv2rRFFt 1on2hP+ZQ63nX9VFRuFcXGwF2sT0mG7glglUnsgcyOqNPc9spN038i1nPn5DTr35sg Kde6p4YhwS7tK9OCWkwRTQv+ewVqzEfChsCkioO8= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 51A7D385AC22 Date: Fri, 1 Dec 2023 10:18:16 +0100 To: cygwin AT cygwin DOT com Subject: Re: "Lazy" bind mounts? Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Nov 30 04:53, Martin Wege via Cygwin wrote: > Hello, > > if I do a mount -o bind //foo/bar/baz /mnt the UNC path //foo/bar/baz > is evaluated immediately, i.e. the network share //foo/bar/baz is > "mounted" immediately. > > Is it possible to mount //foo/bar/baz only the first time someone does > a cd /mnt, sort of automounter-style "lazy" mount-on-demand? No, what would that be good for? Cygwin mounting is not real mounting, that's what the OS is doing. Therefore, Cygwin mounts are "soft" mounts anyway. They are only used during path evaluation, and only if the path starts with a matching string. 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