From: Blaisorblade <blaisorblade@yahoo.it>
To: stian@nixia.no
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] df -h and hostfs
Date: Wed, 12 Jan 2005 19:36:16 +0100 [thread overview]
Message-ID: <200501121936.16890.blaisorblade@yahoo.it> (raw)
In-Reply-To: <52224.80.203.0.208.1105554129.squirrel@80.203.0.208>
On Wednesday 12 January 2005 19:22, stian@nixia.no wrote:
> >> df -h inside UML: (/etc/mtab is symlinked to /proc/mounts)
> >>
> >> Filesystems Size Used Avail Use% Mounted on
> >> rootfs 496M 11M 460M 3% /
> >> /dev/root 496M 11M 460M 3% /
> >> /dev/ubd/disc1/part1 187G 146G 33G 82% /a
> >> a 7.3G 6.2G 717M 90% /a/lost+found
> >> /root/UML/a 7.3G 6.2G 717M 90% /a/lost+found
> >
> > What has happened here? Why there are two entries on the same mount
> > point? One
> > mount over the other?
Well, there is a big question - is there in the patchset a "hostfs" or
"externfs" patch? In that case, if you used the *new* hostfs code, everything
I said disappears, because that's completely different code.
Only in the other case, you can find below my answer.
> I just used
> mount /root/UML/a /a/lost+found -t hostfs
Hmm, like I supposed. This is the wrong command line. To mount the
host /root/UML/a, you need to use this syntax:
mount none /a/lost+found -t hostfs -o /root/UML/a
This is the correct syntax.
> why should you need an -o ? The mount-point works, and everything inside
> it looks like it should,
Well, do you claim that it contains only the content of /root/UML/a on the
host?
I think that this is false, and I just tested this on my UML (2.6.9-bs5):
root@zion:~ (0)# umount /mnt/host/
root@zion:~ (0)# mount /bin/ -t hostfs /mnt/host/
root@zion:~ (0)# ls /mnt/host/
bin/ dev/ etc/ lib/ opt@ root/ sys/ usr/
boot/ disk@ home/ mnt/ proc/ sbin/ tmp/ var/
root@zion:~ (0)# umount /mnt/host/
root@zion:~ (0)# mount none -t hostfs /mnt/host/ -o /bin
root@zion:~ (0)# ls /mnt/host/
Mail@ df* install* pidof@ tar*
root@zion:~ (0)# umount /mnt/host/
Satisfied? If that syntax works on your kernel, something *very* strange is
happening.
> and files I put into it appears as they should (I
> used that directory, since the uml-filesystem is just banged together som
> files from /bin so I could fix a disk, use /bin/sh as init for instance)
> An those entries as what likes in /proc/mounts, since I don't have a
> maintained /etc/mtab file in that filesystem. /etc/mtab is symlinked to
> /proc/mounts
Ok, understood, but the duplicate entry still seems a bit strange...
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2005-01-12 18:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-12 11:48 [uml-devel] df -h and hostfs stian
2005-01-12 17:33 ` Blaisorblade
2005-01-12 18:22 ` stian
2005-01-12 18:36 ` Blaisorblade [this message]
2005-01-13 9:23 ` stian
-- strict thread matches above, loose matches on Subject: below --
2005-01-11 10:11 stian
2005-01-12 0:10 ` Blaisorblade
2005-01-12 14:56 ` Henrik Nordstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200501121936.16890.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=stian@nixia.no \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox