> > I think it's something of a WTF that it rewrites the database even when 
> > you just do a query.
> 
> See attached rebuild_smalldb_only_when_needed.patch that fixes this,
> although it doesn't solve the underlying problem...

This patch misses the case where you just copy the files on the command
line [ if(optind < argc){ ... ].  It'd be even better to make the io_lock
paths symmetrical.  I'll try to spin a patch for this tonight.

> See attached omfsck.out.  Don't know how useful this is given the below:

It says your block bitmap thinks that there are certain blocks in use, but
when omfsck tries to visit all of the files, it can't reach these blocks.
It's an inconsistency but shouldn't be a problem other than not having that
extra space.  If you have your music files backed up I'd recommend letting
omfsck fix it.  Still won't fix the problem though.

> > 3. Can you send the corrupt smalldb to the list? (/media/karma/var/smalldb)
> 
> Um, it's 0 bytes.  See the typescript karma_debug.log attached.

Ah.  Well, that sucks :)  Use Troubleshooting->Rescan Music on the Karma to 
rebuild it.

> > 4. Also try, perhaps (your line numbers may be different):

> This gave "write error: File exists". See attached karma_debug.log
> typescript.  Don't know why this is an error...

Nor I.  Do you have write permission on /media/karma?  EEXISTS may just
be garbage from fopen() trying an O_CREAT | O_EXCL on the open followed.  
Might be worth using strace to see what the heck glibc is doing with
smalldb.

> So it seems like riocp is truncating the smalldb and then erroring out.
> Don't know why that would happen, and it frankly scares me quite a bit.
> Any guesses as to why this is happening?

Nope.. the only error path I see which doesn't also spit out an error are
two allocs, one in smalldb_init.  Strange.  Just to be sure, you are using
the libkarma-0.0.6.tar.gz release?

> Well, hopefully tomorrow will be more fruitful...
> 
> --Joe
> 
> PS - I'm usually on IRC if you'd like to help debug in real-time.

Okay, what channel/server/nick?  I irc a lot less than I once did but I can
try to jump on tonight.

-- 
Bob Copeland %% www.bobcopeland.com


-------------------------------------------------------------------------
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