1. Jun 03, 2019
  2. Mar 19, 2019
  3. Mar 16, 2019
    • Alberto Miranda's avatar
      Remove task descriptors when tasks complete · e14e29a6
      Alberto Miranda authored
      Calling norns(ctl)?_error() to query the status of a running task will
      release its descriptor in the server if the task already completed
      (NORNS_EFINISHED or NORNS_EFINISHEDWERROR). Since norns(ctl)?_wait()
      internally queries the task status to check whether a task has
      completed, we cache the retrieved task_status into the iotask_t user
      descriptor so that it can be retrieved by a subsequent
      norns(ctl)?_error() call.
      e14e29a6
    • Alberto Miranda's avatar
      Replace buggy libtar with libarchive · 7afab50a
      Alberto Miranda authored
      7afab50a
  4. Mar 07, 2019
  5. Mar 06, 2019
  6. Mar 04, 2019
  7. Mar 01, 2019
  8. Feb 27, 2019
  9. Feb 26, 2019
  10. Feb 23, 2019
  11. Feb 22, 2019
  12. Feb 19, 2019
  13. Feb 07, 2019
  14. Feb 06, 2019
  15. Feb 05, 2019
  16. Feb 04, 2019
  17. Oct 05, 2018
  18. Oct 04, 2018
  19. Sep 20, 2018
    • Alberto Miranda's avatar
      First implementation of shutdown command · 46db6047
      Alberto Miranda authored
      When invoked, the daemon checks whether active tasks remain to be
      processed and, if so, returns NORNS_ETASKSPENDING. If there are no
      active tasks, but there are tracked namespaces that are not empty, the
      daemon return NORNS_ENAMESPACENOTEMPTY. Otherwise, the daemon returns
      NORNS_SUCCESS and shuts itself down.
      46db6047
  20. Sep 19, 2018
  21. Sep 18, 2018
    • Alberto Miranda's avatar
      Add basic infrastructure for NORNSCTL_COMMAND_SHUTDOWN · 753b05f7
      Alberto Miranda authored
      The nornsctl_send_command function now supports a new nornsctl_command_t
      command called NORNSCTL_COMMAND_SHUTDOWN, which is accepted and
      acknowledged by the server.
      753b05f7
    • Alberto Miranda's avatar
      Add a 'tracked' field to namespaces · 7a589d40
      Alberto Miranda authored
      Clients can now provide a 'track' flag when defining a namespace to let
      urd know that it must keep track of the namespace contents. The flag is
      currently propagated by the messaging system and stored in the internal
      backend metadata. Tracking not implemented yet.
      7a589d40
  22. Sep 17, 2018
    • Alberto Miranda's avatar
      Add support for local file deletion · be496c5e
      Alberto Miranda authored
      The norns library and service now supports a new type of i/o task called
      NORNS_IOTASK_REMOVE that enqueues the deletion of a resource from
      a backend. As of right now, only the deletion of NORNS_LOCAL_PATHs is
      supported.
      be496c5e
  23. Aug 29, 2018
  24. Aug 22, 2018
    • Alberto Miranda's avatar
      Add an option for storing urd logs to a file · 326f4e30
      Alberto Miranda authored
      Added a new 'log_file' option to urd's configuration file that instructs
      it to save all log messages to the configured file. As of now, this
      option is only honored if 'use_syslog' is set to false.
      
      This commit closes #4.
      326f4e30
  25. Aug 17, 2018
    • Alberto Miranda's avatar
      Add nornsctl_status function · 7fe672fa
      Alberto Miranda authored
      The new nornctl_status function queries the urd daemon and returns
      summarized stats about all iotasks currently in the system. More
      specifically, the function returns a nornsctl_stat_t structure that
      contains the following information:
          st_running_tasks: Number of tasks currently running
          st_pending_tasks: Number of tasks currently pending
          st_eta: Estimated Time of Arrival of the currently running tasks
                  (in seconds). Note that, internally, the daemon estimates
                  how long a task will take by keeping track of the average
                  namespace-to-namespace bandwidth from previous requests.
                  This means that this field may contain NaN if no tasks
                  have yet completed, since the daemon will not be able to
                  estimate the E.T.A.
      7fe672fa
  26. Jul 11, 2018
  27. Jul 10, 2018
  28. Jun 12, 2018
    • Alberto Miranda's avatar
      Improve daemon and library configuration · ac75a49b
      Alberto Miranda authored
      - Changed the format of the global service configuration file to a
      YAML-like format
      - Urd daemon is now able to read its configuration from the
      newly-formatted configuration file.
      - Companion libraries linorns and libnornsctl are now capable of
      reading their configuration from the global service configuration file.
      - Libraries now encapsulate their state in a context structure shared
      by all threads rather than in globals.
      - Tests are only built now if the --enable-tests option is passed
      when invoking configure
      - Tests updated to patch the libraries on the fly in order to use
      case-by-case configuration files.
      - Tests now only cleanup their internal data if the test succeeds.
      ac75a49b
  29. May 22, 2018
  30. May 14, 2018