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
>Synopsis: [BUG] updatedb fails silently when attempting to search a disconnected samba share
>Arrival-Date: Fri Aug 29 08:30:01 UTC 2008
>Originator: Walter Venable
>Release: FreeBSD 7.0-RELEASE-p3 amd64
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
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.
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
I'd supply a patch if I had any coding ability, so unfortunately, this PR is as far as I can help.
More information about the freebsd-bugs