perror(path);
return -1;
}
+ if (!geom)
+ return fd;
+
if (!platform_test_xfs_fd(fd)) {
fprintf(stderr, _("%s: specified file "
"[\"%s\"] is not on an XFS filesystem\n"),
ssize_t count, total;
unsigned int seed = 0xcdcdcdcd;
unsigned int bsize = 4096;
- xfs_fsop_geom_t geometry;
char *sp, *infile = NULL;
int c, fd = -1, dflag = 0;
return 0;
if (infile &&
- ((fd = openfile(infile, &geometry, 0, 0, dflag, 1, 0, 0, 0)) < 0))
+ ((fd = openfile(infile, NULL, 0, 0, dflag, 1, 0, 0, 0)) < 0))
return 0;
if (!write_buffer(offset, count, bsize, fd, skip, &total)) {