Searched refs:mount (Results 1 - 25 of 55) sorted by relevance

123

/system/core/libnativebridge/tests/
H A DPreInitializeNativeBridgeFail1_test.cpp23 #include <sys/mount.h>
H A DPreInitializeNativeBridgeFail2_test.cpp21 #include <sys/mount.h>
H A DPreInitializeNativeBridge_test.cpp21 #include <sys/mount.h>
35 #if !defined(__APPLE__) // Mac OS does not support bind-mount.
39 // Try to create our mount namespace.
60 // Ending the test will tear down the mount namespace.
62 GTEST_LOG_(WARNING) << "Could not create mount namespace. Are you running this as root?";
/system/vold/fs/
H A DExfat.cpp17 #include <sys/mount.h>
63 if (mount(source.c_str(), target.c_str(), "exfat", mountFlags, mountData.c_str()) == 0) {
69 if (mount(source.c_str(), target.c_str(), "exfat", mountFlags, mountData.c_str()) == 0) {
H A DF2fs.cpp28 #include <sys/mount.h>
60 int res = mount(c_source, c_target, "f2fs", flags, NULL);
62 PLOG(ERROR) << "Failed to mount " << source;
64 res = mount(c_source, c_target, "f2fs", flags | MS_RDONLY, NULL);
66 PLOG(ERROR) << "Failed to mount read-only " << source;
H A DExt4.cpp33 #include <sys/mount.h>
83 * First try to mount and unmount the filesystem. We do this because
91 * check. Otherwise, it does nothing. If the kernel cannot mount the
95 ret = mount(c_source, c_target, "ext4", tmpmnt_flags, tmpmnt_opts);
146 rc = mount(c_source, c_target, "ext4", flags, NULL);
149 LOG(ERROR) << source << " appears to be a read only filesystem - retrying mount RO";
151 rc = mount(c_source, c_target, "ext4", flags, NULL);
H A DVfat.cpp31 #include <sys/mount.h>
135 rc = mount(c_source, c_target, "vfat", flags, mountData.c_str());
138 LOG(ERROR) << source << " appears to be a read only filesystem - retrying mount RO";
140 rc = mount(c_source, c_target, "vfat", flags, mountData.c_str());
/system/libvintf/
H A DVintfObjectRecovery.cpp19 #include <sys/mount.h>
35 int result = mount(rec->blk_device, mount_point, rec->fs_type, rec->flags, rec->fs_options);
84 return details::checkCompatibility(xmls, true /* mount */, mounter, error);
H A DVintfObject.cpp384 static status_t getMissing(const std::shared_ptr<T>& pkg, bool mount, argument
391 if (mount) {
392 (void)mountFunction(); // ignore mount errors
426 int32_t checkCompatibility(const std::vector<std::string>& xmls, bool mount, argument
461 pkg.fwk.manifest, mount, mountSystem, &updated.fwk.manifest,
466 pkg.dev.manifest, mount, mountVendor, &updated.dev.manifest,
471 pkg.fwk.matrix, mount, mountSystem, &updated.fwk.matrix,
477 pkg.dev.matrix, mount, mountVendor, &updated.dev.matrix,
482 if (mount) {
574 return details::checkCompatibility(xmls, false /* mount */, *detail
[all...]
/system/core/adb/
H A Dremount_service.cpp27 #include <sys/mount.h>
39 // Returns the device used to mount a directory in /proc/mounts.
55 // Returns the device used to mount a directory in the fstab.
103 if (mount(dev.c_str(), dir, "none", MS_REMOUNT | MS_BIND, nullptr) == -1) {
105 // read-write, but the mount itself is read-only, such as containers
107 WriteFdFmt(fd, "remount of the %s mount failed: %s.\n", dir, strerror(errno));
110 if (mount(dev.c_str(), dir, "none", MS_REMOUNT, nullptr) == -1) {
/system/core/libcutils/
H A Dpartition_utils.cpp21 #include <sys/mount.h> /* for BLKGETSIZE */
/system/core/sdcard/
H A Dsdcard.cpp25 #include <sys/mount.h>
84 // NOTE: This is a vestigial program that simply exists to mount the in-kernel
113 if (mount(source_path.c_str(), dest_path.c_str(), use_esdfs ? "esdfs" : "sdcardfs",
115 PLOG(WARNING) << "Failed to mount sdcardfs with options " << opts;
128 if (mount(source_path.c_str(), dest_path.c_str(), nullptr,
130 PLOG(ERROR) << "failed to bind mount sdcardfs filesystem";
134 if (mount(source_path.c_str(), dest_path.c_str(), "none",
136 PLOG(ERROR) << "failed to mount sdcardfs filesystem";
211 << " -w: runtime write mount has full write access"
/system/extras/ext4_utils/
H A Dext4_crypt_init_extensions.cpp21 #include <sys/mount.h>
/system/core/init/
H A Dinit.cpp28 #include <sys/mount.h>
576 mount("tmpfs", "/dev", "tmpfs", MS_NOSUID, "mode=0755");
579 mount("devpts", "/dev/pts", "devpts", 0, NULL);
581 mount("proc", "/proc", "proc", 0, "hidepid=2,gid=" MAKE_STR(AID_READPROC));
586 mount("sysfs", "/sys", "sysfs", 0, NULL);
587 mount("selinuxfs", "/sys/fs/selinux", "selinuxfs", 0, NULL);
600 mount("tmpfs", "/mnt", "tmpfs", MS_NOEXEC | MS_NOSUID | MS_NODEV,
602 // /mnt/vendor is used to mount vendor-specific partitions that can not be
613 LOG(FATAL) << "Failed to mount required partitions early ...";
738 // Don't mount filesystem
[all...]
/system/core/fs_mgr/
H A Dfs_mgr_format.cpp25 #include <sys/mount.h>
/system/vold/model/
H A DEmulatedVolume.cpp28 #include <sys/mount.h>
76 PLOG(ERROR) << getId() << " failed to create mount points";
H A DObbVolume.cpp32 #include <sys/mount.h>
108 PLOG(ERROR) << getId() << " failed to create mount point";
113 PLOG(ERROR) << getId() << " failed to mount";
H A DVolumeBase.h101 status_t mount();
H A DVolumeBase.cpp26 #include <sys/mount.h>
205 status_t VolumeBase::mount() { function in class:android::vold::VolumeBase
207 LOG(WARNING) << getId() << " mount requires state unmounted or unmountable";
H A DPrivateVolume.cpp32 #include <sys/mount.h>
109 PLOG(ERROR) << getId() << " failed to create mount point " << mPath;
123 PLOG(ERROR) << getId() << " failed to mount";
137 PLOG(ERROR) << getId() << " failed to mount";
175 PLOG(ERROR) << getId() << " failed to rmdir mount point " << mPath;
/system/bt/vendor_libs/test_vendor_lib/scripts/
H A Dbuild_and_run.sh99 adb shell mount -o remount,rw /
/system/vold/binder/android/os/
H A DIVold.aidl40 void mount(@utf8InCpp String volId, int mountFlags, int mountUserId);
/system/libvintf/include/vintf/
H A DVintfObject.h107 * < 0 if any error (mount partition fails, illformed XML, etc.)
136 * < 0 if any error (mount partition fails, illformed XML, etc.)
147 * < 0 if any error (mount partition fails, illformed XML, etc.)
183 int32_t checkCompatibility(const std::vector<std::string>& xmls, bool mount,
/system/vold/
H A DLoop.cpp27 #include <sys/mount.h>
/system/core/libnativebridge/
H A Dnative_bridge.cc25 #include <sys/mount.h>
278 // Bind-mount /system/lib{,64}/<isa>/cpuinfo to /proc/cpuinfo.
296 // If the file does not exist, the mount command will fail,
311 // Bind-mount.
312 if (TEMP_FAILURE_RETRY(mount(cpuinfo_path, // Source.
315 MS_BIND, // Mount flags: bind mount.
317 ALOGW("Failed to bind-mount %s as /proc/cpuinfo: %s", cpuinfo_path, strerror(errno));

Completed in 309 milliseconds

123