Bug 1260546 - locate command can't search files under /mnt directory
locate command can't search files under /mnt directory
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: mlocate (Show other bugs)
7.0
x86_64 Linux
unspecified Severity unspecified
: rc
: ---
Assigned To: Frantisek Kluknavsky
BaseOS QE Security Team
: Regression
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-07 04:33 EDT by Li Shuang
Modified: 2015-09-08 09:53 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-09-08 09:53:11 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Li Shuang 2015-09-07 04:33:58 EDT
Description of problem:
After I create some files/folders under /mnt directory, I can't find them using locate command.

Version-Release number of selected component (if applicable):
# rpm -q mlocate
mlocate-0.26-5.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. create a file/folder under /mnt directory
# touch aaa/mkdir bbb
2. execute updatedb command
# updatedb
3. execute locate command to search the file/folder
# locate aaa/locate bbb

Actual results:
locate command can't search the file/folder

Expected results:
locate command can search the file/folder

Additional info:
1. The result is OK when mlocate version is as follows:
# rpm -q mlocate
mlocate-0.22.2-6.el6.x86_64
2. When I search some files/folders under some other directories(such as /root) using locate command(version:mlocate-0.26-5.el7.x86_64), the result is OK.
Comment 3 Ondrej Vasik 2015-09-08 09:53:11 EDT
If you check your /etc/updatedb.conf file, you can find /mnt and /media in PRUNEPATHS variable - they are skipped intentionally. You can modify the .conf file, but generally it is not a good default. Closing NOTABUG, as this is not a regression, but expected behaviour of PRUNEPATHS variable.

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