This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Mounting /tmp at TMP or TEMP as a last resort


----- Original Message ----- 
From: "Dave Korn" 
To: <cygwin-patches>
Sent: Thursday, September 09, 2010 16:03


| On 08/09/2010 23:41, Christopher Faylor wrote:
| >  Corinna may disagree,
| 
|  Needless to say, I'm not Corinna!
| 
| > but I think we
| > should keep the parsing of /etc/fstab as lean as possible; 
| 
|  I don't understand why.  How many times per second does /etc/fstab get parsed?

My problem with the original patch is that the mountinfo is kept per user, if my
memory is correct, and /etc/fstab is parsed by the first process of a user.

So, for example, if the user logs in interactively while a cron job (or another service)
is running, /tmp may be mapped differently than if no cron job is running, because
TMP may be defined differently in the service environment.
That is not desirable.

Corinna's suggestions are more appealing. If there are objections to using a 
/etc/profile.d/tmp-mnt.sh or an installer script, why not have /etc/profile 
(or such) create /etc/fstab.d/$USER on the fly if needed ?

Pierre 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]