misc/126936: [BUG] updatedb fails silently when attempting to search a disconnected samba share

Walter Lyle Venable walt at relnor.com
Fri Aug 29 08:30:02 UTC 2008


>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 at 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:


More information about the freebsd-bugs mailing list