1. 24 Sep, 2021 1 commit
    • James Hilliard's avatar
      IPC: add status streaming support · 37163fff
      James Hilliard authored
      
      
      This adds a NOTIFY_STREAM command to the ctrl interface, this
      is implemented with a history replay functionality so that
      clients can see notify messages from before they connect.
      
      This has the advantage of making it possible for multiple clients
      to monitor notify messages at the same time.
      Signed-off-by: default avatarJames Hilliard <james.hilliard1@gmail.com>
      37163fff
  2. 15 Sep, 2021 3 commits
  3. 09 Sep, 2021 4 commits
  4. 31 Aug, 2021 1 commit
  5. 29 Aug, 2021 2 commits
    • James Hilliard's avatar
      doc: Fix documentation for nolock/noinuse to match implementation. · fa4a27a2
      James Hilliard authored
      
      
      The documentation for these flags does not appear to match the
      implementation, by default these force flags should be "false"
      not "true" since they should only be used in cases where they
      are actually needed.
      
      Since we always attempt the lock when nolock is set we need
      to fix the docs to reflect that we are bypassing a lock attempt
      error and not the lock attempt itself.
      
      For noinuse we also do unconditionally check if the file
      system is in use for logging purposes, reword this so that we
      don't imply that the check is not done at all, only that the
      results of the check will be ignored if set.
      Signed-off-by: default avatarJames Hilliard <james.hilliard1@gmail.com>
      fa4a27a2
    • James Hilliard's avatar
      Create and destroy scripts/datadst temp folders on install. · c96ccf9f
      James Hilliard authored
      
      
      Under some circumstances these folders may get removed after
      startup, for example if /tmp has a mountpoint change after
      swupdate is started.
      
      In order to make swupdate better able to handle these sort of
      race conditions we can create/destroy these folders for each
      update installation.
      
      Fixes:
      [ERROR] : SWUPDATE failed [0] ERROR : I cannot open /tmp/scripts/format.lua 2
      [ERROR] : SWUPDATE failed [0] ERROR : extracting script to /tmp/scripts/ failed
      [ERROR] : SWUPDATE failed [1] Installation failed !
      Signed-off-by: default avatarJames Hilliard <james.hilliard1@gmail.com>
      c96ccf9f
  6. 27 Aug, 2021 4 commits
  7. 26 Aug, 2021 3 commits
  8. 15 Aug, 2021 1 commit
  9. 12 Aug, 2021 3 commits
    • Stefano Babic's avatar
      Kconfig: use DISKFORMAT as flag · eef1767f
      Stefano Babic authored
      
      
      The following warnings are generated if DISKFORMAT_HANDLER is set
      without setting DISKPART:
      
      scripts/kconfig/conf  --silentoldconfig Kconfig
      warning: (DISKFORMAT_HANDLER) selects DISKFORMAT which has unmet direct dependencies (DISKPART)
      warning: (DISKFORMAT_HANDLER) selects DISKFORMAT which has unmet direct dependencies (DISKPART)
      
      This is due to a dependency between the handlers, that is not necessary
      because it is possible to link just one of them. Replace
      CONFIG_DISKFORMAT with CONFIG_DISKPART_FORMAT in diskpüart handler, and
      use CONFIG_DISKFORMAT as a flag to enable/disable the activation of the
      filesystems creators.
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
      eef1767f
    • Stefano Babic's avatar
      diskpart: add a force mode to write table · b6b7d823
      Stefano Babic authored
      
      
      Writing table is conditioned to get the device in exclusively mode.
      There are cases where this is not possible, and blocking the device has
      broken these use cases. To get them back, add a flag "noblock" to the
      properties for the handler to ignore if locking the device fails.
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
      b6b7d823
    • Stefano Babic's avatar
      util: add strtobool() function · 0dc9ba75
      Stefano Babic authored
      
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
      0dc9ba75
  10. 06 Aug, 2021 7 commits
  11. 01 Aug, 2021 1 commit
    • Fabio Estevam's avatar
      util: Use a proper cast in the error message · c9e77539
      Fabio Estevam authored
      Commit 508b824a
      
       ("util: Use %llu for printing 'long long unsigned int'")
      fixed a build warning, but introduced another one as reported by
      Christian Storm:
      
      include/util.h:91:41: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 9 has type 'long unsigned int' [-Wformat=]
      
      The reason for this behaviour is because the members of the 'struct statvfs'
      are defined with different sizes (32 versus 64 bits) depending
      on __USE_FILE_OFFSET64.
      
      Cast it to (unsigned long long) which can work on both cases.
      Reported-by: default avatarChristian Storm <christian.storm@siemens.com>
      Signed-off-by: default avatarFabio Estevam <festevam@gmail.com>
      c9e77539
  12. 25 Jul, 2021 4 commits
  13. 22 Jul, 2021 3 commits
  14. 19 Jul, 2021 1 commit
  15. 13 Jul, 2021 2 commits