4. Preparing to commit

After all files to install or uninstall are given to addEntry() (and/or after any GDBM updates are specified as described previously), FileInstall creates a file /.lpm/commit.tmp that contains the total number of files processed by addEntry() and the total number of GDBM-related records.

After /.lpm/commit.tmp is created, it is renamed to /.lpm/commit, all file buffers are flushed to disk, and the commit process begins.