sapling/eden/fs
Wez Furlong dde572cf5e eden: sha1 attributes on overlay [2/2]
Summary:
Add a function to compute the sha1 content hash for an overlay file.

We persist the computed hash in an extended attribute in the underlying overlay
file so that a subsequent read of the attribute doesn't require opening the
file to recompute it.

Each time the file is mutated, we blow the cached status of the file.
Each time the sha1 attribute is read, if the cache is blown, the content
hash will be recomputed and set in the overlay file.

Each time the file is flushed or sync'd, if the cache is blown, the content
hash will be computed and set in the overlay file.

Reviewed By: bolinfest

Differential Revision: D3302412

fbshipit-source-id: bd45c7a24b732bd0b7474b7f96e82936870b2117
2016-05-26 08:23:11 -07:00
..
cli Refactor logic to create a EdenService.Client in Python. 2016-05-25 21:44:07 -07:00
config Modify EdenServiceHandler to get client info through ClientConfig. 2016-05-13 15:10:22 -07:00
importer/git Include build files that were inadvertently excluded from the initial export. 2016-05-12 16:08:34 -07:00
inodes eden: sha1 attributes on overlay [2/2] 2016-05-26 08:23:11 -07:00
integration eden: sha1 attributes on overlay [2/2] 2016-05-26 08:23:11 -07:00
model Include build files that were inadvertently excluded from the initial export. 2016-05-12 16:08:34 -07:00
overlay eden: add mkdir support 2016-05-18 12:24:00 -07:00
rocksdb Include build files that were inadvertently excluded from the initial export. 2016-05-12 16:08:34 -07:00
service Refactor logic to create a EdenService.Client in Python. 2016-05-25 21:44:07 -07:00
store display rocksdb key in hex if LocalStore::get() fails 2016-05-24 22:14:14 -07:00