Bug 436205 - nfs mounts excluded by default
nfs mounts excluded by default
Product: Fedora
Classification: Fedora
Component: mlocate (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Miloslav Trmač
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-03-05 16:27 EST by Walter Neumann
Modified: 2009-12-12 11:13 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-03-05 16:32:20 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Walter Neumann 2008-03-05 16:27:35 EST
Description of problem: The daily cron job mlocate.cron excludes nfs and nfs4

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Run updatedb from the daily cron job (or run mlocate.cron directly)
Actual results:
nfs mounts are excluded.

Expected results:
nfs mounts should be included if not excluded in updatedb.conf

Additional info:

The option of excluding nfs mounts should be transparent to the user and should
therefore be in /etc/updatedb.conf, where the user expects to find it.

Adding "|grep -v nfs" as follows to the second line of mlocate.cron removes the
exclusion of nfs mounts.

nodevs=$(< /proc/filesystems awk '$1 == "nodev" { print $2 }'|grep -v nfs)

But, IMHO, this whole line should be deleted, or moved to updatedb.conf.
Comment 1 Miloslav Trmač 2008-03-05 16:32:20 EST
Thanks for your report.

Running (updatedb) over the network is very inefficient, and excluding all nodev
filesystems is a simple way to exclude all network file systems.

mlocate should support network filesystems better in the future; this is tracked
as bug #221756.
Comment 2 foudfou 2009-12-12 11:13:35 EST
IMHO, there should be a mean to include (still) the excluded network filesystem. /etc/updatedb.conf seems to be the appropriate place.

Note You need to log in before you can comment on or make changes to this bug.