searchfs

command
v0.6.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

searchfs

Search an APFS volume catalog without walking every directory:

go run ./examples/kernel/searchfs -v . -name go -f
go run ./examples/kernel/searchfs -v / -name Applications -e -d

The example demonstrates the bounded searchfs(2) session: partial results are emitted before handling EAGAIN, EBUSY restarts the catalog search, and ENOBUFS grows the return buffer. It resolves returned file IDs with fsgetpath(2). Both calls are SDK-declared but not generated in this tree, so the small private binding remains local to the example.

Documentation

Overview

Command searchfs searches a volume catalog with searchfs(2).

It is intentionally a small example of the searchfs session protocol. The syscall is not generated yet, so the unexported mirrors below are kept next to the example and resolved from libSystem with purego.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL