Date: Thu, 28 Apr 2011 16:02:23 GMT From: "Oleg A. Mamontov" <oleg@mamontov.net> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/156703: /usr/bin/find ignores whiteouts even with '-type w' Message-ID: <201104281602.p3SG2NFD019004@red.freebsd.org> Resent-Message-ID: <201104281610.p3SGAAmG047227@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104281602.p3SG2NFD019004>