X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=options.c;h=3c37e9105698cbabb0f46d66816de93762d8cd3e;hp=b8df1da1f90756f68cd5fd15b50500b646ba55b3;hb=3c48c2c1c702047f8a92fa21fdd1471781b9dab4;hpb=cb499fc4216eb4266c70ae238608f67def1758fe diff --git a/options.c b/options.c index b8df1da1..3c37e910 100644 --- a/options.c +++ b/options.c @@ -6,6 +6,9 @@ #include #include #include +#include +#include +#include #include "fio.h" #include "parse.h" @@ -403,7 +406,7 @@ static int str_verify_pattern_cb(void *data, unsigned int *off) struct thread_data *td = data; unsigned int msb; - msb = fls(*off); + msb = __fls(*off); if (msb <= 8) td->o.verify_pattern_bytes = 1; else if (msb <= 16) @@ -553,6 +556,11 @@ static struct fio_option options[] = { { .ival = "posixaio", .help = "POSIX asynchronous IO", }, +#endif +#ifdef FIO_HAVE_SOLARISAIO + { .ival = "solarisaio", + .help = "Solaris native asynchronous IO", + }, #endif { .ival = "mmap", .help = "Memory mapped IO", @@ -1275,7 +1283,7 @@ void fio_options_dup_and_init(struct option *long_options) o = &options[0]; while (o->name) { - long_options[i].name = o->name; + long_options[i].name = (char *) o->name; long_options[i].val = FIO_GETOPT_JOB; if (o->type == FIO_OPT_STR_SET) long_options[i].has_arg = no_argument;