Andrei Borzenkov 951306c509 squash4: fix handling of fragments and sparse files
1. Do not assume block list and fragment are mutually exclusive. Squash
can pack file tail as fragment (unless -no-fragments is specified); so
check read offset and read either from block list or from fragments as
appropriate.

2. Support sparse files with zero blocks.

3. Fix fragment read - frag.offset is absolute fragment position,
not offset relative to ino.chunk.

Reported and tested by Carlo Caione <carlo@endlessm.com>
2017-02-24 19:10:43 +03:00
..
2016-02-17 17:56:41 +01:00
2011-10-30 16:10:18 +01:00
2015-07-27 13:19:02 +02:00
2015-07-27 12:48:38 +02:00
2011-04-11 18:13:00 +02:00
2017-01-27 22:10:21 +00:00
2016-01-09 11:36:42 +03:00
2011-04-11 08:16:13 +02:00
2015-01-25 20:32:31 +01:00
2015-07-27 12:44:19 +02:00
2015-01-27 17:17:58 +01:00
2010-05-06 11:34:04 +05:30
2012-12-08 20:56:58 +01:00
2015-10-09 13:35:40 +02:00
2016-07-26 20:29:26 +03:00