This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: The 'mount' function different from Linux
- From: Eric Blake <eblake at redhat dot com>
- To: cygwin at cygwin dot com, eldlistmailingz at tropicsoft dot com
- Date: Thu, 16 Aug 2018 16:33:29 -0500
- Subject: Re: The 'mount' function different from Linux
- References: <1e1e10c0-fa24-0191-7f8e-c8748184d079@tropicsoft.com>
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