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