Lines Matching refs:res
66 int res; in lfs_fstest_newfs() local
73 res = system(cmd); in lfs_fstest_newfs()
74 if (res != 0) in lfs_fstest_newfs()
75 return res; in lfs_fstest_newfs()
77 res = rump_init(); in lfs_fstest_newfs()
78 if (res != 0) in lfs_fstest_newfs()
79 return res; in lfs_fstest_newfs()
91 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK); in lfs_fstest_newfs()
92 if (res != 0) { in lfs_fstest_newfs()
94 return res; in lfs_fstest_newfs()
106 int res; in lfs_fstest_delfs() local
109 res = rump_pub_etfs_remove(args->ta_devpath); in lfs_fstest_delfs()
110 if (res != 0) in lfs_fstest_delfs()
111 return res; in lfs_fstest_delfs()
113 res = unlink(args->ta_imgpath); in lfs_fstest_delfs()
114 if (res != 0) in lfs_fstest_delfs()
115 return res; in lfs_fstest_delfs()
156 int res; in lfs_fstest_mount() local
158 res = rump_sys_mkdir(path, 0777); in lfs_fstest_mount()
159 if (res == -1) in lfs_fstest_mount()
160 return res; in lfs_fstest_mount()
162 res = rump_sys_mount(MOUNT_LFS, path, flags, &args->ta_uargs, in lfs_fstest_mount()
164 if (res == -1) in lfs_fstest_mount()
165 return res; in lfs_fstest_mount()
168 res = pthread_create(&args->ta_cleanerthread, NULL, cleaner, args); in lfs_fstest_mount()
169 if (res) in lfs_fstest_mount()
170 return res; in lfs_fstest_mount()
181 int res; in lfs_fstest_unmount() local
183 res = rump_sys_unmount(path, flags); in lfs_fstest_unmount()
184 if (res == -1) { in lfs_fstest_unmount()
185 return res; in lfs_fstest_unmount()
188 res = rump_sys_rmdir(path); in lfs_fstest_unmount()
189 return res; in lfs_fstest_unmount()