delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/01/25/21:25:25

From: noer AT cygnus DOT com (Geoffrey Noer)
Subject: Re: global mounts
25 Jan 1999 21:25:25 -0800 :
Message-ID: <19990125211328.A7229.cygnus.cygwin32.developers@cygnus.com>
References: <01BE48A5 DOT 16078D70 AT sos>
Mime-Version: 1.0
To: Sergey Okhapkin <sos AT prospect DOT com DOT ru>
Cc: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>

On Mon, Jan 25, 1999, Sergey Okhapkin wrote:
> 
> How will you implement "mount -g" this case? What about to open
> global area in read only mode only if open in read/write mode fails?

OK, I've rewritten things such that mounts are always read in KEY_READ
mode which will succeed for both user and global mounts.

Now the trick is to detect failure and make mounts to the system
registry fail correctly when the user doesn't have the necessary
permissions to create a system mount.  As things stand now, the system
mount appears to succeed but the mount only makes it into the internal
mount table to dissappear the next time mounts are read.  Shouldn't
be too hard to fix...

-- 
Geoffrey Noer
noer AT cygnus DOT com

- Raw text -


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