Lines Matching refs:res
60 int res; in ffs_fstest_newfs() local
70 res = system(cmd); in ffs_fstest_newfs()
72 if (res != 0) in ffs_fstest_newfs()
73 return res; in ffs_fstest_newfs()
75 res = rump_init(); in ffs_fstest_newfs()
76 if (res != 0) in ffs_fstest_newfs()
77 return res; in ffs_fstest_newfs()
87 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK); in ffs_fstest_newfs()
88 if (res != 0) { in ffs_fstest_newfs()
90 return res; in ffs_fstest_newfs()
103 int res; in ffs_fstest_delfs() local
106 res = rump_pub_etfs_remove(args->ta_devpath); in ffs_fstest_delfs()
107 if (res != 0) { in ffs_fstest_delfs()
108 errno = res; in ffs_fstest_delfs()
112 res = unlink(args->ta_imgpath); in ffs_fstest_delfs()
113 if (res != 0) in ffs_fstest_delfs()
114 return res; in ffs_fstest_delfs()
125 int res; in ffs_fstest_mount() local
128 res = rump_sys_mkdir(path, 0777); in ffs_fstest_mount()
129 if (res == -1) in ffs_fstest_mount()
130 return res; in ffs_fstest_mount()
132 res = rump_sys_mount(MOUNT_FFS, path, flags, &args->ta_uargs, in ffs_fstest_mount()
134 return res; in ffs_fstest_mount()
147 int res; in ffs_fstest_unmount() local
149 res = rump_sys_unmount(path, flags); in ffs_fstest_unmount()
150 if (res == -1) in ffs_fstest_unmount()
151 return res; in ffs_fstest_unmount()
153 res = rump_sys_rmdir(path); in ffs_fstest_unmount()
154 return res; in ffs_fstest_unmount()