X-Recipient: archive-cygwin@delorie.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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=I5V+CZcsgweHWiFb
	y2L0Bnwul68fezs2fPB6so9x9IRSxgfYUatj+zHUY/F+fAgtUsmzhDf7M9Y2ME4J
	hHAFaNyHDREGjlBo2UPbaNU41uQ2WUWVQkZPUS5DvlkhZW/e4CwLOCH/O3hiebs+
	CiyERMcFMqfN/DAwqxKKm6AUwH4=
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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=TbVblCOO1x/kQH9GDMCZyb
	Yz7B8=; b=cp+5VG/SpVTiKqSYy8rWA7kX0Vo/Q11DwRa+sSaiGSc35VafXzaOxM
	MZTfRjCk9bxHRfmtpsoo4Y4U9koHF2fV9bydx9qGA3iKJFR1guz0aVM5Jz3iCAUi
	bcqrW2U6xtzsX45Eflt8dy4zN+oSTj5WkaJmjsf+Od6jFEqRnXzcA=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=principal, Engineer, mimic
X-HELO: mx1.redhat.com
Subject: Re: The 'mount' function different from Linux
To: cygwin@cygwin.com, eldlistmailingz@tropicsoft.com
References: <1e1e10c0-fa24-0191-7f8e-c8748184d079@tropicsoft.com>
From: Eric Blake <eblake@redhat.com>
Message-ID: <9ca36e93-7b21-f133-bb82-38ec4949ed05@redhat.com>
Date: Thu, 16 Aug 2018 16:33:29 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <1e1e10c0-fa24-0191-7f8e-c8748184d079@tropicsoft.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 08/16/2018 04:08 PM, Edward Diener wrote:
> The 'mount' function in cygwin is decidedly different from Linux. What 
> is the reason for this ?

- POSIX does not specify mount(1) - it is inherently non-portable and 
platform specific.  So any expectation of similarity between platforms 
is bound to break (as you've discovered)

- Cygwin isn't mounting devices into the OS, but creating mappings for 
Cygwin to use. On Linux, the mount command is actually manipulating 
block devices and the kernel; on Cygwin, everything in the mount command 
is in userspace. Windows as the kernel did the actual device 
manipulation earlier on.  As such, the tool REALLY CANNOT mimic what 
Linux does, because it IS NOT doing the same things.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

