Re: Filesystem-local databases in mlocate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
Axel Thimm napsal(a):
>> * locate(1)'s default database is not just /var/lib/mlocate/mlocate.db;
>>   mlocate also checks each mounted filesystem for a .mlocate/mlocate.db
>>   file, owned by root or the invoking user, and not writable by anyone
>>   but the owner.  Such files are automatically added to the database
>>   path.
> locate should also include .mlocate/mlocate.db a previous updatedb has
> found and skipped. E.g. if updatedb detects a .mlocate/mlocate.db in a
> folder in its path it skips it and registers it for locate to use.
This would make a difference only for "subdirectory-local" databases
within a filesystem.  I can't think of a reason why they would be necessary.

> Perhaps that way you can even save the explicit mentioning of
> --single-fs paths in /etc/sysconfig/mlocate. If a paths is to be
> handled as such the admin just creates an .mlocate folder and updatedb
> and locate automatically pick it up.
I'd prefer a more specific administrator action;  otherwise just
extracting an archive could unintentionally add a mlocate database and,
in the worst case, double the updatedb overhead.
	Mirek

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux