Merge pull request #12833 from burke/faster-changes

Optimize archive.ChangesDirs on Linux
This commit is contained in:
Arnaud Porterie 2015-06-12 17:05:34 -07:00
commit a551a25faa
4 changed files with 385 additions and 64 deletions

View file

@ -14,6 +14,12 @@ func fromStatT(s *syscall.Stat_t) (*Stat_t, error) {
mtim: s.Mtim}, nil
}
// FromStatT exists only on linux, and loads a system.Stat_t from a
// syscal.Stat_t.
func FromStatT(s *syscall.Stat_t) (*Stat_t, error) {
return fromStatT(s)
}
// Stat takes a path to a file and returns
// a system.Stat_t type pertaining to that file.
//