Re: Question about integrating a new library or tool

  • From: Antti Kantee <pooka@xxxxxx>
  • To: rumpkernel-users@xxxxxxxxxxxxx
  • Date: Tue, 02 Jun 2015 19:36:15 +0000

[generally speaking, if you want to start discussing another subject, please start another thread]

On 02/06/15 19:03, Liming Sun wrote:

I guess this question might have been discussed... is it possible to call
regular libc functions and rump APIs (such as rump_sys_XXXX) in the same C
file?

If you are running in host namespace, yes. If you are running in full rump kernel namespace, no. For examples of the former, see buildrump.sh/tests. For examples of the latter, see rumprun.

For example, is there an easy way to implement a 'cp' command to copy
between Linux host FS and the rump FS ?

That's a very multifaceted question. You can use e.g. rumpctrl/dd to move single files against live rump servers or the fsu_ecp command from fs-utils against cold images. fs-utils doesn't not currently work against live servers, but in theory it would not be a big task to adjust it to work that way. (fs-utils is also a good example of how to call both host syscalls and rump kernel syscalls in the same program)

Other related posts: