Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Sep 2010 05:44:41 +0000 (UTC)
From:      Daichi GOTO <daichi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r212222 - head/etc/rc.d
Message-ID:  <201009050544.o855ifCL057730@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: daichi
Date: Sun Sep  5 05:44:40 2010
New Revision: 212222
URL: http://svn.freebsd.org/changeset/base/212222

Log:
  Avoid to try to remove suj journal file (.sujournal) and conventional
  snapshot directory (.snap) from cleartmp rc.d script.

Modified:
  head/etc/rc.d/cleartmp

Modified: head/etc/rc.d/cleartmp
==============================================================================
--- head/etc/rc.d/cleartmp	Sun Sep  5 04:58:16 2010	(r212221)
+++ head/etc/rc.d/cleartmp	Sun Sep  5 05:44:40 2010	(r212222)
@@ -36,7 +36,10 @@ cleartmp_start()
 		#   it can prevent foot-shooting in future.
 		# + /tmp/lost+found is preserved, but its contents are removed.
 		# + lost+found and quota.* in subdirectories are removed.
+		# + .sujournal and .snap are preserved.
 		find -x ${tmp}/. ! -name . \
+		    ! \( -name .sujournal -type f -user root \) \
+		    ! \( -name .snap -type d -user root \) \
 		    ! \( -name lost+found -type d -user root \) \
 		    ! \( \( -name quota.user -or -name quota.group \) \
 			-type f -user root \) \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009050544.o855ifCL057730>