svn commit: r212222 - head/etc/rc.d

Daichi GOTO daichi at FreeBSD.org
Sun Sep 5 05:44:41 UTC 2010


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 \) \


More information about the svn-src-all mailing list