commit | 68ddac22b4b896b6dec4295f63a774e2ce8914b4 | [log] [tgz] |
---|---|---|
author | Jan Schmidt <janosch@webgods.de> | Wed Mar 27 12:33:44 2013 +0100 |
committer | Jan Schmidt <list.btrfs@jan-o-sch.net> | Thu Mar 28 12:15:49 2013 +0100 |
tree | 672f252e9abc28eb50b761949d89737dad159e70 | |
parent | bbd25f5040c59f8cb5c820f09a584ffd3eb69434 [diff] |
fssum: seek for data before adding to the sum This change is incompatible with previous versions of fssum and changes all sums computed with the default option to include file data (-d/-D switch). To compute sums for large sparse blocks, we use SEEK_DATA before reading. To detect holes of different size, each data block is preceeded by its offset in the file. Holes are not included in the sum explicitly.