<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hej<br>
<br>
Using the lttng-relayd on a Solaris10 (SunOS 5.10 Generic_150401-20
i86pc i386 i86pc)<br>
<br>
Give the following result.<br>
<br>
<tt>./lttng-relayd -C tcp://0.0.0.0:5342 -D tcp://0.0.0.0:5343 -L </tt><tt><a
class="moz-txt-link-freetext" href="net://localhost:5344"><a class="moz-txt-link-freetext" href="net://localhost:5344">net://localhost:5344</a></a></tt><tt>
-o <b>/home/XXXX/YYYY/lttng-traces</b> -b</tt><tt><br>
</tt><tt> </tt><tt><span style="color:red">PERROR</span></tt><tt> -
12:34:37.861906 [6546/6546]: mkdir recursive: Permission denied
(in _utils_mkdir_recursive_unsafe() at utils.c:621)</tt><tt><br>
</tt><tt> </tt><tt><span style="color:red">PERROR</span></tt><tt> -
12:34:37.864154 [6546/6546]: mkdir /home/XXXX/YYYY/lttng-traces,
uid -1, gid -1: Permission denied (in utils_mkdir_recursive() at
utils.c:663)</tt><tt><br>
</tt><tt><br>
</tt>If I do a truss and start the above mentioned command, the
"mkdir" recursion stop because of permission (not because it exist),
this will then break out of _utils_mkdir_recursive<br>
<br>
<tt><b><i><span style="font-size:10.0pt">egrep mkdir truss.log </span></i></b></tt><br>
<tt><span style="font-size:10.0pt">mkdir("/home", 0770)
Err#17 EEXIST</span></tt><br>
<tt><span style="font-size:10.0pt">mkdir("/home/XXXX", 0770)
Err#13
<font color="#ff0000"> <b>EACCES</b></font></span></tt><br>
<br>
However it shall be noted, I'm doing this as the user being the
owner of the home directory.<br>
<br>
<tt><b><i><span style="font-size:10.0pt">ls -ld /home /home/XXXX</span></i></b></tt><br>
<tt><span style="font-size:10.0pt">drwxr-xr-x 409 root
root 16384 Oct 20 11:47 /home</span></tt><br>
<tt><span style="font-size:10.0pt">drwxr-x--- 199 XXXX
nms 49152 Oct 27 06:15 /home/XXXX</span></tt><br>
<br>
If I try the following little exercise "directly" in Solaris, it
works with no problem.<br>
<i>mkdir -p /home/XXXX/YYYY</i><br>
<br>
Don't know if it has something to do with file-system, so I give you
some info in that area.<br>
<tt><span style="font-size:10.0pt"><b>/</b> (<i>/dev/md/dsk/d70 </i>
): 8192 block size 1024 frag size </span></tt><tt><br>
</tt><tt> </tt><tt><span style="font-size:10.0pt">41310292 total
blocks 24403016 free blocks 23989914 available 2486848
total files</span></tt><tt><br>
</tt><tt> </tt><tt><span style="font-size:10.0pt"> 2270183 free
files 22282310 filesys id </span></tt><tt> </tt><tt><br>
</tt><tt> </tt><tt><span style="font-size:10.0pt"> <b>ufs</b>
fstype 0x00000004 flag 255 filename length</span></tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> </tt><tt><span style="font-size:10.0pt"><b>/home </b>
(<i>nas2:/vx/oss1a-home</i>): 8192 block size
512 frag size </span></tt><tt><br>
</tt><tt> </tt><tt><span style="font-size:10.0pt">635023360 total
blocks 143270864 free blocks 142440496 available 3324224
total files</span></tt><tt><br>
</tt><tt> </tt><tt><span style="font-size:10.0pt"> 2238606 free
files 82837519 filesys id </span></tt><tt> </tt><tt><br>
</tt><tt> </tt><tt><span style="font-size:10.0pt"> <b>nfs</b>
fstype 00000000 flag 4294967295 filename length</span></tt><tt><br>
</tt><tt> </tt><br>
For the moment I can get everything going, by changing the path to
/tmp instead.<br>
But I report this since I'm not sure that we shall bail out on
_utils_mkdir_recursive() because of permission (maybe that's the
correct choice to make, simply don't know). <br>
<br>
hadégott<br>
/Martin<br>
<br>
</body>
</html>