提交 539767d6 编写于 作者: O openharmony_ci 提交者: Gitee

!71 文件系统支持sd卡热插拔

Merge pull request !71 from 野生毛霉君/master
......@@ -280,6 +280,7 @@ int mount(const char *source, const char *target,
}
mnt->vnodeBeCovered->flag |= VNODE_FLAG_MOUNT_ORIGIN;
mnt->vnodeCovered->flag |= VNODE_FLAG_MOUNT_NEW;
mnt->vnodeDev = device;
mnt->ops = mops;
if (target && (strlen(target) != 0))
{
......
......@@ -122,9 +122,7 @@ struct file_operations_vfs
int (*mmap)(struct file* filep, struct VmMapRegion *region);
/* The two structures need not be common after this point */
#ifndef CONFIG_DISABLE_POLL
int (*poll)(struct file *filep, poll_table *fds);
#endif
int (*stat)(struct file *filep, struct stat* st);
int (*fallocate)(struct file* filep, int mode, off_t offset, off_t len);
int (*fallocate64)(struct file *filep, int mode, off64_t offset, off64_t len);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册