From owner-freebsd-bugs@FreeBSD.ORG Fri Aug 29 08:30:01 2008 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 E35B5106566B for ; Fri, 29 Aug 2008 08:30:01 +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 C20258FC13 for ; Fri, 29 Aug 2008 08:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m7T8U1rC024414 for ; Fri, 29 Aug 2008 08:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7T8U1RR024411; Fri, 29 Aug 2008 08:30:01 GMT (envelope-from gnats) Resent-Date: Fri, 29 Aug 2008 08:30:01 GMT Resent-Message-Id: <200808290830.m7T8U1RR024411@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, Walter Lyle Venable Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 932D91065674 for ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: misc/126936: [BUG] updatedb fails silently when attempting to search a disconnected samba share X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Walter Lyle Venable List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2008 08:30:02 -0000 >Number: 126936 >Category: misc >Synopsis: [BUG] 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: >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.locates cript 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: