mirror of
https://github.com/versity/scoutfs-go.git
synced 2026-01-08 04:35:19 +00:00
totl: fix read of undefined totl id
This commit is contained in:
@@ -889,7 +889,10 @@ func ReadXattrTotals(f *os.File, id1, id2, id3 uint64) (XattrTotal, error) {
|
||||
if err != nil {
|
||||
return XattrTotal{}, err
|
||||
}
|
||||
if n == 0 {
|
||||
if n == 0 ||
|
||||
totls[0].Name[0] != id1 ||
|
||||
totls[0].Name[1] != id2 ||
|
||||
totls[0].Name[2] != id3 {
|
||||
return XattrTotal{}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user