It wont work on FIO_DISKLESSIO engines and the engine isn't loaded
at this point so we cannot check. For now just disable the check.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
static int check_dir(struct thread_data *td, char *fname)
{
char file[PATH_MAX], *dir;
static int check_dir(struct thread_data *td, char *fname)
{
char file[PATH_MAX], *dir;
int elen = 0;
if (td->o.directory) {
strcpy(file, td->o.directory);
int elen = 0;
if (td->o.directory) {
strcpy(file, td->o.directory);
- sprintf(file + elen, "/%s", fname);
+ sprintf(file + elen, "%s", fname);
+#if 0
+ {
+ struct stat sb;
+ /*
+ * We can't do this on FIO_DISKLESSIO engines. The engine isn't loaded
+ * yet, so we can't do this check right here...
+ */
if (lstat(dir, &sb) < 0) {
int ret = errno;
if (lstat(dir, &sb) < 0) {
int ret = errno;
log_err("fio: %s is not a directory\n", dir);
return 1;
}
log_err("fio: %s is not a directory\n", dir);
return 1;
}