Locate databases with relative pathnames ============================================== 1. Purpose ---------- Assume an nfs server SERVER exporting /SERVERPATH, and some clients using mount SERVER:/SERVERPATH /CLIENTPATH1 as well as some other clients using mount SERVER:/SERVERPATH /CLIENTPATH2 where SERVERPATH, CLIENTPATH1, and CLIENTPATH2 may all differ. In such a situation it is desirable to (re-)build a locate database on SERVER for the files under /SERVERPATH (for reasons of efficiency as well as access permissions). If that database is located under /SERVERPATH and contains only the filename parts relative to /SERVERPATH, the locate command on the server or clients could prepend /SERVERPATH, /CLIENTPATH1, resp. /CLIENTPATH2 to these filename parts, thereby producing results that are correct for the respective hosts. 2. Basic Idea ------------- 2.0 Only implemented for new (LOCATE02) database format, since support for the old format will be discontinued in the near(?) future. 2.1 The database format is not modified but slightly reinterpreted as follows: The current implementation cannot contain an empty filename. Thus, adding a dummy empty filename as first database entry can signal to locate that a