Home | History | Annotate | Download | only in vold

Lines Matching refs:mountPoint

52 int Process::pathMatchesMountPoint(const char* path, const char* mountPoint) {
53 int length = strlen(mountPoint);
54 if (length > 1 && strncmp(path, mountPoint, length) == 0) {
55 // we need to do extra checking if mountPoint does not end in a '/'
56 if (mountPoint[length - 1] == '/')
58 // if mountPoint does not have a trailing slash, we need to make sure
79 int Process::checkFileDescriptorSymLinks(int pid, const char *mountPoint) {
80 return checkFileDescriptorSymLinks(pid, mountPoint, NULL, 0);
83 int Process::checkFileDescriptorSymLinks(int pid, const char *mountPoint, char *openFilename, size_t max) {
110 if (readSymLink(path, link, sizeof(link)) && pathMatchesMountPoint(link, mountPoint)) {
124 int Process::checkFileMaps(int pid, const char *mountPoint) {
125 return checkFileMaps(pid, mountPoint, NULL, 0);
128 int Process::checkFileMaps(int pid, const char *mountPoint, char *openFilename, size_t max) {
140 if (path && pathMatchesMountPoint(path, mountPoint)) {
154 int Process::checkSymLink(int pid, const char *mountPoint, const char *name) {
159 if (readSymLink(path, link, sizeof(link)) && pathMatchesMountPoint(link, mountPoint))