Lines Matching refs:fsfd
52 int tmpfs, fsfd, ovl; in ovl_mount() local
54 fsfd = sys_fsopen("tmpfs", 0); in ovl_mount()
55 if (fsfd == -1) in ovl_mount()
58 if (sys_fsconfig(fsfd, FSCONFIG_CMD_CREATE, NULL, NULL, 0) == -1) in ovl_mount()
61 tmpfs = sys_fsmount(fsfd, 0, 0); in ovl_mount()
65 close(fsfd); in ovl_mount()
77 fsfd = sys_fsopen("overlay", 0); in ovl_mount()
78 if (fsfd == -1) in ovl_mount()
80 if (sys_fsconfig(fsfd, FSCONFIG_SET_STRING, "source", "test", 0) == -1 || in ovl_mount()
81 sys_fsconfig(fsfd, FSCONFIG_SET_STRING, "lowerdir", "/tmp/l", 0) == -1 || in ovl_mount()
82 sys_fsconfig(fsfd, FSCONFIG_SET_STRING, "upperdir", "/tmp/u", 0) == -1 || in ovl_mount()
83 sys_fsconfig(fsfd, FSCONFIG_SET_STRING, "workdir", "/tmp/w", 0) == -1) in ovl_mount()
85 if (sys_fsconfig(fsfd, FSCONFIG_CMD_CREATE, NULL, NULL, 0) == -1) in ovl_mount()
87 ovl = sys_fsmount(fsfd, 0, 0); in ovl_mount()
134 int fsfd; in main() local
136 fsfd = sys_fsopen("overlay", 0); in main()
137 if (fsfd == -1) { in main()
141 close(fsfd); in main()