options: check for dryrun in cpu mask setting
authorJens Axboe <axboe@fb.com>
Tue, 8 Dec 2015 22:31:22 +0000 (15:31 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 8 Dec 2015 22:31:22 +0000 (15:31 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
options.c

index 1886b23cd010b803b297fdae04a42b0c8684de69..bcddbf14319db46f20d4c931fb05ab702bc52d16 100644 (file)
--- a/options.c
+++ b/options.c
@@ -530,6 +530,9 @@ static int str_verify_cpus_allowed_cb(void *data, const char *input)
 {
        struct thread_data *td = data;
 
+       if (parse_dryrun())
+               return 0;
+
        return set_cpus_allowed(td, &td->o.verify_cpumask, input);
 }
 #endif