From jau@cs78135006.pp.htv.fi  Mon Jan 14 01:14:55 2002
Return-Path: <jau@cs78135006.pp.htv.fi>
Received: from cs78135006.pp.htv.fi (cs78135006.pp.htv.fi [62.78.135.6])
	by hub.freebsd.org (Postfix) with ESMTP id B90B837B402
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 14 Jan 2002 01:14:53 -0800 (PST)
Received: (from jau@localhost)
	by cs78135006.pp.htv.fi (8.9.3/8.9.3/JAU-2.2) id LAA08405;
	Mon, 14 Jan 2002 11:14:51 +0200 (EET)
Message-Id: <200201140914.LAA08405@cs78135006.pp.htv.fi>
Date: Mon, 14 Jan 2002 11:14:51 +0200 (EET)
From: "Jukka A. Ukkonen" <jau@cs132140.pp.htv.fi>
Reply-To: jau@iki.fi
To: FreeBSD-gnats-submit@freebsd.org
Subject: Sun style find options -mount & -local
X-Send-Pr-Version: 3.2

>Number:         33870
>Category:       bin
>Synopsis:       The find command deserves new options -mount, -local
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 14 01:20:01 PST 2002
>Closed-Date:    Wed Jan 16 07:24:38 PST 2002
>Last-Modified:  Wed Jan 16 07:27:27 PST 2002
>Originator:     Jukka A. Ukkonen
>Release:        FreeBSD 3.5.1-RELEASE i386
>Organization:
Private person
>Environment:

	All FreeBSD releases before and including 4.4

>Description:

	Sometimes the options -mount (aka -xdev), -local, etc.
	have proven to be quite useful on Sun/Solaris systems.
	Following the same logic would probably be beneficial
	also for the BSD systems.

>How-To-Repeat:

	Read the find manual pages on FreeBSD and Solaris-2.8,
	and compare the available options.

>Fix:
	
	Checking the st_dev, st_ino, and st_rdev fields in
	the stat structure and comparing them to those of
	the starting point given to find should do the trick.

	No patch yet, though it should be relatively easy
	add these features. Sorry.

>Release-Note:
>Audit-Trail:

From: Peter Pentchev <roam@ringlet.net>
To: jau@iki.fi
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/33870: Sun style find options -mount & -local
Date: Mon, 14 Jan 2002 13:52:02 +0200

 On Mon, Jan 14, 2002 at 11:14:51AM +0200, Jukka A. Ukkonen wrote:
 > 
 > >Number:         33870
 > >Category:       bin
 > >Synopsis:       The find command deserves new options -mount, -local
 > >Originator:     Jukka A. Ukkonen
 > >Release:        FreeBSD 3.5.1-RELEASE i386
 > >Organization:
 > Private person
 > >Environment:
 > 
 > 	All FreeBSD releases before and including 4.4
 > 
 > >Description:
 > 
 > 	Sometimes the options -mount (aka -xdev), -local, etc.
 > 	have proven to be quite useful on Sun/Solaris systems.
 > 	Following the same logic would probably be beneficial
 > 	also for the BSD systems.
 
 FreeBSD's find(1) already has -xdev; as far as -local goes,
 does '-fstype local' do the trick?  It seems to work for me
 on a 4.5-RC system.
 
 If these options already have the desired behavior, then
 it would indeed be easy to make shortcut/alias options named
 -mount and -local.
 
 G'luck,
 Peter
 
 -- 
 When you are not looking at it, this sentence is in Spanish.
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Wed Jan 16 07:24:38 PST 2002 
State-Changed-Why:  
The -mount and -local primitives are non-standard, and FreeBSD 
already provides a standard -xdev (for -mount) and non-standard 
-fstype (for -local) alternatives. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33870 
>Unformatted:
