Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/lib/librumphijack

Module Name:    src
Committed By:   pooka
Date:           Thu Feb 17 17:18:08 UTC 2011

Modified Files:
        src/lib/librumphijack: hijack.c

Log Message:
Support mount/unmount too.  So, things are now generally at a stage
where you can mount a file system with a userspace server *without*
it having to go through puffs.

Say, you first start a server with ffs capability and map a host
ffs image into it:

        rump_server -lrumpvfs -lrumpfs_ffs \
            -d key=/ffsimg,hostpath=ffs2.img,size=e unix:///tmp/ffsserv

Then, configure your shell to talk to the rump server:

        setenv RUMP_SERVER unix:///tmp/ffsserv
        setenv LD_PRELOAD /usr/lib/

Create a mountpoint and mount the file system:

        pain-rustique:60:~> sh
        $ cd /rump
        $ ls
        $ ls -l
        total 1
        drwxr-xr-x  2 root  wheel  512 Feb 17 18:00 dev
        $ mkdir mnt
        $ mount_ffs /ffsimg /rump/mnt
        mount_ffs: Warning: realpath /ffsimg: No such file or directory
        $ df -h mnt
        Filesystem        Size       Used      Avail %Cap Mounted on
        /ffsimg           496M       380M        91M  80% /mnt
        $ du -sckh *
        192K    dev
        380M    mnt
        381M    total
        $ umount -R mnt
        $ df -h mnt
        Filesystem        Size       Used      Avail %Cap Mounted on
        rumpfs            1.0K       1.0K         0B 100% /

(note, you need -R to umount due to various degrees of unsuccesful
magic it attempts to perform without it)

To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/lib/librumphijack/hijack.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index