1. 13 Oct, 2020 2 commits
  2. 12 Oct, 2020 1 commit
    • Tigran Mkrtchyan's avatar
      exports: fix FsExport#toString output · a456ce2c
      Tigran Mkrtchyan authored
      fix
      
      /data: 10.1.0.1(RW,root_squash,noacl,sec=SYSsecure,,dcap,pnfs,anonuid=1001,anongid=65534):idx=2eefc9
                                                       ^^^^^^
      to
      
      /data: 10.1.0.1(RW,root_squash,noacl,sec=SYS,secure,dcap,pnfs,anonuid=1001,anongid=65534):idx=2eefc9
      
      Acked-by: Lea Morschel
      Target: master
      a456ce2c
  3. 07 Oct, 2020 1 commit
  4. 09 Sep, 2020 1 commit
  5. 08 Sep, 2020 1 commit
    • Tigran Mkrtchyan's avatar
      exports: add support for secure/insecure export options · 311f34fe
      Tigran Mkrtchyan authored
      Motivation:
      In some environments we might want to enforce clients to come from a
      privileged port (< 1024), e.g. to be sure that request is send by kernel
      process.
      
      Modification:
      Add secure/insecure export options (like in linux and solaris servers).
      Update PseudoFs to to check for privileged client port, if required.
      
      Result:
      nfs clients can be restricted to privileged (root) users.
      
      Acked-by: Lea Morschel
      Acked-by: Paul Millar
      Target: master
      311f34fe
  6. 07 Sep, 2020 1 commit
    • Tigran Mkrtchyan's avatar
      nfs-client: make client is pseudo-unique · c6ffcd94
      Tigran Mkrtchyan authored
      Motivation:
      The nfs spec requires, that after restart client presents the same
      client id. Though this is not that important for the test client,
      however, makes testing more reliable.
      
      Modification:
      generate client is string to be
      
      java class name + user + host name.
      
      for example: org.dcache.nfs.v4.client.Main: tigran on nairi
      
      Result:
      server friendly test client.
      
      Acked-by: Paul Millar
      Acked-by: Lea Morschel
      Target: master
      c6ffcd94
  7. 26 Aug, 2020 1 commit
    • Tigran Mkrtchyan's avatar
      nfs-client: add sendCompoundInSession · e3be4fb6
      Tigran Mkrtchyan authored
      Motivation:
      Some NFSv4.1 operations must be bound to a session, some are not. Thus
      for some compound requests the first operations must be SEQUENCE, that
      specifies the session id, slot to use and sequence.
      
      Modification:
      introduce sendCompoundInSession method that takes care about session
      bookkeeping.
      
      Result:
      Automatic session processing when the corresponding sendCompound is
      used.
      
      Acked-by: Paul Millar
      Target: master
      e3be4fb6
  8. 25 Aug, 2020 1 commit
    • Tigran Mkrtchyan's avatar
      nfs4: pull-out client session slot handling into a dedicated class · e977e574
      Tigran Mkrtchyan authored
      Motivation:
      client session slot handling is not only used by call-back but as well
      by a regular client and proxy-io client inside dCache. Thus, this functionality
      should be shared to reduce code duplication.
      
      Modification:
      introduce ClientSession class that does the session slot management.
      
      Result:
      client side session slot management can be shared with other classes.
      
      Acked-by: Paul Millar
      Acked-by: Lea Morschel
      Target: master
      e977e574
  9. 24 Aug, 2020 1 commit
  10. 21 Aug, 2020 2 commits
  11. 22 Jul, 2020 1 commit
    • Tigran Mkrtchyan's avatar
      nfsv41: fix race condition during multiple callbacks · c131ddde
      Tigran Mkrtchyan authored
      Motivation:
      The NFSv4.1 server might decide to send multiple callback to a client.
      The parallelism is defined by number of callback slots specified by the
      client. As each slot maintain it's own sequence, a new request can be
      sent only when the slot is not in use.
      
      Modification:
      Introduce a ClientCB$SesionSlot class that represents session slot and
      associated sequence. Introduce a blocking queue, that represents
      available session slots. When slot is used, then it removed from the
      queue and putted back, after callback is complete.
      
      Result:
      Multiple callbacks can be issued to the client in parallel without
      misordering the requests.
      
      Acked-by: Paul Millar
      Target: master
      c131ddde
  12. 21 Jul, 2020 1 commit
    • Tigran Mkrtchyan's avatar
      nfs4: minor version used by callback must by in sync with client · 5f38d46b
      Tigran Mkrtchyan authored
      Motivation:
      When server performs callback to a client it must use the same nfsv4
      minor version as client uses.
      
      Modification:
      store client's minor version information with call-back object.
      
      Result:
      fixes compatibility with nfsv4.2 clients.
      
      Acked-by: Albert Rossi
      Acked-by: Lea Morschel
      Acked-by: Paul Millar
      Target: master, 0.21
      5f38d46b
  13. 17 Jul, 2020 2 commits
  14. 16 Jul, 2020 1 commit
  15. 14 Jul, 2020 1 commit
  16. 13 Jul, 2020 2 commits
  17. 10 Jul, 2020 5 commits
  18. 08 Jul, 2020 2 commits
  19. 07 Jul, 2020 4 commits
  20. 06 Jul, 2020 3 commits
    • Tigran Mkrtchyan's avatar
      docs: describe API changes · 53e8c140
      Tigran Mkrtchyan authored
      53e8c140
    • Tigran Mkrtchyan's avatar
      docs: describe recent API changes · c37d8df2
      Tigran Mkrtchyan authored
      c37d8df2
    • Tigran Mkrtchyan's avatar
      vfs: add IO read/write methods that accept ByteBuffer · 1de61da6
      Tigran Mkrtchyan authored
      Motivation:
      The use of ByteBuffer for IO operations adds more flexibility as ByteBuffers
      can be sliced, shared and passed directly to various channels. Moreover, any
      byte array can be easily wrapped into ByteBuffer, if needed.
      
      Modification:
      added vfs#read and vfs#write methods with default implementation falling
      back to byte array based methods to maintain backward compatibility. Updated
      OperationREAD and OperationWRITE to use the new methods. Deprecate byte
      array based methods.
      
      Result:
      more flexibility with same functionality.
      
      Acked-by: Paul Millar
      Target: master
      1de61da6
  21. 04 Jul, 2020 1 commit
  22. 29 Jun, 2020 1 commit
  23. 25 Jun, 2020 3 commits
    • Tigran Mkrtchyan's avatar
      nfs4: use ConcurrentHashMap for open file tracking · c798bc1a
      Tigran Mkrtchyan authored
      Motivation:
      in a highly concurrent environment the ConcurrentHashMap hash map has
      a better throughput than synchronized hashmap.
      
      Benchmark                                                (map)   Mode  Cnt       Score       Error  Units
      FileTrackerBenchmark.fileTrackerHashMapTest      HashMap  thrpt   25  691051.876 ± 23720.699  ops/s
      FileTrackerBenchmark.fileTrackerHashMapTest  ConcHashMap  thrpt   25  792051.898 ± 18111.740  ops/s
      
      Benchmark with 48 concurrent clients.
      
      Modification:
      Update FileTracker to use ConcurrentHashMap to track open files
      
      Result:
      better throughput in concurrent environment
      
      Acked-by: Lea Morschel
      Target: master
      c798bc1a
    • Tigran Mkrtchyan's avatar
      nfs4: stop using deprecated guava API in tests · d3b3cd75
      Tigran Mkrtchyan authored
      Acked-by: Lea Morschel
      Target: master
      d3b3cd75
    • Tigran Mkrtchyan's avatar
      file-tracker: fix typo in comments · 397b95b7
      Tigran Mkrtchyan authored
      no code changes.
      397b95b7
  24. 18 Jun, 2020 1 commit