1. 06 Nov, 2007 1 commit
  2. 23 Oct, 2007 1 commit
  3. 17 Oct, 2007 5 commits
    • Eric Van Hensbergen's avatar
      9p: fix bad kconfig cross-dependency · fb0466c3
      Eric Van Hensbergen authored
      
      This patch moves transport dynamic registration and matching to the net
      module to prevent a bad Kconfig dependency between the net and fs 9p modules.
      Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
      fb0466c3
    • Latchesar Ionkov's avatar
      9p: attach-per-user · ba17674f
      Latchesar Ionkov authored
      
      The 9P2000 protocol requires the authentication and permission checks to be
      done in the file server. For that reason every user that accesses the file
      server tree has to authenticate and attach to the server separately.
      Multiple users can share the same connection to the server.
      
      Currently v9fs does a single attach and executes all I/O operations as a
      single user. This makes using v9fs in multiuser environment unsafe as it
      depends on the client doing the permission checking.
      
      This patch improves the 9P2000 support by allowing every user to attach
      separately. The patch defines three modes of access (new mount option
      'access'):
      
      - attach-per-user (access=user) (default mode for 9P2000.u)
       If a user tries to access a file served by v9fs for the first time, v9fs
       sends an attach command to the server (Tattach) specifying the user. If
       the attach succeeds, the user can access the v9fs tree.
       As there is no uname->uid (string->integer) mapping yet, this mode works
       only with the 9P2000.u dialect.
      
      - allow only one user to access the tree (access=<uid>)
       Only the user with uid can access the v9fs tree. Other users that attempt
       to access it will get EPERM error.
      
      - do all operations as a single user (access=any) (default for 9P2000)
       V9fs does a single attach and all operations are done as a single user.
       If this mode is selected, the v9fs behavior is identical with the current
       one.
      Signed-off-by: default avatarLatchesar Ionkov <lucho@ionkov.net>
      Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
      ba17674f
    • Latchesar Ionkov's avatar
      9p: rename uid and gid parameters · bd32b82d
      Latchesar Ionkov authored
      
      Change the names of 'uid' and 'gid' parameters to the more appropriate
      'dfltuid' and 'dfltgid'.  This also sets the default uid/gid to -2
      (aka nfsnobody)
      Signed-off-by: default avatarLatchesar Ionkov <lucho@ionkov.net>
      Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
      bd32b82d
    • Latchesar Ionkov's avatar
      9p: define session flags · 2405669b
      Latchesar Ionkov authored
      
      Create more general flags field in the v9fs_session_info struct and move the
      'extended' flag as a bit in the flags.
      Signed-off-by: default avatarLatchesar Ionkov <lucho@ionkov.net>
      Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
      2405669b
    • Eric Van Hensbergen's avatar
      9p: Make transports dynamic · a80d923e
      Eric Van Hensbergen authored
      
      This patch abstracts out the interfaces to underlying transports so that
      new transports can be added as modules.  This should also allow kernel
      configuration of transports without ifdef-hell.
      Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
      a80d923e
  4. 16 Jul, 2007 1 commit
  5. 14 Jul, 2007 2 commits
  6. 18 Feb, 2007 1 commit
    • Eric Van Hensbergen's avatar
      9p: implement optional loose read cache · e03abc0c
      Eric Van Hensbergen authored
      
      While cacheing is generally frowned upon in the 9p world, it has its
      place -- particularly in situations where the remote file system is
      exclusive and/or read-only.  The vacfs views of venti content addressable
      store are a real-world instance of such a situation.  To facilitate higher
      performance for these workloads (and eventually use the fscache patches),
      we have enabled a "loose" cache mode which does not attempt to maintain
      any form of consistency on the page-cache or dcache.  This results in over
      two orders of magnitude performance improvement for cacheable block reads
      in the Bonnie benchmark.  The more aggressive use of the dcache also seems
      to improve metadata operational performance.
      Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
      e03abc0c
  7. 26 Jan, 2007 1 commit
  8. 04 Dec, 2006 1 commit
  9. 29 Sep, 2006 1 commit
  10. 30 Jun, 2006 1 commit
  11. 25 Mar, 2006 3 commits
  12. 02 Mar, 2006 1 commit
    • Eric Van Hensbergen's avatar
      [PATCH] v9fs: simplify fid mapping · 46f6dac2
      Eric Van Hensbergen authored
      
      v9fs has been plagued by an over-complicated approach trying to map Linux
      dentry semantics to Plan 9 fid semantics.  Our previous approach called for
      aggressive flushing of the dcache resulting in several problems (including
      wierd cwd behavior when running /bin/pwd).
      
      This patch dramatically simplifies our handling of this fid management.  Fids
      will not be clunked as promptly, but the new approach is more functionally
      correct.  We now clunk un-open fids only when their dentry ref_count reaches 0
      (and d_delete is called).
      
      Another simplification is we no longer seek to match fids to the process-id or
      uid of the action initiator.  The uid-matching will need to be revisited when
      we fix the security model.
      Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      46f6dac2
  13. 21 Feb, 2006 1 commit
  14. 09 Jan, 2006 3 commits
  15. 07 Nov, 2005 1 commit
  16. 23 Sep, 2005 1 commit
  17. 09 Sep, 2005 3 commits