HomeSort by relevance Sort by last modified time
    Searched refs:mnt (Results 1 - 25 of 38) sorted by null

1 2

  /external/chromium_org/native_client_sdk/src/tests/nacl_io_test/
mount_test.cc 37 MountMemMock mnt; local
48 EXPECT_EQ(1, mnt.num_nodes());
51 EXPECT_EQ(ENOENT, mnt.Access(Path("/foo"), R_OK | W_OK));
52 EXPECT_EQ(ENOENT, mnt.Open(Path("/foo"), O_RDWR, &result_node));
54 EXPECT_EQ(1, mnt.num_nodes());
57 EXPECT_EQ(0, mnt.Open(Path("/foo"), O_RDWR | O_CREAT, &file));
62 EXPECT_EQ(2, mnt.num_nodes());
64 EXPECT_EQ(0, mnt.Access(Path("/foo"), R_OK | W_OK));
65 EXPECT_EQ(EACCES, mnt.Access(Path("/foo"), X_OK));
68 EXPECT_EQ(0, mnt.Access(Path("/"), R_OK | W_OK | X_OK))
166 MountMemMock mnt; local
187 MountMemMock mnt; local
210 MountMemMock mnt; local
240 MountMemMock mnt; local
274 MountDevMock mnt; local
279 MountDevMock mnt; local
302 MountDevMock mnt; local
332 MountDevMock mnt; local
    [all...]
kernel_object_test.cc 26 MountNodeRefMock(Mount* mnt) : MountNode(mnt) {}
48 KernelHandleRefMock(const ScopedMount& mnt, const ScopedMountNode& node)
49 : KernelHandle(mnt, node) {}
55 mnt.reset(new MountRefMock());
56 node.reset(new MountNodeRefMock(mnt.get()));
60 // mnt is ref-counted, it doesn't need to be explicitly deleted.
62 mnt.reset(NULL);
66 ScopedMount mnt; member in class:__anon8831::KernelObjectTest
77 EXPECT_EQ(1, mnt->RefCount())
    [all...]
mount_http_test.cc 208 MountHttpForTesting mnt(args, NULL);
210 ASSERT_EQ(0, mnt.ParseManifest(manifest));
212 EXPECT_EQ(EEXIST, mnt.Mkdir(Path("/"), 0));
213 EXPECT_EQ(EEXIST, mnt.Mkdir(Path("/mydir"), 0));
215 EXPECT_EQ(EACCES, mnt.Mkdir(Path("/non_existent"), 0));
220 MountHttpForTesting mnt(args, NULL);
222 ASSERT_EQ(0, mnt.ParseManifest(manifest));
224 EXPECT_EQ(EACCES, mnt.Rmdir(Path("/")));
225 EXPECT_EQ(EACCES, mnt.Rmdir(Path("/mydir")));
227 EXPECT_EQ(ENOTDIR, mnt.Rmdir(Path("/mydir/foo")))
    [all...]
