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: kprintf now goes into dedicated pseudo-dev rather than flooding the framebuffer
[lunaix-os.git]
/
lunaix-os
/
kernel
/
fs
/
mount.c
diff --git
a/lunaix-os/kernel/fs/mount.c
b/lunaix-os/kernel/fs/mount.c
index 12e1d4b94c273acc87df26203f8ea96c2b611711..97ef359f40351c22acb2f8937bc27f82cd3c37b0 100644
(file)
--- a/
lunaix-os/kernel/fs/mount.c
+++ b/
lunaix-os/kernel/fs/mount.c
@@
-137,7
+137,7
@@
vfs_mount_at(const char* fs_name,
return ENOTBLK;
}
return ENOTBLK;
}
- if (mnt_point->inode &&
!(mnt_point->inode->itype & VFS_IFDIR
)) {
+ if (mnt_point->inode &&
(mnt_point->inode->itype & F_MFILE
)) {
return ENOTDIR;
}
return ENOTDIR;
}
@@
-170,7
+170,7
@@
vfs_mount_at(const char* fs_name,
goto cleanup;
}
goto cleanup;
}
- kprintf("mount: dev=%s, fs=%s, mode=%d
\n
", dev_name, fs_name, options);
+ kprintf("mount: dev=%s, fs=%s, mode=%d", dev_name, fs_name, options);
mnt_point->mnt->flags = options;
} else {
mnt_point->mnt->flags = options;
} else {
@@
-180,7
+180,7
@@
vfs_mount_at(const char* fs_name,
return errno;
cleanup:
return errno;
cleanup:
- kprintf(KERROR "mount: dev=%s, fs=%s, mode=%d, err=%d
\n
",
+ kprintf(KERROR "mount: dev=%s, fs=%s, mode=%d, err=%d",
dev_name,
fs_name,
options,
dev_name,
fs_name,
options,