delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/08/16/17:33:44

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT cygwin DOT com, eldlistmailingz AT tropicsoft DOT com
References: <1e1e10c0-fa24-0191-7f8e-c8748184d079 AT tropicsoft DOT com>
From: Eric Blake <eblake AT redhat DOT 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>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019