Previous page: Daily Crap 2009-04-14
Next page: Daily Crap 2009-04-22


Daily Crap 2009-04-21

  1. Useful 9fans post today by Anthony Sorace:

    If you're looking to do ad hoc sharing, the easiest way is probably
    with listen1, exportfs, and import. I just tested this in two 9vx
    instances on the same machine (which already had my normal one
    running):
    
    9vx 1:
           :; 9fs wiki
           post...
           :; ls /mnt/wiki | wc
               235     235    6413
           :; aux/listen1 -tv 'tcp!*!12345' /bin/exportfs
    
    (the -v isn't really needed there)
    
    9vx 2:
           :; ls /mnt/wiki
           :; import -A tcp!localhost!12345 /mnt/wiki
           :; ls /mnt/wiki | wc
               235     235    6413
    
    aux/listen1 grabs a network port (tcp port 12345 on all interfaces, in
    this invocation) and when a new connection comes in, runs
    /bin/exportfs, which has a little protocol to negotiate what namespace
    to export and then exports it. on the other host, import dials the
    exportfs listener started above and mounts the /mnt/wiki exported
    there on its own namespace.

Comments

Click here to view the comments on this post.