URL: <http://savannah.gnu.org/bugs/?19485>
Summary: feature request: storing relative pathnames in locate databases Project: findutils Submitted by: peb Submitted on: Monday 04/02/2007 at 08:06 Category: locate Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: 4.2.30 Fixed Release: None _______________________________________________________ Details: When some (part of a) filesystem is present on an nfs server under one path and mounted on nfs client(s) under different path(s), it would be desirable to store only relative pathnames in a locate database for that filesystem and have the locate program prepend the applicable path prefix. Attached are: relpath.txt: short writeup of the design and implementation. The present design would honor all objections raised by Bruno Haible against an earlier proposal. patch-02-relpath-locate: patches for locate.c patch-03-relpath-frcode: patches for frcode.c patch-04-relpath-updatedb: patches for updatedb patch-05-relpath-testcase: testcase for the new feature. These four patches complete the implementation with these two exceptions: (1) Usage message in frcode.c (requires translation) (2) Updated documentation (man and info). If the patches mentioned above are accepted (possibly in modified form) I would be willing to provide the corresponding documentation patches. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Monday 04/02/2007 at 08:06 Name: relpath.txt Size: 3kB By: peb sketch of design and implementation for locate databases with relative pathnames <http://savannah.gnu.org/bugs/download.php?file_id=12373> ------------------------------------------------------- Date: Monday 04/02/2007 at 08:06 Name: patch-02-relpath-locate Size: 4kB By: peb sketch of design and implementation for locate databases with relative pathnames <http://savannah.gnu.org/bugs/download.php?file_id=12374> ------------------------------------------------------- Date: Monday 04/02/2007 at 08:06 Name: patch-03-relpath-frcode Size: 2kB By: peb sketch of design and implementation for locate databases with relative pathnames <http://savannah.gnu.org/bugs/download.php?file_id=12375> ------------------------------------------------------- Date: Monday 04/02/2007 at 08:06 Name: patch-04-relpath-updatedb Size: 3kB By: peb sketch of design and implementation for locate databases with relative pathnames <http://savannah.gnu.org/bugs/download.php?file_id=12376> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?19485> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-findutils mailing list Bug-findutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-findutils