1. May 10, 2018
    • Tommaso Tocci's avatar
      Avoid optimization for readdir/opendir · f16b7a2b
      Tommaso Tocci authored
      In the glibc both readdir and closedir functions marks the @dirp parameter
      with a non-null attribute.
      If we use a compiler optimization level grater then 1,
      the `dirp == nullptr` expression is evaluated to false
      at compilation time and the relative if blocks is cutted out
      of the final binary.
      
      In order to avoid this bheaviour, we implement a functions and then set
      that as weak alias of the real glibc function call.
      f16b7a2b
    • Tommaso Tocci's avatar
      Add OpenDir class · 97f26a22
      Tommaso Tocci authored
      In order to support directories functionalities
      opendir,readdir,closedir,etc.. the OpenDir class has been introduced.
      This is a new specialization of the OpenFile class so that OpenDir
      object can be stored in the open_file_map along with regular file.
      97f26a22
  2. May 09, 2018
  3. May 08, 2018
    • Tommaso Tocci's avatar
      Client send relative paths · 8a5d3de0
      Tommaso Tocci authored
      Paths are now made relative to the mountdir at client side.
      
      The new relativize_path fucntion in the PreloadContext is used to check
      if a path is relative to the pseudo-mount directory and to make it
      relative
      8a5d3de0
    • Tommaso Tocci's avatar
      Introduce preload context · 52269a81
      Tommaso Tocci authored
      The new PreloadContext class is used as singleton to store the general context
      information of the interception library.
      
      The plan is to move global accessed variables into this sigleton.
      
      At the moment just the logger object has been moved into it.
      52269a81
  4. Apr 02, 2018
    • Marc Vef's avatar
      Daemon now creates a pid file with pid and mountdir info for clients · fe7e5ee3
      Marc Vef authored
      Previously, clients would look for the daemon by name which was not robust.
      If the daemon was started with valgrind for example, clients would not find
      the daemon.
      
      Similar to other applications a daemon now creates a pid file with
      information about its pid and its started mountdir.
      
      Proper errorhandling on server and client side was added.
      
      Multiple daemons per node are explicitly not allowed for now!
      fe7e5ee3
  5. Mar 23, 2018
  6. Mar 22, 2018
    • Tommaso Tocci's avatar
      bugfix: blocks offset and count calculus · be9d15eb
      Tommaso Tocci authored
      The calculus (on clients) about the last chunk involved into a
      write/read operation was bugged.
      
      A new blocks_calc_util library has been introduced in order to make
      easier to perform this kind of calculus.
      be9d15eb
  7. Mar 12, 2018
  8. Mar 07, 2018
  9. Mar 06, 2018
  10. Mar 01, 2018
  11. Feb 27, 2018
  12. Feb 21, 2018
  13. Jan 25, 2018
  14. Jan 24, 2018
  15. Dec 04, 2017
  16. Nov 15, 2017
  17. Oct 13, 2017
  18. Sep 22, 2017
  19. Sep 20, 2017
  20. Sep 13, 2017
  21. Sep 12, 2017
  22. Sep 04, 2017
  23. Aug 31, 2017