MCPcopy Create free account
hub / github.com/TeamWin/Team-Win-Recovery-Project / volume_for_path

Function volume_for_path

roots.cpp:80–97  ·  view source on GitHub ↗

Finds the volume specified by the given path. fs_mgr_get_entry_for_mount_point() does exact match only, so it attempts the prefixes recursively (e.g. "/cache/recovery/last_log", "/cache/recovery", "/cache", "/" for a given path of "/cache/recovery/last_log") and returns the first match or nullptr.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

ensure_path_mounted_atFunction · 0.85
ensure_path_unmountedFunction · 0.85
format_volumeFunction · 0.85

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected