mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 16:26:31 +00:00
对mkdir以及do_open进行加锁 (#55)
* 对mkdir加锁 * 给mkdir和do_open的dentry加锁 * 对加锁进行了修改 * modified * bugfix: 修复一些死锁及空指针的错误 Co-authored-by: longjin <longjin@RinGoTek.cn>
This commit is contained in:
@ -502,13 +502,13 @@ struct vfs_dir_entry_operations_t fat32_dEntry_ops =
|
||||
// todo: open
|
||||
long fat32_open(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr)
|
||||
{
|
||||
return VFS_SUCCESS;
|
||||
return 0;
|
||||
}
|
||||
|
||||
// todo: close
|
||||
long fat32_close(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr)
|
||||
{
|
||||
return VFS_SUCCESS;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user