misc/156703: /usr/bin/find ignores whiteouts even with '-type w'

Oleg A. Mamontov oleg at mamontov.net
Thu Apr 28 16:10:11 UTC 2011


>Number:         156703
>Category:       misc
>Synopsis:       /usr/bin/find ignores whiteouts even with '-type w'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 28 16:10:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Oleg A. Mamontov
>Release:        8-STABLE
>Organization:
Rambler Internet Holding
>Environment:
FreeBSD db02.avia.rambler.ru 8.2-20110302-SNAP FreeBSD 8.2-20110302-SNAP #0: Wed Mar  2 06:41:55 UTC 2011     root at nat-sl.rambler.ru:/usr/obj/usr/src/sys/DEVEL  amd64
>Description:
`/usr/bin/find -type w` doesn't find whiteouts on upper layer of unionfs.
>How-To-Repeat:

>Fix:
--- usr.bin/find/find.c.orig	2011-04-28 19:57:56.000000000 +0400
+++ usr.bin/find/find.c	2011-04-28 19:58:35.000000000 +0400
@@ -210,6 +210,8 @@
 			continue;
 #ifdef FTS_W
 		case FTS_W:
+			if (ftsoptions & FTS_WHITEOUT)
+				break;
 			continue;
 #endif /* FTS_W */
 		}


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list