ffindex_build1
Build file index from files in directories
Overview
USAGE: ffindex_build [-a|-v] [-s] [-f file]* OUT_DATA_FILE OUT_INDEX_FILE [-d 2ND_DATA_FILE -i 2ND_INDEX_FILE] [DIR_TO_INDEX|FILE]*
-
-a -
append files/indexes, also needed for sorting an already existing ffindex
-
-d FFDATA_FILE -
a second ffindex data file for inserting/appending
-i FFINDEX_FILE a second ffindex index file for inserting/appending
-
-f FILE -
file containing a list of file names, one per line
-fcan be specified up to 4096 times
-
-s -
sort index file, so that the index can queried. Another append operations can be done without sorting.
-
-v -
print version and other info then exit
-
-h -
display this help message
ENVIRONMENT
-
FFINDEX_MAX_INDEX_ENTRIES - allocate memory for this number of entries
Examples:
-
Create a new ffindex containing all files from the "bar/" directory containing say myfile1.txt, myfile2.txt and sort (
-s) it so that e.g. ffindex_get can use it.
-
$ ffindex_build -s foo.ffdata foo.ffindex bar/
-
Add (
-a) more files: myfile3.txt, myfile4.txt.
-
$ ffindex_build -a foo.ffdata foo.ffindex myfile3.txt myfile4.txt
-
Oops, forgot to sort it (
-s) so do it afterwards:
-
$ ffindex_build -as foo.ffdata foo.ffindex
Note:
-
Compiled with a maximum key/filename length is 63 and default maximum entries 80000000. This can be changed in the sources.
Designed and implemented by Andreas Hauser <[email protected]>.
History
- Debian 13 (Trixie): the text shown here
- Debian 12 (Bookworm)
- Debian 11 (Bullseye)
- Debian 10 (Buster)
- Debian 9 (Stretch)
- Debian 8 (Jessie)
- Debian 7 (Wheezy)
-d since Debian 8 (Jessie);
-f since Debian 8 (Jessie);
-h since Debian 9 (Stretch).