linux-um archives
 help / color / mirror / Atom feed
From: "Steve Schmidtke" <steve_schmidtke@hotmail.com>
To: adam@doogie.org
Cc: User-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] filemap feature 2.4.22-5um
Date: Sat, 18 Oct 2003 01:31:36 +0000	[thread overview]
Message-ID: <BAY7-F71MKk9LqOVoQc000091eb@hotmail.com> (raw)

Adam Heath wrote:
>On Tue, 14 Oct 2003, Steve Schmidtke wrote:
> >   filemap=file,10,/proc/cpuinfo 10</proc/cpuinfo \
>
>I have some unfinished code to make uml read a config file.  It fits in 
>nicely
>with the cmdline parsing.

It may help with half the problem here.  There are two parts, the
"filemap=10/proc/cpuinfo" config string to be parsed within the UML, and the 
"10</proc/cpuinfo" redirection in the parent shell.  The uglyness I see is 
the duplication that must be syncronized between the two.

It would be nice if a chroot wrapper could open the files and pass the 
"filemap=" config strings to your config parser.  Something like this:

  umlwrap -map=/proc/cpuinfo -bind=/tmp/uml.ctl \
  -config=tmp.file -- ./linux 32M config=tmp.file ...

The hypothetical umlwrap program opens /proc/cpuinfo (on fd 5, say -- you 
would no longer have to define it) and /tmp/uml.ctl (on fd 6).  The umlwrap 
program then builds the config strings "filemap=file,5,/proc/cpuinfo" and 
"filemap=file,6,/tmp/uml.ctl" and writes them out to tmp.file for the UML to 
pick up.  No more messing around with arbitrary file descriptors on the 
command line.

Though a bonus would be if your config file parser could handle input from a 
given fd as well. :)

Steve Schmidtke

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail



-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

             reply	other threads:[~2003-10-18  1:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-18  1:31 Steve Schmidtke [this message]
2003-10-18 12:37 ` [uml-devel] filemap feature 2.4.22-5um Henrik Nordstrom
2003-10-18 21:57   ` Goetz Bock
2003-10-18 22:29     ` Henrik Nordstrom
2003-10-18 14:27 ` Adam Heath
  -- strict thread matches above, loose matches on Subject: below --
2003-10-18 17:15 Steve Schmidtke
2003-10-18 16:34 BlaisorBlade
2003-10-14 22:58 Steve Schmidtke
2003-10-15  8:43 ` azu
2003-10-15 20:13 ` Jeff Dike
2003-10-14 14:08 Steve Schmidtke
2003-10-14  3:54 Steve Schmidtke
2003-10-13  5:15 ` Jeff Dike
2003-10-14  6:19 ` Doug Dumitru
2003-10-17 17:14 ` Adam Heath

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=BAY7-F71MKk9LqOVoQc000091eb@hotmail.com \
    --to=steve_schmidtke@hotmail.com \
    --cc=User-mode-linux-devel@lists.sourceforge.net \
    --cc=adam@doogie.org \
    /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