** Also affects: zsys (Ubuntu Focal)
   Importance: Undecided
       Status: New

** Changed in: zsys (Ubuntu)
     Assignee: (unassigned) => Didier Roche (didrocks)

** Changed in: zsys (Ubuntu Focal)
     Assignee: (unassigned) => Didier Roche (didrocks)

** Changed in: zsys (Ubuntu)
   Importance: Undecided => Medium

** Changed in: zsys (Ubuntu Focal)
   Importance: Undecided => Medium

** Description changed:

- When building other machines or when listing after a revert system
- states, ensure we present the correct order (snapshots taken on this
- filesystem dataset should be before the filesystem dataset itself, as it
- was used afterwards).
+ [Impact]
+ * When building other machines or when listing after a revert system states, 
ensure we present the correct order (snapshots taken on this filesystem dataset 
should be before the filesystem dataset itself, as it was used afterwards).
+ * Minimize this by a new command, which only updates the LastUsed fields for 
used datasets on shutdown.
+ * Shutdown is triggered with ExecStop on the service which updates it on 
boot, which is more coherent.
+ * This is covered by new tests cases
+ 
+ [Test Case]
+ 1. Run zfs get com.ubuntu.zsys:last-used <current root system dataset> -> 
note the time
+ 2. Shut down the machine
+ 3. Boot on another machine or on a live session
+ 4. Mount rpool
+ 5. Run zfs get com.ubuntu.zsys:last-used <current root system dataset> -> 
check the timestamp is newer that the first one noted.
+ 
+ [Regression Potential]
+ * A new hidden command is added, triggered when shutting down the zsys-commit 
service.
+ * This is covered by new tests.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1881536

Title:
  Update LastUsed on shutdown

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zsys/+bug/1881536/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to