apfsprogs icon indicating copy to clipboard operation
apfsprogs copied to clipboard

Restructure to eliminate redundant code

Open johnothwolo opened this issue 1 year ago • 1 comments

I've noticed that each tool has its own filesystem access code. Although Apple's HFS codebase does the same (that codebase is probably 2+ decades old), I do think a lot of the code can be reused and combined into the lib folder, like FreeBSD's libufs.

This will make it easier to addd other utilities to the codebase.

johnothwolo avatar Jan 03 '24 16:01 johnothwolo

I'm sure you are right, the main purpose of these tools is testing so they are very hacky in many ways. It would be tricky to change things at this point though, so we'll see if I ever get to it.

eafer avatar Jan 03 '24 22:01 eafer