From nobody@FreeBSD.org  Tue Oct  2 08:55:27 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 31C47106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 Oct 2012 08:55:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 1C02E8FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 Oct 2012 08:55:27 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q928tQ7H086194
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 2 Oct 2012 08:55:26 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q928tQUh086177;
	Tue, 2 Oct 2012 08:55:26 GMT
	(envelope-from nobody)
Message-Id: <201210020855.q928tQUh086177@red.freebsd.org>
Date: Tue, 2 Oct 2012 08:55:26 GMT
From: Mike Bristow <mike@urgle.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] periodic job clean-tmps should ignore .sujournal too
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         172269
>Category:       conf
>Synopsis:       [PATCH] periodic job clean-tmps should ignore .sujournal too
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 02 09:00:12 UTC 2012
>Closed-Date:    Wed Oct 03 07:04:17 UTC 2012
>Last-Modified:  Wed Oct 03 07:04:17 UTC 2012
>Originator:     Mike Bristow
>Release:        9.0-RELEASE
>Organization:
>Environment:
FreeBSD cheddar.urgle.com 9.0-RELEASE-p4 FreeBSD 9.0-RELEASE-p4 #0: Tue Aug  7 18:18:28 BST 2012     root@cheddar.urgle.com:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
If you have a seperate filesystem for /tmp with journaled soft-updates enabled, then the periodic job clean-tmps will moan every day, saying "find: -delete: unlink(./.sujournal): Operation not permitted"


>How-To-Repeat:
as above
>Fix:

The following patch will supress the error.

--- src/etc/defaults/periodic.conf.orig 2011-11-11 04:20:22.000000000 +0000
+++ src/etc/defaults/periodic.conf      2012-10-02 09:51:28.000000000 +0100
@@ -47,6 +47,7 @@
 daily_clean_tmps_days="3"                              # If not accessed for
 daily_clean_tmps_ignore=".X*-lock .X11-unix .ICE-unix .font-unix .XIM-unix"
 daily_clean_tmps_ignore="$daily_clean_tmps_ignore quota.user quota.group .snap"
+daily_clean_tmps_ignore="$daily_clean_tmps_ignore .sujournal"
                                                        # Don't delete these
 daily_clean_tmps_verbose="YES"                         # Mention files deleted


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: brian 
State-Changed-When: Wed Oct 3 07:03:49 UTC 2012 
State-Changed-Why:  
Dup of conf/163828 (which is already applied and MFC'd) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172269 
>Unformatted:
