[ltt-dev] [ltt-control] [bug] "lttctl" doesn't not fail when given directory does not exist

alexmont (LTTng Project) no-reply at lttng.org
Tue Mar 8 15:42:07 EST 2011


Issue status update for
http://lttng.org/issue/208
Post a follow up:
http://lttng.org/comment/reply/208#comment-form


  Project:      ltt-control
  Version:      0.88
  Component:    User interface
  Category:     bug report
  Priority:     minor
  Assigned to:  Anonymous
  Status:       new
  Updated by:   alexmont

If you run "lttctl -w" pointing a non-existing directory, lttctl will
happilly start the trace but will discard all the information.


For example:
mkdir -p /tmp/traces/out
sudo lttctl -C -w /tmp/traces/out/trace1 trace1
(trace starts and works ok)


But if doing instead:
mkdir -p /tmp/traces
sudo lttctl -C -w /tmp/traces/out/trace1 trace1  #the "out" directory
doesn't exist
(lttctl reports the trace as started but will not save anything)


lttctl should:
1) include the "mkdir -p" to create the directory first, OR
2) report the error and exit with a value > 0



alexmont





More information about the lttng-dev mailing list