Lines Matching refs:incfs
68 static android::incfs::MountRegistry& registry() { in registry()
69 static android::base::NoDestructor<android::incfs::MountRegistry> instance{}; in registry()
74 auto fd = unique_fd(::open(android::incfs::details::c_str(file), O_RDONLY | O_CLOEXEC)); in openRaw()
82 return openRaw(android::incfs::path::join(dir, name)); in openRaw()
86 auto cmdFile = android::incfs::path::fromFd(fd); in rootForCmd()
91 auto res = android::incfs::path::dirName(cmdFile); in rootForCmd()
96 if (!android::incfs::path::endsWith(cmdFile, INCFS_PENDING_READS_FILENAME)) { in rootForCmd()
107 static android::incfs::Features readIncFsFeatures() { in readIncFsFeatures()
109 const auto dir = android::incfs::path::openDir(kSysfsFeaturesDir); in readIncFsFeatures()
111 return android::incfs::Features::none; in readIncFsFeatures()
114 int res = android::incfs::Features::none; in readIncFsFeatures()
120 res |= android::incfs::Features::core; in readIncFsFeatures()
124 return android::incfs::Features(res); in readIncFsFeatures()
159 return {::access(android::incfs::details::c_str(modulePath), R_OK | X_OK), modulePath}; in parseProperty()
190 TEMP_FAILURE_RETRY(::open(android::incfs::details::c_str(moduleName_), in enabledAndReady()
266 if (const auto err = android::incfs::path::isEmptyDir(path); err != 0) { in isValidMountTarget()
273 auto dir = android::incfs::path::openDir(path); in rmDirContent()
332 return android::incfs::path::join(itemRoot, subpath); in makeCommandPath()
410 {android::incfs::path::join(targetDir, INCFS_PENDING_READS_FILENAME), in restoreconControlFiles()
411 android::incfs::path::join(targetDir, INCFS_LOG_FILENAME)}; in restoreconControlFiles()
442 if (options.flags & android::incfs::createOnly) { in IncFs_Mount()
443 if (const auto err = android::incfs::path::isEmptyDir(backingPath); err != 0) { in IncFs_Mount()
447 } else if (options.flags & android::incfs::truncate) { in IncFs_Mount()
479 return makeControl(android::incfs::details::c_str(root)); in IncFs_Open()
670 const auto [subdir, name] = android::incfs::path::splitDirBase(subpath); in IncFs_MakeFile()
693 if (::chmod(android::incfs::path::join(root, subpath).c_str(), mode)) { in IncFs_MakeFile()
713 auto commandCPath = android::incfs::details::c_str(commandPath); in makeDirs()
723 const auto parent = android::incfs::path::dirName(commandPath); in makeDirs()
724 if (!android::incfs::path::startsWith(parent, root)) { in makeDirs()
729 if (auto parentMkdirRes = makeDirs(parent, android::incfs::path::dirName(path), root, mode)) { in makeDirs()
774 const auto res = ::getxattr(path, android::incfs::kMetadataAttrName, buffer, *bufferSize); in getMetadata()
777 auto neededSize = ::getxattr(path, android::incfs::kMetadataAttrName, buffer, 0); in getMetadata()
799 auto name = android::incfs::path::join(root, android::incfs::kIndexDir, toStringImpl(fileId)); in IncFs_GetMetadataById()
800 return getMetadata(android::incfs::details::c_str(name), buffer, bufferSize); in IncFs_GetMetadataById()
828 const auto res = ::getxattr(path, android::incfs::kIdAttrName, buffer, sizeof(buffer)); in IncFs_GetId()
862 auto file = android::incfs::path::join(root, android::incfs::kIndexDir, toStringImpl(fileId)); in IncFs_GetSignatureById()
1078 auto name = android::incfs::path::join(root, android::incfs::kIndexDir, toStringImpl(id)); in IncFs_OpenForSpecialOpsById()
1149 if (!android::incfs::enabled()) { in IncFs_BindMount()
1175 if (!android::incfs::enabled()) { in IncFs_Unmount()
1341 android::incfs::MountRegistry& android::incfs::defaultMountRegistry() { in defaultMountRegistry()