sapling/eden/fs/inodes/test
Jyothsna Konisa 3f046593a8 Wrapper for TimeStamps & helper function to set timestamps in setattr.
Summary:
1. Added a new structure `InodeBase::InodeTimestamps` to wrap atime,ctime,mtime together. This new structure helps in avoiding usage of `struct stat` for timestamps.
2. Modified function `Overlay::openFile` ,`Overlay::updateTimestampToHeader`, `Overlay::deserializeOverlayDir`, `Overlay::parseHeader` to use this new structure for timestamps instead of `struct stat`. Also, modified code in places where this change is being affected.
3. Added new helper methods `FileInode::setattrTimes`  and `TreeInode::setattrTimes` to set timestamps in FileInode and TreeInode during setattr. Implementation of setattr for FileInode and TreeInode is in the diffs stacked above this diff.
4. Replaced atime, ctime, mtime in `FileInode::State`, `TreeInode::Dir` to `FileInode::State::timeStamps` and `TreeInode::State::timeStamps`. Made other necessary changes to support this change.

Reviewed By: simpkins

Differential Revision: D5596854

fbshipit-source-id: 2786b7b695508a62fdf8f7829f1ce76054b61c52
2017-08-11 11:36:07 -07:00
..
CheckoutTest.cpp fix issues updating TreeInode materialization status during checkout 2017-07-07 18:45:02 -07:00
DiffTest.cpp honor trailing slashes on gitignore patterns 2017-04-20 21:21:15 -07:00
DirstatePersistenceTest.cpp update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
DirstateTest.cpp implement "hg status" using EdenMount::diff() 2017-03-30 21:35:00 -07:00
EdenMountTest.cpp Wrapper for TimeStamps & helper function to set timestamps in setattr. 2017-08-11 11:36:07 -07:00
FileInodeTest.cpp add unit tests for FileInode::setattr() 2017-04-26 21:51:36 -07:00
InodeBaseTest.cpp additional refactoring of unit test initialization code 2017-03-02 14:24:10 -08:00
InodeMapTest.cpp move eden/utils and eden/fuse into eden/fs 2017-04-14 11:39:02 -07:00
InodePtrTest.cpp move eden/utils and eden/fuse into eden/fs 2017-04-14 11:39:02 -07:00
main.cpp add a main function to the inodes unit test 2017-06-30 19:10:53 -07:00
OverlayTest.cpp Wrapper for TimeStamps & helper function to set timestamps in setattr. 2017-08-11 11:36:07 -07:00
RemoveTest.cpp Moving FileData methods to FileInode 2017-07-26 23:39:35 -07:00
RenameTest.cpp move eden/utils and eden/fuse into eden/fs 2017-04-14 11:39:02 -07:00
SymlinkTest.cpp move eden/utils and eden/fuse into eden/fs 2017-04-14 11:39:02 -07:00
TARGETS add a main function to the inodes unit test 2017-06-30 19:10:53 -07:00