Skip to contentSkip to conversation

PATCH: 2.5.70: Export set_fs_root and set_fs_pwd

PATCH H. J. Lu 2 participants 3 messages Jun 13, 2003 VFS

lore
Share & tools
lore

H. J. Lu

author
#0 lore raw

In 2.5.70, intermezzo fs can be configured as module. But intermezzo references set_fs_root and set_fs_pwd:

# find -name *.[ch] | xargs grep set_fs_root
./include/linux/fs_struct.h:extern void set_fs_root(struct fs_struct *, struct
vfsmount *, struct dentry *);
./fs/intermezzo/intermezzo_fs.h:                set_fs_root(current->fs,
new->rootmnt, new->root);
./fs/intermezzo/intermezzo_fs.h:                set_fs_root(current->fs,
saved->rootmnt, saved->root);
./fs/open.c:    set_fs_root(current->fs, nd.mnt, nd.dentry);
./fs/namespace.c:void set_fs_root(struct fs_struct *fs, struct vfsmount *mnt,
./fs/namespace.c:                               set_fs_root(fs, new_nd->mnt,
new_nd->dentry);
./fs/namespace.c:       set_fs_root(current->fs, namespace->root,
namespace->root->mnt_root);

They should be exported.

H.J.

fs/namespace.c renamed from fs/namespace.c.fs +3 -0
@@ -1138,3 +1138,6 @@ void __init mnt_init(unsigned long mempa
 	init_rootfs();
 	init_mount_tree();
 }
+
+EXPORT_SYMBOL(set_fs_root);
+EXPORT_SYMBOL(set_fs_pwd);
#1 lore raw
Quoted 2 lines · H. J. Lu

In 2.5.70, intermezzo fs can be configured as module. But intermezzo references set_fs_root and set_fs_pwd:

I'd rather see a very good reason why intermezzo needs this first.

author
#2 lore raw
Quoted 5 lines · Christoph Hellwig
Quoted 2 lines · H. J. Lu

In 2.5.70, intermezzo fs can be configured as module. But intermezzo references set_fs_root and set_fs_pwd:

I'd rather see a very good reason why intermezzo needs this first.

I have no idea. I just happened to configure intermezzo as a module and it failed.

H.J.