lkml.org 
[lkml]   [2001]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: (struct dentry *)->vfsmnt;
Date
Al, you write:
> On Tue, 13 Mar 2001, Andreas Dilger wrote:
> > "/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?

On AIX, it is possible to import a volume group, and it automatically
builds /etc/fstab entries from information stored in the fs. Having the
"last mounted on" would have the mount point info, and of course LVM
would hold the device names.

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/

\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.054 / U:1.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site