Fix wrong time conversion on --status-interval= command line option
[fio.git] / init.c
diff --git a/init.c b/init.c
index 0a872c0f1eed90eb05c05b89abeaab5a7fa104a7..adb9066b14a86631e0019967889863c091f0b2ac 100644 (file)
--- a/init.c
+++ b/init.c
@@ -676,6 +676,11 @@ static int fixup_options(struct thread_data *td)
        if (td->o.rand_seed)
                td->o.rand_repeatable = 0;
 
+       if ((td->io_ops->flags & FIO_NOEXTEND) && td->o.file_append) {
+               log_err("fio: can't append/extent with IO engine %s\n", td->io_ops->name);
+               ret = 1;
+       }
+
        return ret;
 }
 
@@ -856,11 +861,6 @@ int ioengine_load(struct thread_data *td)
        return 0;
 }
 
-static int compression_enabled(struct thread_options *o)
-{
-       return o->compress_percentage || o->compress_chunk;
-}
-
 static void init_flags(struct thread_data *td)
 {
        struct thread_options *o = &td->o;
@@ -873,14 +873,8 @@ static void init_flags(struct thread_data *td)
                td->flags |= TD_F_READ_IOLOG;
        if (o->refill_buffers)
                td->flags |= TD_F_REFILL_BUFFERS;
-
-       /*
-        * Don't scramble buffers if we set any of the compression
-        * settings
-        */
-       if (o->scramble_buffers && !compression_enabled(o))
+       if (o->scramble_buffers)
                td->flags |= TD_F_SCRAMBLE_BUFFERS;
-
        if (o->verify != VERIFY_NONE)
                td->flags |= TD_F_VER_NONE;
 }
@@ -1944,7 +1938,7 @@ int parse_cmd_line(int argc, char *argv[], int client_type)
                case 'L': {
                        long long val;
 
-                       if (check_str_time(optarg, &val, 1)) {
+                       if (check_str_time(optarg, &val, 0)) {
                                log_err("fio: failed parsing time %s\n", optarg);
                                do_exit++;
                                exit_val = 1;