Skip to content
BSD syscall#427

svc · unix #427

fsgetpath

Resolves an (fsid, inode) pair back into a path on the requested filesystem.

Prototype

user_ssize_t fsgetpath(user_addr_t buf, size_t bufsize, user_addr_t fsid, uint64_t objid);

Returns: user_ssize_t

Arguments

NameTypeDirDescription
bufuser_addr_t-
bufsizesize_t-
fsiduser_addr_t-
objiduint64_t-

Version history

XNU tagmacOS#
xnu-3789.1.32macOS 10.12 Sierra427
xnu-4570.1.46macOS 10.13 High Sierra427
xnu-4903.221.2macOS 10.14 Mojave427
xnu-6153.11.26macOS 10.15 Catalina427
xnu-7195.50.7.100.1macOS 11.0 Big Sur427
xnu-8019.41.5macOS 12.0 Monterey427
xnu-8792.41.9macOS 13.0 Ventura427
xnu-10002.1.13macOS 14.0 Sonoma427
xnu-11215.1.10macOS 15.0 Sequoia427
xnu-11417.101.15macOS 15.4 Sequoia427
xnu-12377.1.9macOS 26.0 Tahoe427
xnu-10002.41.9—427
xnu-10002.61.3—427
xnu-10002.81.5—427
xnu-10063.101.15—427
xnu-10063.121.3—427
xnu-10063.141.1—427
xnu-11215.41.3—427
xnu-11215.61.5—427
xnu-11215.81.4—427
xnu-11417.121.6—427
xnu-11417.140.69—427
xnu-12377.101.15—427
xnu-12377.41.6—427
xnu-12377.61.12—427
xnu-12377.81.4—427
xnu-3789.21.4—427
xnu-3789.31.2—427
xnu-3789.41.3—427
xnu-3789.51.2—427
xnu-3789.60.24—427
xnu-3789.70.16—427
xnu-4570.20.62—427
xnu-4570.31.3—427
xnu-4570.41.2—427
xnu-4570.51.1—427
xnu-4570.61.1—427
xnu-4570.71.2—427
xnu-4903.231.4—427
xnu-4903.241.1—427
xnu-4903.270.47—427
xnu-6153.101.6—427
xnu-6153.121.1—427
xnu-6153.141.1—427
xnu-6153.41.3—427
xnu-6153.61.1—427
xnu-6153.81.5—427
xnu-7195.101.1—427
xnu-7195.121.3—427
xnu-7195.141.2—427
xnu-7195.60.75—427
xnu-7195.81.3—427
xnu-8019.61.5—427
xnu-8019.80.24—427
xnu-8020.101.4—427
xnu-8020.121.3—427
xnu-8020.140.41—427
xnu-8792.61.2—427
xnu-8792.81.2—427
xnu-8796.101.5—427
xnu-8796.121.2—427
xnu-8796.141.3—427

Notes

Used by FSEvents consumers, Spotlight indexers and Time Machine to recover paths from id-based events. The first match in the namespace is returned; hardlinked files yield only one of their many paths. Requires that the caller have read access to all path components.

Detection

syscall::fsgetpath:entry in DTrace. Successful resolution is not surfaced by ES.

Related APIs

fsgetpath_extopenbyid_npgetattrliststat