Lines Matching refs:res
59 int res; in sysvbfs_fstest_newfs() local
66 res = system(cmd); in sysvbfs_fstest_newfs()
67 if (res != 0) in sysvbfs_fstest_newfs()
68 return res; in sysvbfs_fstest_newfs()
70 res = rump_init(); in sysvbfs_fstest_newfs()
71 if (res != 0) in sysvbfs_fstest_newfs()
72 return res; in sysvbfs_fstest_newfs()
82 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK); in sysvbfs_fstest_newfs()
83 if (res != 0) { in sysvbfs_fstest_newfs()
85 return res; in sysvbfs_fstest_newfs()
97 int res; in sysvbfs_fstest_delfs() local
100 res = rump_pub_etfs_remove(args->ta_devpath); in sysvbfs_fstest_delfs()
101 if (res != 0) in sysvbfs_fstest_delfs()
102 return res; in sysvbfs_fstest_delfs()
104 res = unlink(args->ta_imgpath); in sysvbfs_fstest_delfs()
105 if (res != 0) in sysvbfs_fstest_delfs()
106 return res; in sysvbfs_fstest_delfs()
116 int res; in sysvbfs_fstest_mount() local
119 res = rump_sys_mkdir(path, 0777); in sysvbfs_fstest_mount()
120 if (res == -1) in sysvbfs_fstest_mount()
121 return res; in sysvbfs_fstest_mount()
123 res = rump_sys_mount(MOUNT_SYSVBFS, path, flags, &args->ta_uargs, in sysvbfs_fstest_mount()
125 return res; in sysvbfs_fstest_mount()
131 int res; in sysvbfs_fstest_unmount() local
133 res = rump_sys_unmount(path, flags); in sysvbfs_fstest_unmount()
134 if (res == -1) in sysvbfs_fstest_unmount()
135 return res; in sysvbfs_fstest_unmount()
137 res = rump_sys_rmdir(path); in sysvbfs_fstest_unmount()
138 return res; in sysvbfs_fstest_unmount()