[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lost] Ramdisk - Children-Liste für das Rootobjekt anlegen



Ich hoffe ich habe den Patch mit der aktuellen Version von
ramdisk/init.c erstellt ;)
--- init.c	2008-08-31 22:01:48.000000000 +0200
+++ init.c	2008-08-31 21:54:08.000000000 +0200
@@ -35,6 +35,7 @@
 
 #include "ramdisk_cdi.h"
 #include <stdio.h>
+#include <cdi/lists.h>
 
 int ramdisk_fs_init(struct cdi_fs_filesystem* cdi_fs)
 {
@@ -45,6 +46,7 @@ int ramdisk_fs_init(struct cdi_fs_filesy
     root_res->res.name = strdup("/");
     root_res->res.res = &ramdisk_fs_res;
     root_res->res.dir = &ramdisk_fs_dir;
+    root_res->res.children = cdi_list_create();
     root_res->res.loaded = 1;
     root_res->buffer = 0;
     root_res->size = 0;