[lttng-dev] lttng create --output problem

David Goulet dgoulet at efficios.com
Tue Apr 3 17:58:24 EDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On 12-04-03 05:56 PM, Ettore Del Negro wrote:
> On 3/4/2012 11:22 PM, David Goulet wrote:
>> Actually it does. If you type: lttng create test -o /tmp/test
>>
>> /tmp/test is created and empty.
>>
> Yeah, that was meant as a reply for Ryan.

Oh right! hehe.

>>
>>> Anyway, i just noticed a problem with relative paths:
>>> (~)> lttng
>>> LTTng Trace Control 2.0.0-rc2
>>> (~)> lttng create --output traces session
>>> Error: Create directory failed
>>> (~)> lttng create --output ./traces session
>>> Error: Create directory failed
>>> (~)> lttng create --output /root/traces session
>>> Session session created.
>>> Traces will be written in /root/traces
>>
>> I've just tested it. The trace output directory, given without a full
>> path, is
>> created at the $PWD of the session daemon. If the directory exist, it will
>> simply write the trace in it.
>>
>> So, the error you have are probably related to a location you don't
>> have write
>> access.....
>>
>> I agree that the relative path could be handle better and use the current
>> directory of the user using "lttng".
> I was missing the fact that the *daemon* creates the directory. Thanks
> for clarify it.
> Definitely use the current directory of lttng for relative paths would
> be better.

Will patch this tomorrow! :)

Thanks for the feedback!
David

>>
>> Thanks!
>> David
>>
>>
> Thanks,
> Ettore
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJPe3J9AAoJEELoaioR9I020AgIAJEzfK9i3ykkwhzGIv1exJ93
NDB3itF0skcSqk4bnTekNt7PjkfZOrYBv1jTH4Sxhag2U6C54AXQWTwak7m/t7We
pLgrqBUdd7ZxdZjC/bCDMbSfR0ihlZujI16qIzyE03hEF0ovfut9ZqqUZyhnKpx2
P2LHzjnz9kkscTxPR1mqfYntZwCvlxa72aXIH+HZ7OkE3RLJvn99KMO5X3VolEOJ
1jfsR7aVSvVeOnNy8LV9i7bGzMc15gbehHZSrZSBpG14FF9GGq89Mxe669MyOKAM
hDqvd6MWRqvIsRhMVRek8KlyIBuf+BEB7ivP/wW1aMA5LwEhFbORd6kujAonhIA=
=AVne
-----END PGP SIGNATURE-----



More information about the lttng-dev mailing list