MMAP "mmap error"
LOOP "loop terminated"
NOMEM "cannot allocate memory"
+NOTDIR "not a directory"
+STAT "stat error"
+UNLINK "failed to unlink file"
ret = stat(dirname, &statbuf);
free(dirname);
if (ret < 0) {
- ret = -ERRNO_TO_ERROR(errno);
+ ret = -E_OSL_STAT;
goto err;
}
- ret = -ERRNO_TO_ERROR(ENOTDIR);
+ ret = -E_OSL_NOTDIR;
if (!S_ISDIR(statbuf.st_mode))
goto err;
}
err = errno;
free(filename);
if (ret < 0)
- return -ERRNO_TO_ERROR(err);
+ return -E_OSL_UNLINK;
if (!(t->desc->flags & OSL_LARGE_TABLE))
return 1;
dirname = disk_storage_dirname(t, col_num, ds_name);