diff options
Diffstat (limited to 'pkg/btrfs/btrfsitem/item_chunk.go')
-rw-r--r-- | pkg/btrfs/btrfsitem/item_chunk.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/btrfs/btrfsitem/item_chunk.go b/pkg/btrfs/btrfsitem/item_chunk.go index 826ecc6..eae8339 100644 --- a/pkg/btrfs/btrfsitem/item_chunk.go +++ b/pkg/btrfs/btrfsitem/item_chunk.go @@ -34,6 +34,7 @@ func (chunk *Chunk) UnmarshalBinary(dat []byte) (int, error) { if err != nil { return n, err } + chunk.Stripes = nil for i := 0; i < int(chunk.NumStripes); i++ { var stripe ChunkStripe _n, err := binstruct.Unmarshal(dat[n:], &stripe) |