[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT VFS PATCH v2 4/4] Expose dentry creation/deletion and vnode creation
Move dentry function declaration inside dentry.h header to be consistent with node.h and, since they refer dentry operations, that's where they should live anyways. Add the dentry creation and deletion functions and the vnode creation function to exportsyms. Signed-off-by: Mihai Pogonaru <pogonarumihai@xxxxxxxxx> --- lib/vfscore/exportsyms.uk | 3 +++ lib/vfscore/include/vfscore/dentry.h | 7 +++++++ lib/vfscore/vfs.h | 6 ------ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/vfscore/exportsyms.uk b/lib/vfscore/exportsyms.uk index da7fbaea..822e6ecc 100644 --- a/lib/vfscore/exportsyms.uk +++ b/lib/vfscore/exportsyms.uk @@ -75,3 +75,6 @@ readlink fallocate lseek uk_syscall_writev +dentry_alloc +drele +vrele diff --git a/lib/vfscore/include/vfscore/dentry.h b/lib/vfscore/include/vfscore/dentry.h index 85f37ab7..0a384028 100644 --- a/lib/vfscore/include/vfscore/dentry.h +++ b/lib/vfscore/include/vfscore/dentry.h @@ -54,4 +54,11 @@ struct dentry { struct uk_list_head d_child_link; }; +struct dentry *dentry_alloc(struct dentry *parent_dp, struct vnode *vp, const char *path); +struct dentry *dentry_lookup(struct mount *mp, char *path); +void dentry_move(struct dentry *dp, struct dentry *parent_dp, char *path); +void dentry_remove(struct dentry *dp); +void dref(struct dentry *dp); +void drele(struct dentry *dp); + #endif /* _OSV_DENTRY_H */ diff --git a/lib/vfscore/vfs.h b/lib/vfscore/vfs.h index fd60dec7..fb57435f 100644 --- a/lib/vfscore/vfs.h +++ b/lib/vfscore/vfs.h @@ -134,12 +134,6 @@ int vfs_dname_copy(char *dest, const char *src, size_t size); int fs_noop(void); -struct dentry *dentry_alloc(struct dentry *parent_dp, struct vnode *vp, const char *path); -struct dentry *dentry_lookup(struct mount *mp, char *path); -void dentry_move(struct dentry *dp, struct dentry *parent_dp, char *path); -void dentry_remove(struct dentry *dp); -void dref(struct dentry *dp); -void drele(struct dentry *dp); void dentry_init(void); int vfs_close(struct vfscore_file *fp); -- 2.11.0 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |