Re: (struct dentry *)->vfsmnt;

From: Andreas Dilger (adilger@turbolinux.com)
Date: Wed Mar 14 2001 - 00:19:13 EST


Al writes:
> > 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

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

Cheers, Andreas

-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert
-
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