From owner-freebsd-bugs@FreeBSD.ORG Thu Apr 28 16:10:11 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C66A81065679 for ; Thu, 28 Apr 2011 16:10:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D4CE08FC17 for ; Thu, 28 Apr 2011 16:10:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p3SGAA5c047228 for ; Thu, 28 Apr 2011 16:10:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p3SGAAmG047227; Thu, 28 Apr 2011 16:10:10 GMT (envelope-from gnats) Resent-Date: Thu, 28 Apr 2011 16:10:10 GMT Resent-Message-Id: <201104281610.p3SGAAmG047227@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Oleg A. Mamontov" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69A511065673 for ; Thu, 28 Apr 2011 16:02:24 +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 5961D8FC1D for ; Thu, 28 Apr 2011 16:02:24 +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 p3SG2NSH019005 for ; Thu, 28 Apr 2011 16:02:23 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p3SG2NFD019004; Thu, 28 Apr 2011 16:02:23 GMT (envelope-from nobody) Message-Id: <201104281602.p3SG2NFD019004@red.freebsd.org> Date: Thu, 28 Apr 2011 16:02:23 GMT From: "Oleg A. Mamontov" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/156703: /usr/bin/find ignores whiteouts even with '-type w' X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2011 16:10:11 -0000 >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@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: