problem with noatime flag
Bug #833980 reported by
Mario
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-btrfs-snapshot (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
I'm actually using apt-btrfs-snapshot 0.2 on Ubuntu Natty because I like the cron script to delete old snapshots. I've noted in the code that apt-btrfs-snapshot uses the atime of the file /etc/fstab to determine the age of the snapshot. Such method is not reliable using options like noatime in the root file-system. Such kind of options are strongly suggested for laptop disk HDD or SDD. It is also automatically used by packages like laptop-mode.
Using noatime on root, the weekly cron script remove all my snapshots.
Related branches
lp:apt-btrfs-snapshot
- 许煜恒: Pending requested
- Diff: 0 lines
Changed in apt-btrfs-snapshot (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
To post a comment you must log in.
Thanks for your bugreport.
I added some code into trunk now that will detect noatime and simply bail out for now. We need a more clever way of detecting the snapshots age in this case. The code must ensure that it detects when a snapshot was booted last, not when it was taken.