Subject: bin/2394: whiteout support for find(1)
To: None <gnats-bugs@NetBSD.ORG>
From: Mike Long <mike.long@analog.com>
List: netbsd-bugs
Date: 05/11/1996 03:51:56
>Number: 2394
>Category: bin
>Synopsis: whiteout support for find(1)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat May 11 04:20:01 1996
>Last-Modified:
>Originator: Mike Long <mike.long@analog.com>
>Organization:
Huh?
>Release: 960510
>Environment:
System: NetBSD azathoth 1.1B NetBSD 1.1B (AZATHOTH) #56: Fri May 10 03:20:54 EDT 1996 root@azathoth:/usr/src/sys/arch/i386/compile/AZATHOTH i386
>Description:
This enhancement for find makes it a bit easier to hunt down
dangling whiteouts. It adds 'W' to the list of types that the -type
primitive understands.
>How-To-Repeat:
Left as an exercise for the reader.
>Fix:
Apply this patch:
*** src/usr.bin/find/function.c.orig Fri Oct 13 23:08:48 1995
--- src/usr.bin/find/function.c Wed Dec 20 01:18:00 1995
***************
*** 876,879 ****
--- 876,884 ----
switch (typestring[0]) {
+ #ifdef S_IFWHT
+ case 'W':
+ mask = S_IFWHT;
+ break;
+ #endif
case 'b':
mask = S_IFBLK;
*** src/usr.bin/find/find.1.orig Sun Jan 14 07:24:27 1996
--- src/usr.bin/find/find.1 Thu Mar 14 02:33:43 1996
***************
*** 299,302 ****
--- 299,304 ----
.Pp
.Bl -tag -width flag -offset indent -compact
+ .It Cm W
+ whiteout
.It Cm b
block special
>Audit-Trail:
>Unformatted: