Lines Matching refs:zfile
45 struct zfs_file zfile; in do_zfs_load() local
94 memset(&zfile, 0, sizeof(zfile)); in do_zfs_load()
95 zfile.device = &vdev; in do_zfs_load()
96 if (zfs_open(&zfile, filename)) { in do_zfs_load()
101 if ((count < zfile.size) && (count != 0)) in do_zfs_load()
102 zfile.size = (uint64_t)count; in do_zfs_load()
104 if (zfs_read(&zfile, (char *)addr, zfile.size) != zfile.size) { in do_zfs_load()
107 zfs_close(&zfile); in do_zfs_load()
111 zfs_close(&zfile); in do_zfs_load()
116 printf("%llu bytes read\n", zfile.size); in do_zfs_load()
117 env_set_hex("filesize", zfile.size); in do_zfs_load()