X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/8c6f505faaa66e18cdca108dca549d4ad806a077..8c06c883e7b13c115d5ff207f79d4b68fccd5ad6:/lunaix-os/kernel/fs/mount.c diff --git a/lunaix-os/kernel/fs/mount.c b/lunaix-os/kernel/fs/mount.c index 12e1d4b..97ef359 100644 --- 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; } - if (mnt_point->inode && !(mnt_point->inode->itype & VFS_IFDIR)) { + if (mnt_point->inode && (mnt_point->inode->itype & F_MFILE)) { return ENOTDIR; } @@ -170,7 +170,7 @@ vfs_mount_at(const char* fs_name, 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 { @@ -180,7 +180,7 @@ vfs_mount_at(const char* fs_name, 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,