Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-2940

Develop snapshot command

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Sprint:
      MEN Sprint 102
    • Story Points:
      13
    • Backlog:
      yes
    • Days in progress:
      15

      Description

      Develop a new command to the mender client that takes a snapshot of the root filesystem. In the first iteration the back-end will not be involved, so the command should safely dump the currently running rootfs. This command can only execute if all the state data is on a separate partition.

      To avoid filesystem corruption due to writes to the filesystem while the upload is in progress - use the FIFREEZE ioctl magic (defined in `linux/fs.h`) to make all writes to the partition block until the `FITHAW` operation is used when finished.

      Acceptance criterion:

      • Develop a command that creates a snapshot of the currently running rootfs and dumps it to stdout

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alfrunes Alf-Rune Siqveland
              Reporter:
              alfrunes Alf-Rune Siqveland
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: