commit | 70a4c0c8417bba7c2e1e9a384b9acf226f5b9782 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Wed Jul 01 09:24:05 2009 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Wed Jul 01 09:24:05 2009 +0200 |
tree | 5b5f16b4f81cb4a7478b970af46c96d7b924bc85 | |
parent | 3980127d55c6b1773274bc854aae4589aa3f785a [diff] [blame] |
Add verify hook to options This allows us to individually verify options, instead of having a big function that attempts to fix things up. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/parse.c b/parse.c index 1b38db5..5043374 100644 --- a/parse.c +++ b/parse.c
@@ -428,6 +428,12 @@ ret = 1; } + if (ret) + return ret; + + if (o->verify) + ret = o->verify(o, data); + return ret; }