commit | 22f78b320a8d2ffa32b5736fe754c108a8d21525 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@suse.de> | Wed Jun 07 11:30:07 2006 +0200 |
committer | Jens Axboe <axboe@suse.de> | Wed Jun 07 11:30:07 2006 +0200 |
tree | 8be9dd9f467b6b965da467498150bca73b8a1f91 | |
parent | 8914a9d83c67a2ead861ac997a1d4b06d02639bc [diff] [blame] |
[PATCH] Guard ioscheduler= option with FIO_HAVE_IOSCHED_SWITCH
diff --git a/init.c b/init.c index 4531254..d02056c 100644 --- a/init.c +++ b/init.c
@@ -884,9 +884,15 @@ continue; } if (!check_strstore(p, "ioscheduler", tmpbuf)) { +#ifndef FIO_HAVE_IOSCHED_SWITCH + fprintf(stderr, "io scheduler switching not available\n"); + ret = 1; + break; +#else td->ioscheduler = strdup(tmpbuf); fgetpos(f, &off); continue; +#endif } /*