From: Keichii M. <kei...@ya...> - 2003-04-21 08:41:51
|
Hi, After reading Jeff's slide http://user-mode-linux.sourceforge.net/slides/lca2001/img24.html I am interested in this project. I am not sure Jeff mean, so I guess he wants to do the following thing: For example, I have two machines both running on UML, uml_1 and uml_2. In uml_1, I can use "mount none -t host uml_2 /mnt/uml2" It will mount the uml_2 host's / on the uml_1 via network protocal. Is it Jeff's idea? if not, would anyone can tell me what he means and give me some examples about his idea? Thanks. Best regards, Keichii __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com |
From: Jeff D. <jd...@ka...> - 2003-04-22 01:40:28
|
kei...@ya... said: > Is it Jeff's idea? if not, would anyone can tell me what he means and > give me some examples about his idea? Sorry about not getting back to you earlier. The idea is to observe that hostfs_user.c provides a file interface to hostfs_kern.c. It so happens that hostfs_user provides access to host files, so it's pretty trivial to implement. However, hostfs_user could provide the same interface to a different sort of host data. My usual example is a sqlfs. You'd reimplement hostfs_user.c to talk to a SQL database on the host rather than the host filesystem. You'd decide how you want to map SQL databases and tables onto UML files and directories, and implement your new hostfs_user accordingly. Some operations, like mknod, would not make any sense and would return -EINVAL or something. Also, you might need an interface or two which isn't there. I don't see anywhere for you to attach to a database, for example, so something would have to be added. Jeff |
From: Keichii M. <kei...@ya...> - 2003-04-25 14:18:36
|
Jeff Dike wrote: > kei...@ya... said: > > Is it Jeff's idea? if not, would anyone can tell > me what he means and > > give me some examples about his idea? > > Sorry about not getting back to you earlier. > > The idea is to observe that hostfs_user.c provides a > file interface to > hostfs_kern.c. It so happens that hostfs_user > provides access to host files, > so it's pretty trivial to implement. > > However, hostfs_user could provide the same > interface to a different sort > of host data. My usual example is a sqlfs. You'd > reimplement hostfs_user.c > to talk to a SQL database on the host rather than > the host filesystem. > > You'd decide how you want to map SQL databases and > tables onto UML files and > directories, and implement your new hostfs_user > accordingly. Some operations, > like mknod, would not make any sense and would > return -EINVAL or something. > > Also, you might need an interface or two which isn't > there. I don't see > anywhere for you to attach to a database, for > example, so something would > have to be added. Hi Jeff, Thanks for taking the time to tell me your idea :-) Now I know what your idea is. According to your another hostfs extensions idea: http://user-mode-linux.sourceforge.net/slides/lca2001/img24.html It looks like,for instance, I have two Linux boxes, which are running UML. On UML1, using "mount none -t hostfs fs=<ftp|ssh|rsh> host=uml2 username=someone password=passwd /mnt" to mount into your file hierarchy a remote computer's file system. My question is if this idea is what this slide means, a remote computer means the "host" or the uml running on host? My english isn't well, hope you don't mind... > Jeff Thanks, Keichii __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com |
From: Jeff D. <jd...@ka...> - 2003-04-29 20:04:13
|
kei...@ya... said: > On UML1, using "mount none -t hostfs fs=<ftp|ssh|rsh> host=uml2 > username=someone password=passwd /mnt" to mount into your file > hierarchy a remote computer's file system. My question is if this idea > is what this slide means, a remote computer means the "host" or the > uml running on host? The remote computer is a different physical machine from the host. It's basically NFS over a remote shell connection. > My english isn't well, hope you don't mind... Don't worry about it. Your English is far better than my Japanese. Jeff |