/* Copyright (c) 2015-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream.h"
#include "istream-private.h"
#include "istream-concat.h"
#include "istream-failure-at.h"
#include "ostream-failure-at.h"
#include "ostream.h"
#include "fs-api-private.h"
"wait", "metadata", "prefetch", "read", "write", "lock", "exists",
"stat", "copy", "rename", "delete", "iter"
};
struct randomfail_fs {
};
struct randomfail_fs_file {
};
struct randomfail_fs_iter {
unsigned int fail_pos;
};
{
}
{
return TRUE;
}
}
return FALSE;
}
static int
const char **error_r)
{
unsigned int num;
if (invalid_value) {
*error_r = "Invalid probability value";
return -1;
}
return 1;
}
if (invalid_value) {
*error_r = "Invalid probability value";
return -1;
}
return 1;
}
return 0;
}
static int
const char **error_r)
{
const char *p;
op = FS_OP_READ;
op = FS_OP_WRITE;
op = FS_OP_ITER;
else
return 0;
if (p == NULL) {
*error_r = "Invalid range value";
return -1;
}
*error_r = "Invalid range values";
return -1;
}
return 1;
}
{
const char *const *tmp;
int ret;
*error_r = "Missing '='";
return -1;
}
if (ret < 0)
return -1;
continue;
}
if (ret < 0)
return -1;
continue;
}
return -1;
}
return 0;
}
static int
const struct fs_settings *set)
{
if (p == NULL) {
return -1;
}
return -1;
}
args = p;
if (*args == '\0') {
return -1;
}
if (parent_args == NULL) {
parent_name = args;
parent_args = "";
} else {
parent_args++;
}
return -1;
}
return 0;
}
{
}
{
}
{
}
static void
{
}
{
}
{
return FALSE;
return TRUE;
}
return FALSE;
}
static bool
{
return TRUE;
}
return FALSE;
}
static int
{
return -1;
}
return ret;
}
static bool
{
return FALSE;
return TRUE;
}
static int
{
int ret;
return -1;
}
{
return TRUE;
}
{
int ret;
return -1;
return -1;
return ret;
}
static struct istream *
{
return input;
return input2;
}
{
int ret;
return -1;
}
{
else {
}
}
{
else
if (!success) {
return -1;
}
return -1;
}
}
}
static int
{
return -1;
}
{
i_unreached();
}
{
int ret;
return -1;
}
{
int ret;
return -1;
}
{
int ret;
return -1;
}
{
int ret;
return -1;
else
}
{
int ret;
return -1;
}
{
int ret;
return -1;
}
{
}
static void
enum fs_iter_flags flags)
{
}
{
const char *fname;
return NULL;
}
return fname;
}
{
int ret;
ret = -1;
}
return ret;
}
.name = "randomfail",
.v = {
NULL,
}
};