From walt@relnor.com  Fri Aug 29 08:22:18 2008
Return-Path: <walt@relnor.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 932D91065674
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Aug 2008 08:22:18 +0000 (UTC)
	(envelope-from walt@relnor.com)
Received: from relnor.com (c-68-50-11-66.hsd1.md.comcast.net [68.50.11.66])
	by mx1.freebsd.org (Postfix) with ESMTP id 6DE648FC15
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Aug 2008 08:22:18 +0000 (UTC)
	(envelope-from walt@relnor.com)
Received: from relnor.com (localhost [127.0.0.1])
	by relnor.com (8.14.2/8.14.2) with ESMTP id m7T8MHU2021052
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Aug 2008 04:22:17 -0400 (EDT)
	(envelope-from walt@relnor.com)
Received: (from walt@localhost)
	by relnor.com (8.14.2/8.14.2/Submit) id m7T8MHb0021051;
	Fri, 29 Aug 2008 04:22:17 -0400 (EDT)
	(envelope-from walt)
Message-Id: <200808290822.m7T8MHb0021051@relnor.com>
Date: Fri, 29 Aug 2008 04:22:17 -0400 (EDT)
From: Walter Lyle Venable <walt@relnor.com>
Reply-To: Walter Lyle Venable <walt@relnor.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [BUG] updatedb fails silently when attempting to search a disconnected samba share
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         126936
>Category:       bin
>Synopsis:       locate.updatedb(8): updatedb fails silently when attempting to search a disconnected samba share
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 29 08:30:01 UTC 2008
>Closed-Date:    
>Last-Modified:  Fri Aug 29 22:08:39 UTC 2008
>Originator:     Walter Venable
>Release:        FreeBSD 7.0-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD relnor.com 7.0-RELEASE-p3 FreeBSD 7.0-RELEASE-p3 #0: Mon Aug 4 01:48:06 EDT 2008 root@relnor.com:/usr/obj/usr/src/sys/RELNKERN7 amd64

>Description:
locate's updatedb command will fail without displaying any indication
of its failure when it reaches a mounted but no longer physically available
samba share.
>How-To-Repeat:
First, run updatedb via either the 310.locate script or locate.updatedb.
Check the size of this file, and maybe even make a diff for later
comparison (locate "" > diff1)

On the FreeBSD system, mount a samba share from another Windows PC on the
LAN.  Turn the Windows PC off without unmounting the share on the FreeBSD
system.  Run updatedb again with eitehr 310.locate or locate.updatedb.
It will finish wihout showing any error.

Now any file that would be checked by updatedb after /mnt is not found by
"locate".  (try a new diff: locate "" > diff2)

Compare the diffs, and notice that the second one stops at /mnt
>Fix:
I'd supply a patch if I had any coding ability, so unfortunately, this
PR is as far as I can help.
>Release-Note:
>Audit-Trail:
>Unformatted:
