<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="date"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="time"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Batang;
        panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:Gulim;
        panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:Gulim;
        panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:Batang;
        panose-1:2 3 6 0 0 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-autospace:none;
        word-break:break-hangul;
        font-size:10.0pt;
        font-family:Batang;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Gulim;
        color:windowtext;}
 /* Page Definitions */
 @page Section1
        {size:595.3pt 841.9pt;
        margin:99.25pt 3.0cm 3.0cm 3.0cm;
        layout-grid:18.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=KO link=blue vlink=purple>

<div class=Section1 style='layout-grid:18.0pt'>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>Hello,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>1. When I call glusterfs_getxattr, I
received 'Segmentation fault' error like the following:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>-------------------------------------------<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>Program received signal SIGSEGV,
Segmentation fault.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>[Switching to Thread -1209996640
(LWP 16114)]<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>0xb7ebc046 in free () from
/lib/tls/libc.so.6<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>(gdb) bt<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>#0&nbsp; 0xb7ebc046 in free () from
/lib/tls/libc.so.6<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>#1&nbsp; 0xb7f9c611 in
__glusterfs_glh_getxattr (handle=0xb7f854c0,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>&nbsp;&nbsp;&nbsp; path=0x808fc80
&quot;/r/rest_test_nodelete/hello_70301.txt&quot;,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>&nbsp;&nbsp;&nbsp; name=0x8090206
&quot;hello_70301.txt&quot;, value=0x804a008, size=1024, whichop=1)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>&nbsp;&nbsp;&nbsp; at
libglusterfsclient.c:2273<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>#2&nbsp; 0xb7f9c944 in
glusterfs_getxattr (<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>&nbsp;&nbsp;&nbsp; path=0x8048af8
&quot;/home/minjae/gluster_test/libglusterfs/mount/r/rest_test_nodelete/hello_70301.txt&quot;,
name=0x8048bbd &quot;user.test&quot;, value=0x804a008, size=1024)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>&nbsp;&nbsp;&nbsp; at
libglusterfsclient.c:2327<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>#3&nbsp; 0x0804886d in main () at
test.c:54<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>-------------------------------------------<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>The attribute name was
&quot;user.test&quot; in #3, but this was changed to
&quot;hello_70301.txt&quot; in #2.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>About some files, glusterfs_getxattr
is working well, but sometimes working strange including this.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>2. This is about
glusterfs_flistxattr, and here is my code :<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>-------------------------------------------<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>&nbsp;&nbsp;&nbsp; ssize_t bufsize =
1024;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>&nbsp;&nbsp;&nbsp; char *buffer =
NULL;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>&nbsp;&nbsp;&nbsp; buffer = calloc(
bufsize, sizeof(char) );<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>&nbsp;&nbsp;&nbsp; ret =
glusterfs_flistxattr( fd, buffer, bufsize );<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>-------------------------------------------<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>The 'ret' is 38 with Success, but
buffer is empty. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>Here is the log:<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left'><font size=2 face=&#44404;&#47548;><span
lang=EN-US style='font-size:10.0pt;font-family:Gulim'>[<st1:date o:ls="trans"
Year="2009" Month="8" Day="26" w:st="on">2009-08-26</st1:date> <st1:time
o:ls="trans" Hour="17" Minute="21" w:st="on">17:21:59</st1:time>] D
[dht-common.c:161:dht_lookup_dir_cbk] distribute: fixing assignment on /<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left'><font size=2 face=&#44404;&#47548;><span
lang=EN-US style='font-size:10.0pt;font-family:Gulim'>[<st1:date o:ls="trans"
Year="2009" Month="8" Day="26" w:st="on">2009-08-26</st1:date> <st1:time
o:ls="trans" Hour="17" Minute="21" w:st="on">17:21:59</st1:time>] D
[dht-selfheal.c:435:dht_selfheal_directory] distribute: 2 subvolumes down --
not fixing<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left'><font size=2 face=&#44404;&#47548;><span
lang=EN-US style='font-size:10.0pt;font-family:Gulim'>[<st1:date o:ls="trans"
Year="2009" Month="8" Day="26" w:st="on">2009-08-26</st1:date> <st1:time
o:ls="trans" Hour="17" Minute="21" w:st="on">17:21:59</st1:time>] D
[libglusterfsclient.c:1410:libgf_vmp_search_entry] libglusterfsclient: VMP
Entry found: /home/minjae/gluster_test/libglusterfs/mount/r/rest_test_nodelete/hello_70301.txt:
/home/minjae/gluster_test/libglusterfs/mount/<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left'><font size=2 face=&#44404;&#47548;><span
lang=EN-US style='font-size:10.0pt;font-family:Gulim'>[<st1:date o:ls="trans"
Year="2009" Month="8" Day="26" w:st="on">2009-08-26</st1:date> <st1:time
o:ls="trans" Hour="17" Minute="21" w:st="on">17:21:59</st1:time>] D
[libglusterfsclient-dentry.c:245:__do_path_resolve] libglusterfsclient-dentry:
resolved path(/r/rest_test_nodelete/hello_70301.txt) till 1(/). sending lookup
for remaining path<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left'><font size=2 face=&#44404;&#47548;><span
lang=EN-US style='font-size:10.0pt;font-family:Gulim'>[<st1:date o:ls="trans"
Year="2009" Month="8" Day="26" w:st="on">2009-08-26</st1:date> <st1:time
o:ls="trans" Hour="17" Minute="21" w:st="on">17:21:59</st1:time>] D
[dht-layout.c:101:dht_layout_search] distribute: no subvolume for hash (value)
= 250795985<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left'><font size=2 face=&#44404;&#47548;><span
lang=EN-US style='font-size:10.0pt;font-family:Gulim'>[<st1:date o:ls="trans"
Year="2009" Month="8" Day="26" w:st="on">2009-08-26</st1:date> <st1:time
o:ls="trans" Hour="17" Minute="21" w:st="on">17:21:59</st1:time>] D
[dht-helper.c:228:dht_subvol_get_hashed] distribute: could not find subvolume
for path=/r<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left'><font size=2 face=&#44404;&#47548;><span
lang=EN-US style='font-size:10.0pt;font-family:Gulim'>[<st1:date o:ls="trans"
Year="2009" Month="8" Day="26" w:st="on">2009-08-26</st1:date> <st1:time
o:ls="trans" Hour="17" Minute="21" w:st="on">17:21:59</st1:time>] D
[dht-common.c:820:dht_lookup] distribute: no subvolume in layout for path=/r,
checking on all the subvols to see if it is a directory<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>Could you check these, please?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>I'm using glusterfs 2.0.6<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>Thanks in advnace!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>--<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#44404;&#47548;><span lang=EN-US
style='font-size:10.0pt;font-family:Gulim'>Minjae Shin<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=&#48148;&#53461;><span lang=EN-US><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>