Commits on Jul 12, 2012
  1. Add auth support to 9nbd

    Also fix incorrect use of err() function in libdiod/diod_auth.c.
    garlick committed Jul 12, 2012
Commits on Jul 10, 2012
  1. [diodmount/9nbd] add support for NBD_SET_PATH

    If aname is set, then set a file name with NBD_SET_PATH by extracting
    path from host:path spec.  Otherwise, use path as the aname and skip
    setting the path (as in earlier versions).
    garlick committed Jul 10, 2012
  2. Return ENOENT to TAUTH if auth not required.

    Returning ecode=0 causes some problems for kernel generic
    p9 rpc code.
    garlick committed Jul 10, 2012
Commits on Jul 9, 2012
  1. Add support for 9nbd to diodmount

    Added diodmount --9nbd-attach and --9nbd-detach options.
    Right now they re undocumented as 9nbd.ko hasn't been made public yet.
    garlick committed Jul 9, 2012
Commits on May 29, 2012
  1. Allow non-directories to be exported (issue 113)

    Add test user/t16 which mounts a regular file and reads from it.
    garlick committed May 29, 2012
Commits on May 22, 2012
  1. autogen + prep for 1.0.13 tag

    garlick committed May 22, 2012
  2. Update auto.diod for new options

    The diodcat -h option was changed to -s.
    Restrict DIOD_SERVERS to only contain HOST, IP, or /path/to/socket,
    not HOST:PORT or IP:PORT.
    Add DIOD_MOUNTOPTS to allow arbitrary mount options to be set
    (including port=N).  Options apply to all diod file systems.
    garlick committed May 22, 2012
  3. Allow utils to take standard -s server arg

    The server name may be in IP[:PORT], HOST[:PORT], or /path/to/socket
    garlick committed May 22, 2012
  4. Avoid excessive network requests in npc_gets

    Previous implementation of npc_gets was throwning away and re-reading
    any characters after a \n.  Fix this so excess data is buffered in
    the fid (as with readdir).
    There was really no need for npc_closedir ().  Drop it and move buffer
    cleanup to npc_clunk ().
    This speeds up diodshowmount on test system with 1032 entries
    in /proc/connections from 0.146s to 0.026s (real).
    garlick committed May 22, 2012
Commits on May 21, 2012
Commits on May 19, 2012
Commits on May 18, 2012
  1. Add diodls utility

    garlick committed May 18, 2012
Commits on May 16, 2012
  1. Factor long ioctx open/close functions (issue 108)

    The allocation/open and deallocation/close are now in seperate functions
    from the locking and list insertion/removal.  Error paths for the former
    are taken without involving the latter, which helps clarity.
    This is not expected to fix anything except readability.
    garlick committed May 16, 2012
Commits on May 15, 2012
  1. Fix a typo in diodmount(8)

    garlick committed May 15, 2012
  2. prep for 1.0.12 tag

    garlick committed May 15, 2012
  3. misc/t15: don't depend on usleep

    garlick committed May 15, 2012
Commits on May 14, 2012
  1. autogen + prep for 1.0.11

    garlick committed May 14, 2012
  2. Don't allow O_DIRECT (issue 110)

    9p does not preserve O_DIRECT alignment when it breaks up requests
    into msize-chunks.
    Fix up tests:
    kern/t35: interrupt a dd, not a 'scrub', which uses O_DIRECT
    kern/t40: scrub a file demonstrating fallback to non-O_DIRECT works
    garlick committed May 14, 2012
  3. Drop unused maxmmap feature.

    Since no performance benefit has been demonstrated, remove mmap feature
    from ioctx to make code a bit simpler.
    garlick committed May 14, 2012
  4. Fix possible race on dumpable flag (issue 105)

    To ensure diod can always dump core, we added code to user.c to set
    the dumpable flag after altering capabilities, fsuid, fsgid, or groups.
    However, we only do this if the dumpable flag tested true before the
    change.  This may be racy if another thread is executing the same code
    and has cleared the dumpable flag before the test.
    garlick committed May 14, 2012
Commits on May 3, 2012
  1. Add tests/misc/t15 to valgrind full server

    This uses the unix domain socket feature recently added to exercise
    the server with multiple simultaneous connections.
    garlick committed May 3, 2012
Commits on May 2, 2012
  1. Allow connections on UNIX domain sockets

    Server now allows a listen address to be a path, e.g.
      diod -l /path/to/socket
    Mount helper will accept
      mount.diod /path/to/socket:aname dir
    Instead of passing this directly into the mount system call
    with trans=unix, we use trans=fd so the auth handshake can happen
    in user space, as with inet sockets.
    Dtop will accept a path as one of its hostlist elements, e.g.
      dtop -h /path/to/socket,host,...
    Diodcat, diodload now take -s server instead of -h host -p port, e.g.
      diodcat -s /path/to/socket
      diodcat -s HOST:PORT
    The purpose of this is to allow tests that will create simultaneous
    connections (simulating many clients) without having to occupy
    an IP port that might be in conflict on a test system/build farm node.
    Tests will be added in a future commit.
    garlick committed May 2, 2012
Commits on Mar 30, 2012
  1. prep for 1.0.10 tag

    garlick committed Mar 30, 2012
Commits on Mar 18, 2012
  1. Autogen after adding tests

    garlick committed Mar 18, 2012