Friday, June 8, 2007

fixed a small bug and found another

In the CVS version from fs.net there is a small bug in the version 1.14 of the library in the str2file function call. Essentially, the parameter to the mydirname function call was incorrect. Here is the diff file from it:
Index: str2file.C
===================================================================
RCS file: /cvs/sfs1/async/str2file.C,v
retrieving revision 1.14
diff -b -u -r1.14 str2file.C
--- str2file.C 16 Dec 2006 03:44:33 -0000 1.14
+++ str2file.C 8 Jun 2007 18:49:16 -0000
@@ -105,7 +105,7 @@
if (fd <>
return false;

- str dir = mydirname (s);
+ str dir = mydirname (file);
int dirfd = open (dir, O_RDONLY, 0);
if (dirfd <>
warn ("%s: %m\n", dir.cstr ());


I submitted the patch to the mailing list and hopefully that will be patched soon.
The other bug is in the sfsauthd daemon. When trying to register a key it quits with an EOF error. I have not been able to track down where exactly the error occurs, but hopefully it's another typo.

In the future I will be working with sensor networks rather than file systems but hopefully I will come back to sfs in the fall.

No comments: