Date: 14 Apr 2001 20:22:52 -0700 From: psglenn@uswestmail.net To: freebsd-stable@FreeBSD.org Subject: /weekly/310locate truncates db Message-ID: <20010415032252.20512.cpmta@c000.sfo.cp.net>
next in thread | raw e-mail | index | archive | help
Hi, my weekly 310.locate script using defaults in /etc/locate.rc produces a database which contains only a few file systems output I'm not yet sure when this stopped working but I wonder if anyone else is seeing this ? Now after reading man locate I know that if directories are not readable by user `nobody' find will skip them but the 'ls / ' below shows world readability, and I'm actually not sure that makes perfect sense let paranoia tell it. But this system is not permanently connected. P S Glenn uname -a FreeBSD big.psf.his.org 4.3-RC FreeBSD 4.3-RC #3: Tue Apr 3 01:10:08 PDT 2001 root@big.psf.his.org:/usr/src/sys/compile/BIG i386 < the truncated database > (after sh /etc/periodic/weekly/310.locate) ls /var/db/locate.database -r--r--r-- 1 nobody wheel 342 Apr 14 17:56 /var/db/locate.database locate -s Database: /var/db/locate.database Compression: Front: 61.95%, Bigram: 84.21%, Total: 38.05% Filenames: 16, Characters: 226, Database size: 342 Bigram characters: 54, Integers: 2, 8-Bit characters: 0 using find / -print | /usr/libexec/locate.mklocatedb > locate.database gives me everything. With no pruning . ls /root/locate.datbase -r--r--r-- 1 root wheel 946136 Apr 14 17:56 locate.database locate -s -d /root/locate.database Database: locate.database Compression: Front: 18.35%, Bigram: 63.21%, Total: 13.41% Filenames: 164591, Characters: 7051714, Database size: 946136 Bigram characters: 348087, Integers: 2154, 8-Bit characters: 0 df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad4s1a 297663 60230 213620 22% / /dev/ad4s2g 5356477 2538747 2389212 52% /back /dev/ad4s1g 5485853 875935 4171050 17% /usr /dev/ad4s2e 2032623 175324 1694690 9% /usr/ports /dev/ad4s2f 2032623 244018 1625996 13% /usr/ports/distfiles /dev/ad4s1e 297663 3334 270516 1% /var /dev/ad6s1g 5830989 302753 5061757 6% /backup procfs 4 4 0 100% /proc /dev/ad6s1e 1016303 296786 638213 32% /usr/obj /dev/ad4s1f 3048942 29160 2775867 1% /home /dev/ad6s1f 1016303 10 934989 0% /tmp ls / total 8482 drwxr-xr-x 22 root wheel 512 Apr 14 02:30 ./ drwxr-xr-x 22 root wheel 512 Apr 14 02:30 ../ -rw-r--r-- 2 root wheel 802 Mar 26 22:58 .cshrc -rw-r--r-- 2 root wheel 251 Nov 20 04:03 .profile -r--r--r-- 1 root wheel 4735 Nov 20 04:03 COPYRIGHT drwxr-xr-x 3 root wheel 512 Apr 7 12:40 back/ drwxr-xr-x 2 root wheel 512 Apr 14 18:13 backup/ drwxr-xr-x 2 root wheel 1024 Apr 14 02:31 bin/ drwxr-xr-x 3 root wheel 512 Apr 14 02:37 boot/ drwxr-xr-x 2 root wheel 512 Mar 26 17:06 cdrom/ drwxr-xr-x 2 root wheel 512 Mar 26 17:06 cdrom1/ lrwxr-xr-x 1 root wheel 11 Mar 26 17:12 compat@ -> /usr/compat drwxr-xr-x 4 root wheel 15360 Apr 14 18:04 dev/ drwxr-xr-x 2 root wheel 512 Mar 26 17:07 dist/ drwxr-xr-x 18 root wheel 2560 Apr 14 18:30 etc/ drwxr-xr-x 4 root wheel 512 Apr 14 18:28 home/ -r-xr-xr-x 1 root wheel 2721956 Apr 9 23:11 kernel* -r-xr-xr-x 1 root wheel 3258128 Nov 20 05:02 kernel.GENERIC* -r-xr-xr-x 1 root wheel 2613771 Apr 5 02:21 kernel.old* drwxr-xr-x 2 root wheel 512 Nov 20 03:56 mnt/ drwxr-xr-x 2 root wheel 3072 Apr 9 23:11 modules/ drwxr-xr-x 2 root wheel 3072 Mar 31 18:46 modules.old/ lrwxr-xr-x 1 root wheel 10 Mar 27 09:50 ports@ -> /usr/ports dr-xr-xr-x 1 root wheel 512 Apr 14 19:55 proc/ drwxr-xr-x 17 root wheel 1024 Apr 14 19:52 root/ drwxr-xr-x 2 root wheel 2048 Apr 14 02:35 sbin/ drwxr-xr-x 4 root wheel 1024 Apr 8 21:01 stand/ lrwxr-xr-x 1 root wheel 11 Apr 14 02:29 sys@ -> usr/src/sys drwxrwxrwt 2 root wheel 512 Apr 14 19:53 tmp/ drwxr-xr-x 18 root wheel 512 Mar 26 17:57 usr/ drwxr-xr-x 18 root wheel 512 Nov 20 05:13 var/ That's all for now. Signup for your free USWEST.mail Email account http://www.uswestmail.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010415032252.20512.cpmta>