Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename apfsutil target to apfs-util #153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ target_compile_definitions(apfs-fuse PRIVATE USE_FUSE2)
endif()
endif()

add_executable(apfsutil ApfsUtil/ApfsUtil.cpp)
target_link_libraries(apfsutil apfs)
add_executable(apfs-util ApfsUtil/ApfsUtil.cpp)
target_link_libraries(apfs-util apfs)

include(GNUInstallDirs)
install(TARGETS apfs-fuse RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
install(TARGETS apfsutil RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
install(TARGETS apfs-util RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ In addition to the mount options supported by fuse, the following mount options
* blksize=n: Set the physical block size (default: 512 bytes).
* pass=...: Specify volume passphrase (same as -r).
* xid=...: Try to mount older XID. May be useful if the container is corrupt.
* snap=...: Mount snapshot with given XID. Use apfsutil to display snapshot ids.
* snap=...: Mount snapshot with given XID. Use apfs-util to display snapshot ids.

The blksize parameter is required for proper partition table parsing on some newer
macs. However the current driver should be able to detect the block size automatically.
Expand Down Expand Up @@ -206,9 +206,9 @@ apfs-dump <drive> <logfile.txt>
This tool was the one I originally used for reverse engineering. It will scan the whole volume for clusters having
correct checksums (and thus being part of some management structure), and then it will try to dump them. This will
take a very long time to run on big volumes, and create huge log files. So using the quick version will be much faster.
#### apfsutil
#### apfs-util
```
apfsutil <device>
apfs-util <device>
```
This is a new tool that just displays some information from a container. For now, it lists the volumes a container
contains, and snapshots if there are some. This tool might be extended in the future.
2 changes: 1 addition & 1 deletion apfsfuse/ApfsFuse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ void usage(const char *name)
std::cout << " to be parsed and the sector size is not 512 bytes." << std::endl;
std::cout << "pass=... : Specify volume passphrase (same as -r)." << std::endl;
std::cout << "xid=N : Mount specific xid." << std::endl;
std::cout << "snap=N : Mount snapshot with given id. Use apfsutil for getting the ids." << std::endl;
std::cout << "snap=N : Mount snapshot with given id. Use apfs-util for getting the ids." << std::endl;
std::cout << std::endl;
}

Expand Down