2007-01-11: EV dixit:
> [...] this weekend I'll definitely spend the needed time to
> update my libkarma setting and try to reproduce all the
> recently reported troubles.  I'll let you know if I find
> something.

Now starting the tests.

1. // get the latest libkarma version, changelog 130:
   hg clone http://www.freakysoft.de/repos/libkarma
2. // Make, and test riocp through Ethernet: EVERITHING SEEMS OK
3. // Bind USB, mount, check smaldb size, and make a copy
   cp /mnt/karma2/var/smalldb . ; ll smalldb
   -rw-r--r--  1 evidal users 98263 Jan 13 15:01 smalldb
4. // test riocp (Hg130):
   ./riocp
   Karma found: /dev/sda2 mounted on /mnt/karma2
   * Using ISO-8859-1 codeset.
   Using ISO-8859-1 codeset.
   lk_karma_authenticate: 0
   lk_karma_request_io_lock: ok
   Downloading Rio database... Done!
   Segmentation fault
5. // Check sizes again:
   ll /mnt/karma2/var/smalldb smalldb
   -rw-rw-rw-  1 root   root  30720 Jan 13 15:06 /mnt/karma2/var/smalldb
   -rw-r--r--  1 evidal users 98263 Jan 13 15:01 smalldb
6. // Recover the original smalldb
   cp smalldb /mnt/karma2/var/smalldb

*** First conclussion:  Current libkarma version not good for USB

Now trying it again with the vanilla libkarma-0.0.6

1. // Ethernet tests: EVERYTHING SEEMS O.K.:
2. // USB tests: EVERYTHING **SEEMS** O.K.

*** Second conclussion.  Recent patches have introduced serious
regression, just as I had guessed:

2007-01-11: EV dixit:
> From may past experience with libkarma development, 50% of the
> subbmited patches have typically resulted in some kind of
> regression, [...] I fear some of the recent patches have broken
> some thing; most notoriously, something related with the
> smalldb updating or writting code.

Now note the "**" in the step 2 above.  Further testing with
vanilla libkarma-0.0.6 USB reveal that the smalldb file
systematically shrinks by about 0.5-2KB at every invocation of
riocp (witout "-w").  This size reduction does not seem to
disturb further riocp invocations or upset the RK itself.  So
this bug went unnoticed in my tests before libkarma-0.0.6.  Now
I've gone further, repeating the riocp invocation 50 times.  At
some point, the riocp search stopped showing some of the tunes it
should, and the same happened with the RK itself.  But, the much
shrinked smalldb file was still consistent.

*** Third conclussion:  libkarma-0.0.6 USB had a bug in the
smalldb update code, which was, however, far less bad as the
recently introduced one(s).

Now I'll try to find which changeset first introduced the recent
bug(s).

Best,
EV.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-karma-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-karma-devel

Reply via email to