devman: initialize libvtreefs hooks
. uninitialized cleanup hook was causing devman crashes on reboot, calling uninitialized cleanup hook whenever it didn't happen to be 0
This commit is contained in:
parent
6b97790a38
commit
3c57102616
|
@ -77,11 +77,9 @@ int main (int argc, char* argv[])
|
||||||
struct inode_stat root_stat;
|
struct inode_stat root_stat;
|
||||||
|
|
||||||
/* fill in the hooks */
|
/* fill in the hooks */
|
||||||
hooks.init_hook = &init_hook;
|
memset(&hooks, 0, sizeof(hooks));
|
||||||
hooks.lookup_hook = NULL; /* use the default behavior of lookup */
|
hooks.init_hook = init_hook;
|
||||||
hooks.getdents_hook = NULL; /* use the default behavior of getdents */
|
hooks.read_hook = read_hook; /* read will never be called */
|
||||||
hooks.read_hook = read_hook; /* read hook will never be called */
|
|
||||||
hooks.rdlink_hook = NULL; /* there are no symbolic links in devfs */
|
|
||||||
hooks.message_hook = message_hook; /* handle the ds_update call */
|
hooks.message_hook = message_hook; /* handle the ds_update call */
|
||||||
|
|
||||||
root_stat.mode = S_IFDIR | S_IRUSR | S_IRGRP | S_IROTH;
|
root_stat.mode = S_IFDIR | S_IRUSR | S_IRGRP | S_IROTH;
|
||||||
|
|
Loading…
Reference in a new issue