From nobody@FreeBSD.org  Thu Jan  5 09:34:06 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 37AC2106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  5 Jan 2012 09:34:06 +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 230308FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  5 Jan 2012 09:34:06 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q059Y5PV008498
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 5 Jan 2012 09:34:05 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q059Y5ar008497;
	Thu, 5 Jan 2012 09:34:05 GMT
	(envelope-from nobody)
Message-Id: <201201050934.q059Y5ar008497@red.freebsd.org>
Date: Thu, 5 Jan 2012 09:34:05 GMT
From: Tatsuki Makino <tatsuki_makino@hotmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /etc/periodic/daily/110.clean-tmps tries to unlink /tmp/.sujournal
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         163828
>Category:       conf
>Synopsis:       [patch] /etc/periodic/daily/110.clean-tmps tries to unlink /tmp/.sujournal
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    eadler
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 05 09:40:11 UTC 2012
>Closed-Date:    Fri Jun 22 07:05:09 UTC 2012
>Last-Modified:  Fri Jun 22 07:05:09 UTC 2012
>Originator:     Tatsuki Makino
>Release:        FreeBSD 9.0-STABLE i386
>Organization:
>Environment:
FreeBSD T0.test 9.0-STABLE FreeBSD 9.0-STABLE #0: Wed Jan  4 01:02:55 UTC 2012     root@T0.test:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
When journaled ufs is mounted to /tmp, /etc/periodic/daily/110.clean-tmps tries to unlink /tmp/.sujournal
But it was failed. And it was logged to mail.
>How-To-Repeat:
# mount
/dev/ada0s2e on /tmp (ufs, local, journaled soft-updates)
# echo 'daily_clean_tmps_enable="YES"' >> /etc/periodic.conf
# #wait 3:01am
# mail
omit...

From root@*** Thu Jan  5 03:05:06 2012
Date: Thu, 5 Jan 2012 03:05:06 +0900 (JST)
From: Charlie Root <root@***>
To: root@***
Subject: *** daily run output


Removing old temporary files:
find: -delete: unlink(./.sujournal): Operation not permitted
  /tmp/.sujournal

Removing stale files from /var/preserve:

>Fix:
patch to /etc/defaults/periodic.conf

Patch attached with submission follows:

--- /usr/src/etc/defaults/periodic.conf	2012-01-03 23:44:06.000000000 +0900
+++ ./etc/defaults/periodic.conf	2012-01-05 18:18:24.000000000 +0900
@@ -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:
Responsible-Changed-From-To: freebsd-bugs->eadler 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Sun May 13 22:26:40 UTC 2012 
Responsible-Changed-Why:  
funny report, take 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163828 
State-Changed-From-To: open->analyzed 
State-Changed-By: eadler 
State-Changed-When: Wed May 16 03:44:31 UTC 2012 
State-Changed-Why:  
awaiting approval 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163828 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/163828: commit references a PR
Date: Wed, 30 May 2012 03:51:59 +0000 (UTC)

 Author: eadler
 Date: Wed May 30 03:51:46 2012
 New Revision: 236284
 URL: http://svn.freebsd.org/changeset/base/236284
 
 Log:
   Don't attempt to delete .sujournal in /tmp
   
   PR:		conf/163828
   Submitted by:	Tatsuki Makino <tatsuki_makino@hotmail.com>
   Approved by:	cperciva
   MFC after:	1 week
 
 Modified:
   head/etc/defaults/periodic.conf
 
 Modified: head/etc/defaults/periodic.conf
 ==============================================================================
 --- head/etc/defaults/periodic.conf	Wed May 30 03:50:58 2012	(r236283)
 +++ head/etc/defaults/periodic.conf	Wed May 30 03:51:46 2012	(r236284)
 @@ -47,6 +47,7 @@ daily_clean_tmps_dirs="/tmp"				# Delete
  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
  
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: analyzed->patched 
State-Changed-By: eadler 
State-Changed-When: Wed May 30 04:17:24 UTC 2012 
State-Changed-Why:  
committed, awaiting MFC 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163828 
State-Changed-From-To: patched->closed 
State-Changed-By: eadler 
State-Changed-When: Fri Jun 22 07:05:08 UTC 2012 
State-Changed-Why:  
MFCed 

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