Re: (struct dentry *)->vfsmnt;

From: Alexander Viro (viro@math.psu.edu)
Date: Wed Mar 14 2001 - 00:11:06 EST


On Tue, 13 Mar 2001, Andreas Dilger wrote:

> You write:
> > > What about if I want to know the mountpoint (inside the filesystem)
> > > when it is mounted?
> >
> > Which mountpoint? There can be a lot of them (quite possibly - some
> > of them out of the chroot jail you are in, so "any" is unlikely to
> > do you any good).
>
> How about the first one? The one that calls the "read_super" method.
> AFAICT, only the first mount calls down to the FS anyways (the rest
> is VFS internal).

And what should that be after

mount -t ext2 /dev/sda1 /mnt
mount --bind /mnt /tmp/foo
umount /mnt

-
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/



This archive was generated by hypermail 2b29 : Thu Mar 15 2001 - 21:00:16 EST