mount_html5fs_test.cc 114 ScopedRef<MountHtml5FsForTesting> mnt(
126 ScopedRef<MountHtml5FsForTesting> mnt(
129 ASSERT_EQ(0, mnt->Access(Path("/foo"), R_OK | W_OK | X_OK));
130 ASSERT_EQ(ENOENT, mnt->Access(Path("/bar"), F_OK));
135 ScopedRef<MountHtml5FsForTesting> mnt(
139 EXPECT_EQ(EEXIST, mnt->Mkdir(Path("/"), 0644));
142 ASSERT_EQ(ENOENT, mnt->Access(path, F_OK));
143 ASSERT_EQ(0, mnt->Mkdir(path, 0644));
147 ASSERT_EQ(0, mnt->Open(path, O_RDONLY, &node));
156 ScopedRef<MountHtml5FsForTesting> mnt(
    [all...]
mount_node_test.cc 166 ScopedMount mnt(new MockMount());
168 KernelHandle handle(mnt, file);
287 ScopedMount mnt(new MockMount());
296 KernelHandle handle(mnt, file);
305 KernelHandle handle(mnt, file);
315 KernelHandle handle(mnt, file);
kernel_proxy_test.cc 45 ScopedMount mnt; local
48 AcquireMountAndRelPath("/", &mnt, &path);
49 return mnt.get();
618 ScopedRef<MountMock> mnt() { return mnt_; } function in class:__anon8835::KernelProxyError
639 ScopedRef<MountMock> mnt() { return kp_.mnt(); } function in class:__anon8835::KernelProxyErrorTest
648 ScopedRef<MountMock> mock_mnt(mnt());
670 ScopedRef<MountMock> mock_mnt(mnt());
  /external/chromium_org/native_client_sdk/src/libraries/nacl_io/
typed_mount_factory.h 18 sdk_util::ScopedRef<T> mnt(new T());
19 Error error = mnt->Init(args);
23 *out_mount = mnt;
fuse_mount_factory.cc 19 sdk_util::ScopedRef<MountFuse> mnt(new MountFuse());
20 Error error = mnt->Init(args_copy);
24 *out_mount = mnt;
mount_node_stream.cc 19 MountNodeStream::MountNodeStream(Mount* mnt)
20 : MountNode(mnt),
mount_node_pipe.h 18 explicit MountNodePipe(Mount* mnt);
mount_node_pipe.cc 22 MountNodePipe::MountNodePipe(Mount* mnt)
23 : MountNodeStream(mnt),
mount_node_stream.h 40 explicit MountNodeStream(Mount* mnt);
kernel_proxy.cc 149 ScopedMount mnt; local
152 Error error = AcquireMountAndRelPath(path, &mnt, &rel);
159 error = mnt->OpenResource(rel, &node);
162 error = mnt->Open(rel, O_RDONLY, &node);
169 ScopedKernelHandle handle(new KernelHandle(mnt, node));
180 ScopedMount mnt; local
183 Error error = AcquireMountAndNode(path, open_flags, &mnt, &node);
189 ScopedKernelHandle handle(new KernelHandle(mnt, node));
334 ScopedMount mnt; local
337 Error error = AcquireMountAndRelPath(path, &mnt, &rel)
353 ScopedMount mnt; local
423 ScopedMount mnt; local
614 ScopedMount mnt; local
643 ScopedMount mnt; local
679 ScopedMount mnt; local
754 ScopedMount mnt; local
    [all...]
kernel_object.cc 33 Error KernelObject::AttachMountAtPath(const ScopedMount& mnt,
41 mounts_[abs_path] = mnt;
133 ScopedMount mnt; local
136 Error error = AcquireMountAndNode(abs_path, O_RDONLY, &mnt, &node);
kernel_object.h 46 Error AttachMountAtPath(const ScopedMount& mnt, const std::string& path);
mount_node_dir.h 27 explicit MountNodeDir(Mount* mnt);
  /external/kernel-headers/original/linux/
mount.h 59 static inline struct vfsmount *mntget(struct vfsmount *mnt)
61 if (mnt)
62 atomic_inc(&mnt->mnt_count);
63 return mnt;
66 extern void mntput_no_expire(struct vfsmount *mnt);
67 extern void mnt_pin(struct vfsmount *mnt);
68 extern void mnt_unpin(struct vfsmount *mnt);
70 static inline void mntput(struct vfsmount *mnt)
72 if (mnt) {
73 mnt->mnt_expiry_mark = 0
    [all...]
  /external/genext2fs/
test-mount.sh 12 umount mnt 2>/dev/null || true
13 rm -rf mnt fout lsout
40 mkdir -p mnt
41 mount -t ext2 -o ro,loop ext2.img mnt || fail
42 if (! [ -f mnt/file.$size ]) || \
43 [ $size != "`ls -al mnt | grep file.$size |
60 mkdir -p mnt
61 mount -t ext2 -o ro,loop ext2.img mnt || fail
62 [ -d mnt/dev ] || fail
69 ls -aln mnt/dev |
    [all...]
  /external/e2fsprogs/lib/ext2fs/
ismounted.c 46 struct mntent *mnt; local
67 while ((mnt = getmntent (f)) != NULL) {
68 if (mnt->mnt_fsname[0] != '/')
70 if (strcmp(file, mnt->mnt_fsname) == 0)
72 if (stat(mnt->mnt_fsname, &st_buf) == 0) {
86 if (mnt == 0) {
113 if (stat(mnt->mnt_dir, &st_buf) < 0) {
118 mtab_file, mnt->mnt_dir);
127 mtab_file, file, mnt->mnt_dir);
136 if (hasmntopt(mnt, MNTOPT_RO)
    [all...]
  /external/linux-tools-perf/util/
cgroup.c 61 char mnt[MAX_PATH+1]; local
65 if (cgroupfs_find_mountpoint(mnt, MAX_PATH+1))
68 snprintf(path, MAX_PATH, "%s/%s", mnt, name);
  /external/kernel-headers/original/linux/nfsd/
export.h 90 struct vfsmount *mnt,
94 struct vfsmount *mnt,
  /external/libselinux/src/
init.c 105 void set_selinuxmnt(char *mnt)
107 selinux_mnt = strdup(mnt);
  /external/libffi/src/
closures.c 264 struct mntent mnt; local
267 if (getmntent_r (last_mntent, &mnt, buf, sizeof (buf)))
270 if (hasmntopt (&mnt, "ro")
271 || hasmntopt (&mnt, "noexec")
272 || access (mnt.mnt_dir, W_OK))
275 fd = open_temp_exec_file_dir (mnt.mnt_dir);
  /external/grub/util/
mkbimage 189 mkdir ${image}.mnt
190 mount -t $fs /dev/loop1 ${image}.mnt
191 cp -a ${image}1/* ${image}.mnt/ && sync
192 umount ${image}.mnt
193 rmdir ${image}.mnt
  /system/extras/tests/ext4/
android_emmc_perf_tests.sh 100 adb shell umount /mnt/sdcard >/dev/null 2>&1
101 adb shell umount /mnt/shell/sdcard0 >/dev/null 2>&1
102 adb shell umount /mnt/shell/emulated >/dev/null 2>&1

Completed in 408 milliseconds

1 2