HAMMER update - 12/31/2007

Previous thread: Re: ahc/ahd locking by Matthew Dillon on Monday, December 31, 2007 - 9:09 pm. (1 message)

Next thread: Re: Support for Broadcom 5906M fast ethernet chip by Petr Janda on Tuesday, January 1, 2008 - 8:51 am. (2 messages)
To: <kernel@...>
Date: Monday, December 31, 2007 - 9:19 pm

HAMMER is progressing well. The filesystem basically works, but there
are some major pieces missing such as, oh, the recovery code, and I
still have a ton of issues to work through... the poor fs blows up
when it runs out of space, for example, due to the horrible spike
implementation I have right now.

It isn't stable yet but some major milestones have been achieved. I am
able to cpdup, rm -rf, and perform historical queries on deleted data.

Here is a quick example:

# newfs_hammer -L TEST -S /var/vkernel/hammerimg.01 /var/vkernel/hammerimg.02
... start up vkernel ...
# mount_hammer /dev/vkd2 /dev/vkd3 /mnt
# cpdup / /mnt/copy
# sync
# hammer now
0x47799042
# rm -rf /mnt/copy
...
# cd /mnt/copy@@0x47799042
[access originally cpdup'd data, even though you deleted it all]

Please note that HAMMER is *NOT* yet ready for wider testing. Please
don't start reporting bugs yet, because there are still tons of things
for me to work through.

-Matt

To: <kernel@...>
Date: Sunday, January 6, 2008 - 12:29 pm

Probably it's still too early to report bugs, but...

Index: hammer_subs.c
===================================================================
RCS file: /home/source/dragonfly/cvs/src/sys/vfs/hammer/hammer_subs.c,v
retrieving revision 1.10
diff -u -r1.10 hammer_subs.c
--- hammer_subs.c 1 Jan 2008 01:00:03 -0000 1.10
+++ hammer_subs.c 6 Jan 2008 10:10:26 -0000
@@ -72,8 +72,10 @@
KKASSERT(lock->refs > 0);
crit_enter();
if (lock->locktd != td) {
- if (lock->locktd != NULL || lock->lockcount)
+ if (lock->locktd != NULL || lock->lockcount) {
+ crit_exit();
return(EAGAIN);
+ }
lock->locktd = td;
}
KKASSERT(lock->lockcount >= 0);

Cheers,
YONETANI Tomokazu

Previous thread: Re: ahc/ahd locking by Matthew Dillon on Monday, December 31, 2007 - 9:09 pm. (1 message)

Next thread: Re: Support for Broadcom 5906M fast ethernet chip by Petr Janda on Tuesday, January 1, 2008 - 8:51 am. (2 messages)