lttng enable-channel: disallow --overwrite and --blocking-timeout
[lttng-tools.git] / src / bin / lttng / commands / enable_channels.c
index 48c21109527cb6c28c9c242f817e5d4865fb4dcd..cb9f44a635531bbc5a0db04b77baee748faf6fac 100644 (file)
@@ -652,6 +652,14 @@ int cmd_enable_channels(int argc, const char **argv)
                goto end;
        }
 
+       if (chan_opts.attr.overwrite == 1 && opt_blocking_timeout.set &&
+                       opt_blocking_timeout.value != 0) {
+               ERR("You cannot specify --overwrite and --blocking-timeout=N, "
+                       "where N is different than 0");
+               ret = CMD_ERROR;
+               goto end;
+       }
+
        /* Mi check */
        if (lttng_opt_mi) {
                writer = mi_lttng_writer_create(fileno(stdout), lttng_opt_mi);
This page took 0.023907 seconds and 4 git commands to generate.