Web lists-archives.com

Re: The 'mount' function different from Linux

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