[Interest] QFile subclass that does HFS compression?

Thiago Macieira thiago.macieira at intel.com
Wed Dec 19 00:30:11 CET 2018


On Tuesday, 18 December 2018 12:20:32 PST René J. V. Bertin wrote:
> Thiago Macieira wrote:
> >> HFS compression in QFile would really be Mac-specific, most 3rd-party HFS
> >> drivers for other OSes do not even support the feature.
> > 
> > Then I don't see us supporting this in QFile.
> 
> Of course the feature doesn't have to support only HFS compression. There
> are apparently at least two other filesystems on the two other main
> platforms that support user-control over compression of individual files.
> It would probably make sense to expose that via a QFile option.

Transparent compression support is a fine addition. That is, we write 
uncompressed, get uncompressed back and completely wash our hands of how the 
FS actually stores those bytes.

Having to write compressed data and getting uncompressed back is too 
specialised a case. You can do this yourself for the few cases and OSes/FSes 
where that is supported. Just get the file descriptor from QFile, do the 
ioctl/fcntl/whatever that turns the feature on and write the correct byte 
stream.

> The question is more how feasible it is to integrate a compression engine of
> the type I outlined above (chunked zip) into QFile.

I don't want it.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center






More information about the Interest mailing list