Mounting /tmp at TMP or TEMP as a last resort
Pierre A. Humblet
Thu Sep 9 21:17:00 GMT 2010
----- Original Message -----
From: "Dave Korn"
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 ?
More information about the Cygwin-patches