Add more code to devfs. But looks like avltree was buggy.