fio: allow '#' comments
authorIngo Molnar <mingo@elte.hu>
Tue, 20 Feb 2007 09:19:44 +0000 (10:19 +0100)
committerJens Axboe <axboe@carl.home.kernel.dk>
Tue, 20 Feb 2007 09:19:44 +0000 (10:19 +0100)
allow script-type comment's:

# comment

Signed-off-by: Ingo Molnar <mingo@elte.hu>
init.c

diff --git a/init.c b/init.c
index 9e7fb2c055e62a17ceac9dbf78757d1b83bd357c..744ae854c4f4cbcb5e1f281472b7a1719e073280 100644 (file)
--- a/init.c
+++ b/init.c
@@ -895,6 +895,8 @@ static int is_empty_or_comment(char *line)
        for (i = 0; i < strlen(line); i++) {
                if (line[i] == ';')
                        return 1;
+               if (line[i] == '#')
+                       return 1;
                if (!isspace(line[i]) && !iscntrl(line[i]))
                        return 0;
        }