git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: lunadbg GDB plugin to ease kernel debugging process.
[lunaix-os.git]
/
lunaix-os
/
kernel
/
fs
/
fsm.c
diff --git
a/lunaix-os/kernel/fs/fsm.c
b/lunaix-os/kernel/fs/fsm.c
index bce983a1c2b51d3c3743cf9edcdca9e2ef43780d..ca1221c095a0e063a6d3dd0c5dea16cbbe8a0232 100644
(file)
--- a/
lunaix-os/kernel/fs/fsm.c
+++ b/
lunaix-os/kernel/fs/fsm.c
@@
-23,7
+23,7
@@
fsm_init()
{
hashtable_init(fs_registry);
{
hashtable_init(fs_registry);
-
fsm_register_all(
);
+
ldga_invoke_fn0(fs
);
}
void
}
void
@@
-54,6
+54,9
@@
struct filesystem*
fsm_new_fs(char* name, size_t name_len)
{
struct filesystem* fs = vzalloc(sizeof(*fs));
fsm_new_fs(char* name, size_t name_len)
{
struct filesystem* fs = vzalloc(sizeof(*fs));
+ if (name_len == (size_t)-1) {
+ name_len = strlen(name);
+ }
fs->fs_name = HHSTR(name, name_len, 0);
return fs;
}
\ No newline at end of file
fs->fs_name = HHSTR(name, name_len, 0);
return fs;
}
\ No newline at end of file