Lines Matching refs:res
59 int res; in v7fs_fstest_newfs() local
66 res = system(cmd); in v7fs_fstest_newfs()
67 if (res != 0) in v7fs_fstest_newfs()
68 return res; in v7fs_fstest_newfs()
70 res = rump_init(); in v7fs_fstest_newfs()
71 if (res != 0) in v7fs_fstest_newfs()
72 return res; in v7fs_fstest_newfs()
83 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK); in v7fs_fstest_newfs()
84 if (res != 0) { in v7fs_fstest_newfs()
86 return res; in v7fs_fstest_newfs()
98 int res; in v7fs_fstest_delfs() local
101 res = rump_pub_etfs_remove(args->ta_devpath); in v7fs_fstest_delfs()
102 if (res != 0) in v7fs_fstest_delfs()
103 return res; in v7fs_fstest_delfs()
105 res = unlink(args->ta_imgpath); in v7fs_fstest_delfs()
106 if (res != 0) in v7fs_fstest_delfs()
107 return res; in v7fs_fstest_delfs()
117 int res; in v7fs_fstest_mount() local
120 res = rump_sys_mkdir(path, 0777); in v7fs_fstest_mount()
121 if (res == -1) in v7fs_fstest_mount()
122 return res; in v7fs_fstest_mount()
124 res = rump_sys_mount(MOUNT_V7FS, path, flags, &args->ta_uargs, in v7fs_fstest_mount()
126 return res; in v7fs_fstest_mount()
132 int res; in v7fs_fstest_unmount() local
134 res = rump_sys_unmount(path, flags); in v7fs_fstest_unmount()
135 if (res == -1) in v7fs_fstest_unmount()
136 return res; in v7fs_fstest_unmount()
138 res = rump_sys_rmdir(path); in v7fs_fstest_unmount()
139 return res; in v7fs_fstest_unmount()