Inspect: Preserve permission flags (#13490)

Preserve permission from disk files. Can help identify issues.

Refactor GetRawData function to be cleaner.
This commit is contained in:
Klaus Post
2021-10-21 11:20:13 -07:00
committed by GitHub
parent ac36a377b0
commit 23d6770ff9
5 changed files with 46 additions and 16 deletions

View File

@@ -83,6 +83,7 @@ type StatInfo struct {
ModTime time.Time `json:"modTime"` // ModTime of the object `xl.meta`.
Name string `json:"name"`
Dir bool `json:"dir"`
Mode uint32 `json:"mode"`
}
// ErasureInfo holds erasure coding and bitrot related information.