]> arthur.barton.de Git - bup.git/commit
Change index; include atime; pack time as xstat timespec; use ns in memory.
authorRob Browning <rlb@defaultvalue.org>
Sat, 10 Nov 2012 19:06:33 +0000 (13:06 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sat, 9 Feb 2013 16:42:46 +0000 (10:42 -0600)
commit3b6f285135d5e0320b64f00ded38e293f4c5255c
tree93fe05220a657ed379328745d17535805e094204
parent6ddad71811edb38e56b35e20b1a2d5305c14015b
Change index; include atime; pack time as xstat timespec; use ns in memory.

Update the index format header to 'BUPI\0\0\0\4' (version 4).

Change the index to include atimes, and write all times to bupindex as
xstat timespecs.  This is in preparation for indexing all metadata.
After moving all of the times to the index, there should be far fewer
unique instances of the remaining metadata in many/most cases.

Change the index and index-related code to handle all time
values as integer nanoseconds since the epoch, excepting the packed
format, which (as mentioned above) is now an xstat timespec.

After these changes the index-related in-memory and on-disk time value
handling should match that of the metadata code (i.e. metadata.py,
.bupm, etc.).

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
[rlb@defaultvalue.org: change 10e8 to 10**9 for ns per second.]
cmd/index-cmd.py
lib/bup/index.py