<div dir="ltr"><div><div><div>Hi everyone, I guess what I am looking for is already a ticket daira is working on (as listed here: <a href="https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1489">https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1489</a>) I think the ability to use the Python shell to inspect objects at a point would be great to help new people (like me) to get familiar with this code. For the interim, logging/file-output seems to work.<br>
<br></div>I have been able to make some very hacky additions to Tahoe-LAFS so far, including adding a working getxattr and listxattr method to pyfilesystem and dummy (nonworking) delxattr and setxattr method.<br><br></div>
I also went into web/filenode.py and added a dummy xattr dict (xattr['attr1']=1, xattr['attr2']=1) and verified that getxattr works correctly if every file has these two extended attributes. As far as an actual implementation, The way I'm thinking now, I should try to store a database of xattrs associated with URI:SSK on the client (possibly in ~/.tahoe/private/xattr-database.txt). I am not really sure if this should be stored on the storage nodes, but for now storing this additional information on the client seems a lot more straightforward (especially since I want to try to use it to guide convergent encryption policies)<br>
<br></div><div>Rohit<br></div><div><br><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 13, 2013 at 2:20 PM, Rohit Mehta <span dir="ltr"><<a href="mailto:pigdog@gmail.com" target="_blank">pigdog@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br></div>Hi everybody, I've been playing with the code in the Tahoe-LAFS client and pyfilesystem and have been having some difficulties debugging. I'm pretty much done with pyfilesystem and all my work is with the tahoe-lafs source files now. I am very new to python, so I apologize if my questions are newbish.<br>
<br></div>In filenode.py, I was able to get debugging information by using log.msg(...level=log.UNUSUAL)<br><br clear="all"><div><div>And in other files, in order to get additional information I've been doing hacky things like<br>
</div><div>os.system("echo .... >>/tmp/mylog.log")<br><br></div><div>Is there a better way to go about doing this? I can connect to manhole ssh server, but I'm not certain how to get information about the running tahoe python process. <br>
<br></div><div>Thanks in advance for any assistance,<br><br></div><div>Rohit<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>-- </div></font></span></div>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>--------------------------------------------------------------------------<br><br> ,'``.._ ,'``.<br> :,--._:)\,:,._,.: All Glory to<br>
:`--,'' :`...';\ the HYPNO TOAD!<br> `,' `---' `. <a href="http://youtu.be/zHU2RlSCdxU" target="_blank">http://youtu.be/zHU2RlSCdxU</a><br> / :<br>
/ \<br> ,' :\.___,-.<br> `...,---'``````-..._ |: \<br> ( ) ;: ) \ _,-.<br>
`. ( // `' \<br> : `.// ) ) , ;<br> ,-|`. _,'/ ) ) ,' ,'<br> ( :`.`-..____..=:.-': . _,' ,'<br>
`,'\ ``--....-)=' `._, \ ,') _ '``._<br> _.-/ _ `. (_) / )' ; / \ \`-.'<br> `--( `-:`. `' ___..' _,-' |/ `.)<br>
`-. `.`.``-----``--, .'<br> |/`.\`' ,','); SSt<br> ` (/ (/
</div>