Giter Club home page Giter Club logo

Comments (22)

RJVB avatar RJVB commented on July 21, 2024 2

from afsctool.

RJVB avatar RJVB commented on July 21, 2024 1

from afsctool.

szhorvat avatar szhorvat commented on July 21, 2024 1

Reporting back after High Sierra upgrade:

afsctool appears to work fine with APFS

Compressed files were maintained as such during HFS+ -> APFS conversion.

from afsctool.

DanielSmedegaardBuus avatar DanielSmedegaardBuus commented on July 21, 2024 1

Wait, what? I was under the impression that compression hasn't yet been implemented in APFS? Are you saying that you can use afcstool on APFS and it actually compresses files? As in, it doesn't just say it does, it actually does?

from afsctool.

RJVB avatar RJVB commented on July 21, 2024 1

from afsctool.

lpar avatar lpar commented on July 21, 2024 1

A Mac executable built using go build. Looks like a failure to compress is being reported incorrectly:

meta@updog % afsctool -v mage 
/Users/meta/Programming/Go/bin/mage:
File is not HFS+/APFS compressed.
File content type: public.unix-executable
File data fork size (reported size by Mac OS X Finder): 4298904 bytes / 4.3 MB (megabytes, base-10)
Number of extended attributes: 0
Total size of extended attribute data: 0 bytes
Approximate total file size (data fork + resource fork + EA + EA overhead + file overhead): 4300800 bytes / 4.1 MiB
meta@updog % afsctool -c mage 
Unable to compress file (already compressed).
meta@updog % 

from afsctool.

lpar avatar lpar commented on July 21, 2024 1

Everything built and installed with no problems, thanks.

from afsctool.

RJVB avatar RJVB commented on July 21, 2024

from afsctool.

szhorvat avatar szhorvat commented on July 21, 2024

The Finder reports smaller sizes. Also, compression is preserved during conversion to APFS>

But there are issues. I have some apps compressed and when running them from a terminal, I get messages like this (but everything appears to work fine):

/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.30.2/Common/ChunkCompression.cpp:50: Error: unsupported compressor 8
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.30.2/Libraries/CompressData/CompressData.c:353: Error: Unknown compression scheme encountered for file '/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exceptions.plist'
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.30.2/Common/ChunkCompression.cpp:50: Error: unsupported compressor 8
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.30.2/Libraries/CompressData/CompressData.c:353: Error: Unknown compression scheme encountered for file '/System/Library/CoreServices/CoreTypes.bundle/Contents/Library/AppExceptions.bundle/Exceptions.plist'

@RJVB I haven't forgotten about this but didn't yet find the time to look at it.

from afsctool.

RJVB avatar RJVB commented on July 21, 2024

from afsctool.

szhorvat avatar szhorvat commented on July 21, 2024

@RJVB Don't bother with this now. I still have to investigate when the warnings appear, I just haven't had the time yet. I mentioned it in response to Daniel's comment.

I mainly use afsctool to compress Mathematica. It's 6-8 GB and I need several versions installed. When I start the GUI part of Mathematica from a terminal, I sometimes see these messages. When I start its "kernel" part (the command line program that actually does computations) I never see them. It might have something to do with Mathematica specifically.

I use the program daily and I have not yet noticed any tangible problems.

I'll update you in a couple of weeks.

from afsctool.

RJVB avatar RJVB commented on July 21, 2024

from afsctool.

Henrietta1989 avatar Henrietta1989 commented on July 21, 2024

Anybody tested in Mojave?

from afsctool.

maximumsomething avatar maximumsomething commented on July 21, 2024

@Henrietta1989 it works just as expected in Mojave.

from afsctool.

lpar avatar lpar commented on July 21, 2024

Confirmed, seems to work on test files. Go binaries show up as already compressed, which I'm not entirely convinced by, but maybe the linker is that smart?

from afsctool.

RJVB avatar RJVB commented on July 21, 2024

from afsctool.

RJVB avatar RJVB commented on July 21, 2024

from afsctool.

lpar avatar lpar commented on July 21, 2024

Well, I had to zip it, but here you are.
mage.zip

from afsctool.

gingerbeardman avatar gingerbeardman commented on July 21, 2024

This compresses for me, with LZVN and the latest afsctool (it seems you're using that)

$ afsctool -cvvv -T LZVN mage
/Users/matt/Downloads/2019-06-13/mage:
Compression type: LZVN in resource fork (8)
File content type: public.unix-executable
File resource fork size: 2346302 bytes
File DECMPFS attribute size: 16 bytes
File size (uncompressed; reported size by Mac OS 10.6+ Finder): 4298904 bytes / 4.3 MB (megabytes, base-10)
File size (compressed): 2347008 bytes / 2.2 MiB
Compression savings: 45.4%
Number of extended attributes: 1
Total size of extended attribute data: 19 bytes
Uncompressed file size reported in compressed header: 4298904 bytes

With ZLIB I get this:

$ afsctool -cvvv -T ZLIB mage
/Users/matt/Downloads/2019-06-13/mage: file has a compressed chunk that's larger than the original chunk; -L to compress
/Users/matt/Downloads/2019-06-13/mage:
Unable to compress file.
File content type: public.unix-executable
File data fork size (reported size by Mac OS X Finder): 4298904 bytes / 4.3 MB (megabytes, base-10)
Number of extended attributes: 1
Total size of extended attribute data: 19 bytes
Approximate total file size (data fork + resource fork + EA + EA overhead + file overhead): 4300819 bytes / 4.1 MiB

I'm on 10.13.6 with an APFS filesystem.

How about you @lpar ?

from afsctool.

lpar avatar lpar commented on July 21, 2024

I unzipped the zip file and tried compressing the unpacked copy and it still wouldn't compress:

% afsctool -c mage
Unable to compress file (already compressed).
% afsctool --help
afsctool 1.6.9. (1.6.8.6-132-gc437635)

OS is 10.14.5 with an APFS filesystem.

Trying to use LZVN I get Sorry, LZVN compression has not been enabled in this build. I just used the README instructions to build it.

from afsctool.

lpar avatar lpar commented on July 21, 2024

With ZLIB, same results as you, so maybe the root problem is that the build doesn't have LZVN enabled.

from afsctool.

gingerbeardman avatar gingerbeardman commented on July 21, 2024

Thanks @RJVB

@lpar let us know if you have a problem building with LZVN support which requires cmake+make+install of https://github.com/RJVB/LZVN before cmake+make+install of this afsctool.

from afsctool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.