From owner-freebsd-current@FreeBSD.ORG Sat Apr 28 18:13:06 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 50622106566B for ; Sat, 28 Apr 2012 18:13:06 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id C9F968FC15 for ; Sat, 28 Apr 2012 18:13:05 +0000 (UTC) Received: by bkvi17 with SMTP id i17so503108bkv.13 for ; Sat, 28 Apr 2012 11:13:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dDtbyF/GI9SZIfQSIufROQiiZlQjL834NyRjywN8ruo=; b=s7V1k5Bitcx3M0MPjWmk256Dnb5oGv15JxzlWTTIX2K3lgJAozD7yR+yJP9+s0aTTK XUjrBp2HvJ0qca/qg9+Hny8/MUfM0yVauVbTINkJnHqS43yXXFKCtbieeDb59sTheHRU BNXpA/tUMBTc6vJc18XpoCoJdkfNXTAx51yVQYblriFk3LEKoj1S9aVZnwmdvtqOLKVb Cds+7sYqlSvZcutM9lGDF4nIUCxChEaIzXCEbRRNBqyCCoFBKkwPwSACwX/AUYIp+tOx oDad5kn9Q0AP6etgxt7KUouo36n38Pi4J7aR2o3kdNC+PGrbqJ5q30OruOie1E7ZT/Jz n6HA== MIME-Version: 1.0 Received: by 10.204.154.28 with SMTP id m28mr5174110bkw.102.1335636784534; Sat, 28 Apr 2012 11:13:04 -0700 (PDT) Received: by 10.204.171.138 with HTTP; Sat, 28 Apr 2012 11:13:04 -0700 (PDT) Received: by 10.204.171.138 with HTTP; Sat, 28 Apr 2012 11:13:04 -0700 (PDT) In-Reply-To: References: <4F746F1E.6090702@mail.zedat.fu-berlin.de> <4F74BCE8.2030802@vangyzen.net> <20120330.151848.41706133.sthaug@nethelp.no> Date: Sat, 28 Apr 2012 18:13:04 +0000 Message-ID: From: Chris Rees To: Luke Dean Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org Subject: Re: Using TMPFS for /tmp and /var/run? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 18:13:06 -0000 On 28 Apr 2012 19:04, "Luke Dean" wrote: > > > > On Fri, 30 Mar 2012, Chris Rees wrote: > >> On 30 Mar 2012 14:26, wrote: >>> >>> >>>>> However, if you always want to use tmpfs instead of stable storage, >>>> >>>> please do not. Some people expect /tmp to be persistent. This is why >>>> /etc/defaults/rc.conf has clear_tmp_enable="NO". Changing this would >> >> break >>>> >>>> the POLA. >>>>> >>>>> >>>> This is a mistake. >>>> >>>> The default should be clear_tmp_enable="YES" >>>> if only to uncover those broken configurations that expect /tmp to be >>>> persistent. >>> >>> >>> If you want to break POLA and make a lot of people angry, sure. >>> Otherwise no. >>> >> >> I would very much like an example of where /tmp is expected to persist. >> >> Chris > > > Yes, I'm a month behind on my mailing list reading and this conversation is probably over, but I do have a personal example. > > In my periodic.conf, I have: > daily_clean_tmps_enable="YES" > daily_clean_tmps_days="30" > > I tend to have many distractions and work on many projects at the same > time. I don't always know when I'm finished. Sometimes I just lose > interest. I often don't remember to clean up after myself. > > These settings in periodic.conf allow me to set up temporary workspaces in /tmp. If I keep working on a project, my files remain. If I forget about it for a month, periodic will clean up my mess. > > If someday the default behavior were changed to make /tmp a memory-mounted filesystem or to clean it out on every reboot, I think I could set daily_clean_tmps_dirs to another directory and move my sandbox someplace else. I would very much appreciate some warning, but this would not be a problem for me. You should use /var/tmp for that, or another custom directory if you want your files safe. Chris