minor, provide lzma_comp() using a private map to inplace compress ute tick pages

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, introduce a -v|--verbose to ute-fsck yielding additional info upon fsck run

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, make hdrp slot of utectx_t objects const, and have all functions operate on the cached header hdrc instead

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, provide flush_hdr() to bang changes to hdrc in a utectx_t object back to the disk

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, migrate ute-fsck header operations to using hdrc instead of hdrp

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, update hdrc's npages slot upon flush_tpc()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, reset hdrc's npages and ftr_sz slots before copying the hdrc back to disk

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor report 0 pages for a newly created file and adapt load_last_tpc() to this situation

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, in page_compressed_p() skip through pages with normal pgsz skip size if page is not compressed

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, lzma_end() the encoder after each call to ute_encode()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, for the last page passed into page_compressed_p() respect file size if page is uncompressed

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, provide an lzma_comp() free of any custom seek_page() calls or the like

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, hygiene, assume unsigned TRY offset when checking for last page in seek_get_offs()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'feat/lzma' into next

* feat/lzma:
  fix, hygiene, assume unsigned TRY offset when checking for last page in seek_get_offs()
  minor, provide an lzma_comp() free of any custom seek_page() calls or the like
  fix, for the last page passed into page_compressed_p() respect file size if page is uncompressed
  minor, lzma_end() the encoder after each call to ute_encode()
  minor, in page_compressed_p() skip through pages with normal pgsz skip size if page is not compressed
  minor report 0 pages for a newly created file and adapt load_last_tpc() to this situation
  minor, reset hdrc's npages and ftr_sz slots before copying the hdrc back to disk
  minor, update hdrc's npages slot upon flush_tpc()
  minor, migrate ute-fsck header operations to using hdrc instead of hdrp
  minor, provide flush_hdr() to bang changes to hdrc in a utectx_t object back to the disk
  minor, make hdrp slot of utectx_t objects const, and have all functions operate on the cached header hdrc instead
  minor, introduce a -v|--verbose to ute-fsck yielding additional info upon fsck run
  minor, provide lzma_comp() using a private map to inplace compress ute tick pages
minor, extend ute_npages() to cope with compressed tick pages

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, return our aligned pages size in page_compressed_p()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, introduce dirty flag

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, only call lzma_comp() if compressed flag and dirty flag are set

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, also set dirty flag upon -c|--compress in ute-fsck

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, fix, update page counter after load_last_tpc()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>