Skip to content
Snippets Groups Projects
Commit 1e57124a authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

test simple zfs file writes

parent ecdac9c0
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,7 @@ int main(int argc, char **argv)
char path[PATH_MAX];
struct dirent *d;
struct stat s;
uint64_t foo = (uint64_t)-1;
int fd;
if (statfs("/usr", &st) < 0)
......@@ -91,6 +92,11 @@ int main(int argc, char **argv)
}
printf("fstat done\n");
if (write(fd, &foo, sizeof(foo)) != sizeof(foo)) {
perror("write");
return EXIT_FAILURE;
}
close(fd);
#if 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment