[PATCH] Change O_DIRECT vs buffered setup
[fio.git] / parse.c
diff --git a/parse.c b/parse.c
index 10d2116e9d95442c5d1e34ad3c5729b9ef441cc3..81ffb741094b2ebec9b24e18dff062af2bceced3 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -132,6 +132,8 @@ static struct fio_option *find_option(struct fio_option *options,
        while (o->name) {
                if (!strcmp(o->name, opt))
                        return o;
+               else if (o->alias && !strcmp(o->alias, opt))
+                       return o;
 
                o++;
        }
@@ -265,6 +267,9 @@ static int __handle_option(struct fio_option *o, const char *ptr, void *data,
                        return 1;
                }
 
+               if (o->neg)
+                       il = !il;
+
                if (fn)
                        ret = fn(data, &il);
                else {