The 'mount' function different from Linux

Eric Blake eblake@redhat.com
Fri Aug 17 09:46:00 GMT 2018


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



More information about the Cygwin mailing list