Re: (struct dentry *)->vfsmnt;

Alexander Viro (viro@math.psu.edu)
Wed, 14 Mar 2001 00:49:48 -0500 (EST)


On Tue, 13 Mar 2001, Andreas Dilger wrote:

> Yes, I know you _can_ do all sorts of tricks like this, but most people
> don't really do it. In any case, I would be happy if I could even get

Ugh. That sounds like a work for mount(8), not mount(2), then. BTW, userland
(mount(8)) looks like the only potential user for that.

> "/mnt" from the first mount. If it comes to the point where I can get
> that, then I will start to worry about "mount --bind".
>
> This is to store in the ext2 on-disk superblock, which is currently always
> (from dumpe2fs -h /dev/hdX):
>
> Last mounted on: <not available>
>
> To be able to put _something_ there will suit my needs.

OK... I don't like the idea of passing a vfsmount to read_super (for obvious
reasons - ->mnt_count, for one thing), but there may be other ways to do that.
What kind of use (aside of getting rid of <not available> in dumpe2fs
output) do you have in mind?
Cheers,
Al

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/