2003-06-13 05:29:27

by H. J. Lu

[permalink] [raw]
Subject: PATCH: 2.5.70: Export set_fs_root and set_fs_pwd

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.


Attachments:
(No filename) (826.00 B)
fs.patch (266.00 B)
Download all attachments

2003-06-13 06:32:22

by Christoph Hellwig

[permalink] [raw]
Subject: Re: PATCH: 2.5.70: Export set_fs_root and set_fs_pwd

On Thu, Jun 12, 2003 at 10:42:28PM -0700, H. J. Lu wrote:
> 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.

2003-06-13 06:39:54

by H. J. Lu

[permalink] [raw]
Subject: Re: PATCH: 2.5.70: Export set_fs_root and set_fs_pwd

On Fri, Jun 13, 2003 at 07:46:07AM +0100, Christoph Hellwig wrote:
> On Thu, Jun 12, 2003 at 10:42:28PM -0700, H. J. Lu wrote:
> > 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.