public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* The 'mount' function different from Linux
@ 2018-08-17  9:41 Edward Diener
  2018-08-17  9:46 ` Eric Blake
  0 siblings, 1 reply; 2+ messages in thread
From: Edward Diener @ 2018-08-17  9:41 UTC (permalink / raw)
  To: cygwin

The 'mount' function in cygwin is decidedly different from Linux. What 
is the reason for this ?


--
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: The 'mount' function different from Linux
  2018-08-17  9:41 The 'mount' function different from Linux Edward Diener
@ 2018-08-17  9:46 ` Eric Blake
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Blake @ 2018-08-17  9:46 UTC (permalink / raw)
  To: cygwin, eldlistmailingz

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-16 21:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-17  9:41 The 'mount' function different from Linux Edward Diener
2018-08-17  9:46 ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).