/third_party/ltp/testcases/kernel/fs/fs_bind/move/ |
H A D | fs_bind_move13.sh | 18 EXPECT_PASS mount --bind parent2 share2 21 EXPECT_FAIL mount --move dir parent2/child2
|
/third_party/ltp/lib/ |
H A D | tst_fs_setup.c | 5 #include <sys/mount.h> 32 ret = mount("overlay", OVL_MNT, "overlay", 0, in mount_overlay() 47 "overlayfs mount failed"); in mount_overlay()
|
/third_party/ltp/testcases/kernel/fs/fs_bind/rbind/ |
H A D | fs_bind_rbind39.sh | 17 EXPECT_PASS mount --bind "$FS_BIND_DISK1" parent1/child1 19 EXPECT_PASS mount --rbind parent1 parent2
|
/third_party/ltp/testcases/kernel/security/tomoyo/ |
H A D | newns.c | 26 #include <sys/mount.h> 37 mount("/tmp/", "/tmp/", "tmpfs", 0, NULL); in child()
|
/third_party/rust/crates/nix/test/ |
H A D | test_mount.rs | 4 // use of user and mount namespaces. On systems that allow unprivileged user 19 use nix::mount::{mount, umount, MsFlags}; 34 mount( in test_mount_tmpfs_without_flags_allows_rwx() 41 .unwrap_or_else(|e| panic!("mount failed: {}", e)); in test_mount_tmpfs_without_flags_allows_rwx() 100 mount( in test_mount_rdonly_disallows_write() 107 .unwrap_or_else(|e| panic!("mount failed: {}", e)); in test_mount_rdonly_disallows_write() 125 mount( in test_mount_noexec_disallows_exec() 132 .unwrap_or_else(|e| panic!("mount failed: {}", e)); in test_mount_noexec_disallows_exec() 178 mount( in test_mount_bind() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | test_current_pid_tgid_new_ns.c | 10 #include <sys/mount.h> 76 if (CHECK_NEWNS(mount("none", "/proc", NULL, MS_PRIVATE|MS_REC, NULL), in main() 80 if (CHECK_NEWNS(mount("proc", "/proc", "proc", MS_NOSUID|MS_NOEXEC|MS_NODEV, NULL), in main() 81 "Mounting proc", "Cannot mount proc! errno=%d\n", errno)) in main()
|
/kernel/linux/linux-6.6/fs/ |
H A D | binfmt_elf_test.c | 11 * readelf -lW /bin/mount | grep '^ .*0x0' | awk '{print "\t\t{ .p_type = PT_" \ in total_mapping_size_test() 14 struct elf_phdr mount[] = { in total_mapping_size_test() local 49 KUNIT_EXPECT_EQ(test, total_mapping_size(mount, ARRAY_SIZE(mount)), mount_size); in total_mapping_size_test()
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | test_cgrp2_sock2.sh | 27 mount -t cgroup2 none /tmp/cgroupv2 33 if mount | grep $BPFFS > /dev/null; then 37 mount -t bpf none $BPFFS
|
/third_party/f2fs-tools/scripts/ |
H A D | spo_test.sh | 30 mount -t f2fs -o disable_roll_forward $DEV $MNT || exit 37 mount -t f2fs $DEV $MNT || exit 42 mount -t f2fs $DEV $MNT || exit
|
/third_party/eudev/test/ |
H A D | test-udev.c | 31 #include <sys/mount.h> 55 { "test/sys", "/sys", "failed to mount test /sys" }, in fake_filesystems() 56 { "test/dev", "/dev", "failed to mount test /dev" }, in fake_filesystems() 57 { "test/run", UDEV_ROOT_RUN, "failed to mount test " UDEV_ROOT_RUN }, in fake_filesystems() 58 { "test/run", "/etc/udev/rules.d", "failed to mount empty /etc/udev/rules.d" }, in fake_filesystems() 59 { "test/run", "/lib/udev/rules.d", "failed to mount empty /lib/udev/rules.d" }, in fake_filesystems() 71 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) < 0) { in fake_filesystems() 73 fprintf(stderr, "failed to mount / as private: %m\n"); in fake_filesystems() 78 err = mount(fakefss[i].src, fakefss[i].target, NULL, MS_BIND, NULL); in fake_filesystems()
|
/third_party/ltp/testcases/kernel/syscalls/mount/ |
H A D | mount07.c | 10 * It is a basic test for MS_NOSYMFOLLOW mount option and is copied 23 #include <sys/mount.h> 26 #include "lapi/mount.h" 147 TST_EXP_PASS_SILENT(mount(tst_device->dev, MNTPOINT, tst_device->fs_type, in run() 154 TST_EXP_PASS_SILENT(mount(tst_device->dev, MNTPOINT, tst_device->fs_type, in run()
|
/kernel/linux/linux-5.10/fs/notify/ |
H A D | fsnotify.h | 10 #include "../mount.h" 18 static inline struct mount *fsnotify_conn_mount( in fsnotify_conn_mount() 21 return container_of(conn->obj, struct mount, mnt_fsnotify_marks); in fsnotify_conn_mount()
|
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-proxy/ |
H A D | minimal-http-server-proxy.c | 17 static const struct lws_http_mount mount = { variable 65 info.mounts = &mount; in main()
|
/third_party/libwebsockets/minimal-examples/client-server/minimal-ws-proxy/ |
H A D | minimal-ws-proxy.c | 14 * To keep it simple, it serves stuff in the subdirectory "./mount-origin" of 16 * You can change that by changing mount.origin. 35 static const struct lws_http_mount mount = { variable 38 /* .origin */ "./mount-origin", /* serve from dir */ 85 info.mounts = &mount; in main()
|
/third_party/ltp/testcases/kernel/fs/squashfs/ |
H A D | squashfs01.c | 34 #include <sys/mount.h> 90 if (mount(tst_device->dev, MOUNT_DIR, "squashfs", 0, NULL) != 0) in run()
|
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server/ |
H A D | minimal-http-server.c | 12 * "./mount-origin" of the directory it was started in. 13 * You can change that by changing mount.origin below. 22 static const struct lws_http_mount mount = { variable 25 /* .origin */ "./mount-origin", /* serve from dir */ 70 info.mounts = &mount; in main()
|
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-basicauth/ |
H A D | minimal-http-server-basicauth.c | 9 * This demonstrates a minimal http server with a second mount that 13 * "./mount-origin" of the directory it was started in. 15 * You can change that by changing mount.origin below. 25 /* override the default mount for /secret in the URL space */ 30 /* .origin */ "./mount-secret-origin", 47 /* default mount serves the URL space from ./mount-origin */ 49 static const struct lws_http_mount mount = { variable 52 /* .origin */ "./mount-origin", /* serve from dir */ 97 info.mounts = &mount; in main() [all...] |
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-mimetypes/ |
H A D | minimal-http-server-mimetypes.c | 12 * "./mount-origin" of the directory it was started in. 13 * You can change that by changing mount.origin below. 29 static const struct lws_http_mount mount = { variable 32 /* .origin */ "./mount-origin", /* serve from dir */ 77 info.mounts = &mount; in main()
|
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-broker/ |
H A D | minimal-ws-broker.c | 12 * To keep it simple, it serves stuff in the subdirectory "./mount-origin" of 14 * You can change that by changing mount.origin. 32 static const struct lws_http_mount mount = { variable 35 /* .origin */ "./mount-origin", /* serve from dir */ 80 info.mounts = &mount; in main()
|
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-server-ring/ |
H A D | minimal-ws-server-ring.c | 12 * To keep it simple, it serves stuff in the subdirectory "./mount-origin" of 14 * You can change that by changing mount.origin. 32 static const struct lws_http_mount mount = { variable 35 /* .origin */ "./mount-origin", /* serve from dir */ 80 info.mounts = &mount; in main()
|
/third_party/ltp/testcases/kernel/mce-test/lib/ |
H A D | mce.sh | 303 mount|grep /sys/kernel/debug > /dev/null 2>&1 304 [ ! $? -eq 0 ] && mount -t debugfs none /sys/kernel/debug 305 mount|grep /sys/kernel/debug > /dev/null 2>&1 312 DEBUGFS=`mount | grep debugfs | cut -d ' ' -f3 | head -1`
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | cgroup_helpers.c | 4 #include <sys/mount.h> 20 * we create a new mount namespace, and cgroup namespace. The cgroupv2 23 * own mount namespace and manage it ourselves. We assume /mnt exists. 27 * mount under /sys/fs/cgroup/net_cls, which should be the case for the 203 if (mount("none", "/", NULL, MS_REC | MS_PRIVATE, NULL)) { in setup_cgroup_environment() 204 log_err("mount fakeroot"); in setup_cgroup_environment() 208 if (mount("none", CGROUP_MOUNT_PATH, "cgroup2", 0, NULL) && errno != EBUSY) { in setup_cgroup_environment() 209 log_err("mount cgroup2"); in setup_cgroup_environment() 491 if (mount("tmpfs", CGROUP_MOUNT_DFLT, "tmpfs", 0, NULL) && in setup_classid_environment() 493 log_err("mount cgrou in setup_classid_environment() [all...] |
/kernel/liteos_m/components/fs/vfs/ |
H A D | vfs_mount.c | 51 /* delete mp from mount list */ in MpDeleteFromList() 97 goto next; /* this mount point do not match, check next */ in VfsMpFind() 189 if ((mFs == NULL) || (mFs->fsMops == NULL) || (mFs->fsMops->mount == NULL)) { in VfsMountPointInit() 245 LOS_ASSERT(mp->mFs->fsMops->mount != NULL); in VfsRemount() 247 return mp->mFs->fsMops->mount(mp, mountflags, data); in VfsRemount() 266 int mount(const char *source, const char *target, in mount() function 291 ret = mp->mFs->fsMops->mount(mp, mountflags, data); in mount() 294 PRINT_ERR("mount failed, target %s.\n", target); in mount() 335 /* delete mp from mount list */ in umount() 381 /* Close all files under the mount poin in umount2() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/gpio/ |
H A D | Makefile | 3 VAR_CFLAGS := $(shell pkg-config --cflags mount 2>/dev/null) 4 VAR_LDLIBS := $(shell pkg-config --libs mount 2>/dev/null)
|
/kernel/linux/linux-6.6/fs/notify/ |
H A D | fsnotify.h | 10 #include "../mount.h" 18 static inline struct mount *fsnotify_conn_mount( in fsnotify_conn_mount() 21 return container_of(conn->obj, struct mount, mnt_fsnotify_marks); in fsnotify_conn_mount()
|