-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsnapm.spec
More file actions
1126 lines (1091 loc) · 58.6 KB
/
snapm.spec
File metadata and controls
1126 lines (1091 loc) · 58.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%global summary A set of tools for managing snapshots
Name: snapm
Version: 0.7.0
Release: 1%{?dist}
Summary: %{summary}
License: Apache-2.0
URL: https://github.com/snapshotmanager/%{name}
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: boom-boot
BuildRequires: lvm2
BuildRequires: make
BuildRequires: stratis-cli
BuildRequires: stratisd
BuildRequires: systemd-rpm-macros
BuildRequires: pyproject-rpm-macros
BuildRequires: python3-boom
BuildRequires: python3-dateutil
BuildRequires: python3-dbus-client-gen
BuildRequires: python3-dbus-python-client-gen
BuildRequires: python3-devel
BuildRequires: python3-justbytes
BuildRequires: python3-packaging
BuildRequires: python3-pip
BuildRequires: python3-psutil
BuildRequires: python3-pytest
BuildRequires: python3-setuptools
BuildRequires: python3-sphinx
BuildRequires: python3-wcwidth
BuildRequires: python3-wheel
BuildRequires: python3-file-magic
%if 0%{?rhel} >= 10
BuildRequires: python3-zstandard
%endif
%if 0%{?fedora}
BuildRequires: libfaketime
%endif
Requires: python3-snapm = %{version}-%{release}
Recommends: boom-boot
%package -n python3-snapm
Summary: %{summary}
%package -n python3-snapm-doc
Summary: %{summary}
%description
Snapshot manager (snapm) is a tool for managing sets of snapshots on Linux
systems. The snapm tool allows snapshots of multiple volumes to be captured at
the same time, representing the system state at the time the set was created.
%description -n python3-snapm
Snapshot manager (snapm) is a tool for managing sets of snapshots on Linux
systems. The snapm tool allows snapshots of multiple volumes to be captured at
the same time, representing the system state at the time the set was created.
This package provides the python3 snapm module.
%description -n python3-snapm-doc
Snapshot manager (snapm) is a tool for managing sets of snapshots on Linux
systems. The snapm tool allows snapshots of multiple volumes to be captured at
the same time, representing the system state at the time the set was created.
This package provides the python3 snapm module documentation in HTML format.
%prep
%autosetup -p1 -n %{name}-%{version}
%build
%pyproject_wheel
%{make_build} -C doc html
rm doc/_build/html/.buildinfo
mv doc/_build/html doc/html
rm -rf doc/html/_sources doc/_build
rm -f doc/*.rst doc/Makefile doc/conf.py
%install
%pyproject_install
mkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/%{name}/plugins.d
mkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/%{name}/schedule.d
%{__install} -p -m 644 etc/%{name}/snapm.conf ${RPM_BUILD_ROOT}/%{_sysconfdir}/%{name}
%{__install} -p -m 644 etc/%{name}/plugins.d/lvm2-cow.conf ${RPM_BUILD_ROOT}/%{_sysconfdir}/%{name}/plugins.d
%{__install} -p -m 644 etc/%{name}/plugins.d/lvm2-thin.conf ${RPM_BUILD_ROOT}/%{_sysconfdir}/%{name}/plugins.d
%{__install} -p -m 644 etc/%{name}/plugins.d/stratis.conf ${RPM_BUILD_ROOT}/%{_sysconfdir}/%{name}/plugins.d
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man8
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man5
%{__install} -p -m 644 man/man8/snapm.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8
%{__install} -p -m 644 man/man5/snapm.conf.5 ${RPM_BUILD_ROOT}/%{_mandir}/man5
%{__install} -p -m 644 man/man5/snapm-plugins.d.5 ${RPM_BUILD_ROOT}/%{_mandir}/man5
%{__install} -p -m 644 man/man5/snapm-schedule.d.5 ${RPM_BUILD_ROOT}/%{_mandir}/man5
mkdir -p ${RPM_BUILD_ROOT}/%{_unitdir}
%{__install} -p -m 644 systemd/snapm-create@.service ${RPM_BUILD_ROOT}/%{_unitdir}
%{__install} -p -m 644 systemd/snapm-create@.timer ${RPM_BUILD_ROOT}/%{_unitdir}
%{__install} -p -m 644 systemd/snapm-gc@.service ${RPM_BUILD_ROOT}/%{_unitdir}
%{__install} -p -m 644 systemd/snapm-gc@.timer ${RPM_BUILD_ROOT}/%{_unitdir}
mkdir -p ${RPM_BUILD_ROOT}/%{_tmpfilesdir}
%{__install} -p -m 644 systemd/tmpfiles.d/%{name}.conf ${RPM_BUILD_ROOT}/%{_tmpfilesdir}/
%{__install} -d -m 0700 ${RPM_BUILD_ROOT}/%{_rundir}/%{name}
%{__install} -d -m 0700 ${RPM_BUILD_ROOT}/%{_rundir}/%{name}/mounts
%{__install} -d -m 0700 ${RPM_BUILD_ROOT}/%{_rundir}/%{name}/lock
%check
%pytest --log-level=debug -v tests/
%files
# Main license for snapm (Apache-2.0)
%license LICENSE
%doc README.md
%{_bindir}/snapm
%doc %{_mandir}/man*/snapm*
%attr(644, -, -) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/snapm.conf
%attr(644, -, -) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins.d/*
%dir %attr(755, -, -) %{_sysconfdir}/%{name}/schedule.d
%attr(644, -, -) %{_unitdir}/snapm-create@.service
%attr(644, -, -) %{_unitdir}/snapm-create@.timer
%attr(644, -, -) %{_unitdir}/snapm-gc@.service
%attr(644, -, -) %{_unitdir}/snapm-gc@.timer
%attr(644, -, -) %{_tmpfilesdir}/%{name}.conf
%dir %{_rundir}/%{name}/
%dir %{_rundir}/%{name}/mounts
%dir %{_rundir}/%{name}/lock
%files -n python3-snapm
# license for snapm (Apache-2.0)
%license LICENSE
%doc README.md
%{python3_sitelib}/%{name}/
%{python3_sitelib}/%{name}*.dist-info/
%files -n python3-snapm-doc
# license for snapm (Apache-2.0)
%license LICENSE
%doc README.md
%doc doc
%changelog
* Wed Jan 07 2026 Bryn M. Reeves <bmr@redhat.com> - 0.7.0-1
- fsdiff: support multiple change nodes in tree rendering
- fsdiff: extend file type guessing for path suffixes
- command: add --no-mem-check diff/diffreport argument
- fsdiff: add DiffOptions.no_mem_checks to override default RSS checks
- schedule: validate schedule names with systemd unit and snapset rules
- timers: fix path variable in _write_drop_in() exception handler
- snapm: improve size parsing and support unitless expressions
- mounts: force LC_ALL=C for all mount callouts
- mounts: umount error with netns (nsfs) mounts from podman
- mounts: strip whitespace from mount/umount stderr
- mounts: avoid useless warning about /var/lib/containers/overlay
- container_tests: fix breakage in test_GcPolicyParamsTimeline_evaluate_2
- snapm: pass nosort=True for SNAPSET_CATEGORIES report field
- report: allow optionally disabling sort of REP_STR_LIST fields
- snapm: add SnapshotSet.{__str__,json}() fields for categories
- command: add report field for SnapshotSet.categories
- snapm: move timeline classification to snapm.manager
- tests: coverage for snapm.fsdiff.treewalk additions
- tests: coverage for snapm.fsdiff.fsdiffer additions
- tests: coverage for snapm.fsdiff.filetypes additions
- plugins: bump plugin versions for prio support
- fsdiff: support DiffOptions.from_path as list
- fsdiff: implement cheap sibling proximity heuristic for moves
- snapm: remove --include-system-dirs from snapm.command and snapm(8)
- fsdiff: disable hash read chunking for /proc paths and add error handling
- fsdiff: extend _ALWAYS_EXCLUDE_PATTERNS to more /proc and /sys paths
- fsdiff: ignore FileNotFoundException for magic /proc symlinks
- fsdiff: fix load_cache()/save_cache() for empty FsDiffResults
- fsdiff: tolerate missing python magic and work around Magic.close() bug
- fsdiff: ctrl char glitches when diff -o tree --color=always | less -R
- fsdiff: extend classification/file type patterns to cover binary logs
- fsdiff: pass strip_prefix to FileTypeDetector.detect_file_type()
- fsdiff: extend text-like file type guessing with common text paths
- progress: fix log message being swallowed by progress bar
- scripts: add setpaths.sh developer script
- manager: remove unused _requested_provider argument
- doc: add plugin priorites to user_guide.rst
- tests: add coverage for plugin priorities and limits
- tests: reduce number of volumes used in device-backed tests
- plugin: make Plugin into an ABC
- snapm: make Snapshot into an ABC
- lvm2: relax restrictions on Lvm2Cow.can_snapshot()
- manager: implement support for plugin priorities
- plugin: enhance plugin config warn logging with file name
- snapm: add plugin debug subsystem
- plugin: set static priorities for LVM2, Stratis
- plugin: extend Plugin.__init__() to set priority attr from config
- doc: add mount manager to user_guide.rst
- doc: mention Larry Ewing and link to archived Tux page
- doc: add difference engine to README.md
- doc: add new snapm logo to README.md
* Sun Dec 21 2025 Bryn M. Reeves <bmr@redhat.com> - 0.6.0-1
- fsdifff: change compressed file extension to xz/zst
- tests: add command coverage for snapset {diff,diffreport}
- tests: cover unified diff rendering and updated string conversion
- tests: cover memory check in FsDiffer.compare_roots()
- tests: cover new hard exclude in snapm.fsdiff.treewalk
- tests: cover new file type detection in snapm.fsdiff.filetypes
- tests: cover new _should_cache() heuristic and cache errors
- tests: cover new snapm helpers
- fsdiff: use BinaryContentDiffer as the differ-of-last-restort
- fsdiff: rename include_file_type to use_magic_file_type
- fsdiff: add hard path exclusions to snapm.fsdiff.treewalk
- fsdiff: make full/short formatting consistent and add file_type_desc
- fsdiff: fix FsEntry.__str__() "stat" formatting
- fsdiff: implement use_magic: bool and _guess_file_type() in FileTypeDetector
- fsdiff: expand filetypes category_rules MIME mapping
- fsdiff: add new FileTypeCategory variants
- fsdiff: add patterns for file type identification to filetypes
- fsdiff: refuse to compute diff if RSS > 33 RAM and include_content_diffs
- fsdiff: factor out _get_{current_rss,total_memory}() into snapm
- fsdiff: replace "no compress" heuristic with RSS-based "no cache"
- fsdiff: restore lzma as a fallback if zstandard is not available
- fsdiff: better type hints in snapm.fsdiff.cache
- fsdiff: implement compression heuristic for low memory systems
- fsdiff: delete tree dicts after DiffEngine.compute_diffs() returns
- fsdiff: replace lzma with zstandard
- fsdiff: add progress and duration reporting to save_cache/load_cache
- fsdiff: restructure diffcache to allow streaming records
- fsdiff: add memory size detection and lzma dict sizing to cache
- fsdiff: move detector may mis-detect identical files as moves
- fsdiff: catch EOFError on truncated cache file
- doc: clarify defaults, links and improve list formatting
- doc: add missing "summary" to doc/user_guide.rst and tidy up
- tree: fix docstring typo ("sting" for "string")
- fsdiff: add progress bar to DiffEngine._detect_moves()
- progress: limit max FPS in Progress like Throbber
- doc: expand coverage of difference engine features
- tests: fix method signatures in tests/test_progress.py
- fsdiff: change TreeWalker.walk_tree() throbber style to 'braillecircle'
- progress: fix status clearing for cancel() with no_clear=True
- fsdiff: clean up unused snapm.fsdiff.fsdiffer interfaces
- command: add cache control arguments to diff/diffreport
- fsdiff: add cache support to FsDiffer
- fsdiff: add a timestamp to FsDiffResults
- fsdiff: add snapm.fsdiff.cache module
- fsdiff: make DiffOptions frozen=True and hashable
- fsdiff: fix orphan parent path in DiffTree.build_tree()
- dist: add example scripts for snapm.progress and snapm.fsdiff
- tests: improve snapm.fsdiff coverage
- command: add --output-format=summary
- fsdiff: add FsDiffResults.summary()
- fsdiff: add diffstat to FsDiffResults.diff()
- fsdiff: add FsDiffResults.type_changed
- progress: fix exception in NullProgress.end()
- fsdiff: make colored diff hunk headers cyan
- fsdiff: fix full formatting
- fsdiff: wrap all long-running operations in KeyboardInterrupt except blocks
- progress: make sure to reset the terminal on Progress.end()
- tests: extend snapm.fsdiff coverage to UI related changes
- doc: update snapm(8) and doc/user_guide.rst for diff/diffreport
- command: add snapset diffreport subcommand
- command: add snapset diff subcommand
- command: add diff_snapsets() API function
- command: add optional data arg to reporting functions
- progress: don't center status header
- fsdiffer: add top-level color argument
- fsdiff: drop throbber and progress arguments from FsDiffer and TreeWalker
- fsdiff: add tree module and DiffTree public interface
- fsdiff: add progress to DiffEngine.compute_diff()
- fsdiff: extract DiffTypes from fsdiff.engine to fsdiff.difftypes
- fsdiff: guard xattr collection against OSError/PermissionError
- snapm: make size_fmt() work with negative values
- fsdiff: indent all FsDiffRecord.__str__ members and submembers
- fsdiff: fix target formatting when !options.from_path
- fsdiff: preserve default exclude patterns when options.exclude_patterns
- fsdiff: make generate_content_diff() robust to unexpected encodings
- progress: fix Throbber erase-at-end cursor movement
- fsdiff: add an FsDiffResults class to represent diff results
- progress: extend TermControl to support color={"auto","always","never"}
- fsdiff: fix snapm.fsdiff.treewalk.FsEntry.mtime type hint
- fsdiff: support added/removed files in snapm.fsdiff.contentdiff
- fsdiff: add FsDiffRecord.json()
- fsdiff: add to_dict() methods to FileChange, ContentDiff, FsDiffRecord
- fsdiff: fix FsEntry xattr typing (bytes, not bytearray)
- fsdiff: ensure FsEntry.broken_symlink is always set
- doc: add missing snapm.progress automodule to snapm.rst
- snapm: make snapm._progress and snapm._fsdiff public
- fsdiff: beautify FsDiffRecord.__str__() output
- fsdiffer: make DiffOptions.include_system_dirs default False
- fsdiff: plumb quiet through DiffOptions
- fsdiff: render mtime values as datetime.fromtimestamp()
- fsdiff: don't output empty FsDiffRecord fields
- fsdiff: lower case ChangeType.description
- fsdiff: export FsDiffRecord at package level
- fsdiff: add DiffOptions.from_cmd_args() class method
- snapm: forbid snapshot sets named '.'
- snapm: iterate over copy of _active_progress
- progress: move registration into .start() and pass register to __init__()
- progress: fix Throbber._check_started() :raises: docstring
- progress: output newlines after progress/throbber output and erase
- command: use ProgressAwareHandler in setup_logging()
- progress: add reset_position() callbacks
- snapm: add progress registration and ProgressAwareHandler
- snapm: don't re-export Progress classes through snapm
- progress: add comment for _last_frame_width() edge case
- progress: test cancel() coverage and error message
- progress: fix ThrobberBase._do_end() docstring
- progress: add _check_started() callbacks in NullThrobber
- progress: restore _check_in_progress() in ProgressBase.end()
- doc: add snapm._fsdiff modules and tidy up
- tests: add initial unit test coverage for snapm._fsdiff
- fsdiff: handle non-existent from_path in a/b tree
- fsdiff: add core comparison classes
- tests: work around python3-magic/file-magic schism on Ubuntu
- snapm: add fsdiff debug subsystem
- fsdiff: establish package structure
- mounts: fix incorrect SnapshotSet instead of name in name_map
- progress: support optional Throbber "style" parameter
- progress: support multi-character throbber frames
- progress: output a newline before Throbber.end() message if no_clear
- tests: verify SimpleProgress is returned when stream has no isatty
- tests: add coverage for re-raising KeyboardInterrupt in TermControl()
- progress: add flush helper tests
- progress: raise SystemExit from _flush_with_broken_pipe_guard()
- progress add cancel() method to progress classes
- progress: add Throbber classes for unbounded busy work
- progress: hide cursor while displaying Progress
- progress: default stream from term_control in get_progress
- progress: add missing header docstring
- progress: move _flush_with_broken_pipe_guard() above ProgressBase
- mounts: refactor Mount into ABC MountBase and system/snapset classes
- progress: fix BrokenPipeError in progress classes
- progress: fix bar width formatting for SimpleProgress
- progress: don't let message overflow the terminal width
- doc: add missing snapm.manager._mounts to Sphinx docs
- progress: mark done as unused in NullProgress._do_progress()
- progress: drop redundant self.total = 0 in Progress._do_end()
- progress: don't output initial bar in Progress._do_start()
- progress: drop no-longer existent _do_start total docstrings
- progress: factor out color init and re-raise system exceptions
- doc: improve snapm._progress doc strings
- progress: rename QuietProgress -> NullProgress
- progress: catch BaseException rather than Exception
- test: fix test_term_control_init_success BLACK != GREEN
- progress: fix wrong ANSI foreground color initialisation
- progress: add no_clear=False arg to not erase progress bar at end
- progress: drop unused cleared member from Progress
- progress: add type hints to members
- progress: build colors with enumerate() rather than zip()
- progress: factor out width calc via class vars for static content size
- progress: factor out common code and checks in start(), progress(), end()
- tests: add test coverage for snapm._progress module
- doc: expand :exclude-members: to cover more internal names
- snapm: add terminal control and progress bar abstraction
- container_tests: fix GcPolicyParamsTimeline.evaluate() tests edge case
- stratis: re-use initial DBus query for StratisSnapshot cache
- container_tests: add GcPolicyParamsTimeline progressive test
- schedule: fix TIMELINE policy retention indexing when keep_x > len(x)
- schedule: Fix COUNT policy off-by-many when keep_count > len(sets)
- snapm: make -c|--config mandatory for create-scheduled/gc
- snapm: report garbage collected snapshot set names
- schedule: fix timeline classification to allow multiple categories
- schedule: add gc decision debug logging
- snapm: add new snapm.schedule debug subsystem
- snapm: fix renaming of snapshot sets with boot entries
- tests: fix subprocess.run checks and cleanup order in MountTestsBase
- boot: hex escape literal ':' in values passed to systemd.{mount,swap}-extra
- tests: add further test coverage for Mounts and Mount
- tests: add more paths to cleanup.sh
- tests: move is_redhat() to tests for re-use in tests/test_mounts.py
- snapm: ensure stability of Selection.__str__() attribute ordering
- snapm: allow starting a shell in a snapset chroot
- snapm: allow invoking an arbitrary command in a snapset chroot
- mounts: Selectionize Mounts.find_mounts()
- snapm: move select_snapshot_set and select_snapshot to snapm
- snapm: add mount status and root to snapm snapset list report
- snapm: add Mounted OriginMounted and MountRoot to snapm snapset show
- command: add snapset mount and umount verbs
- manager: initialise mount manager
- snapm: add snapm.manager.{Mounts,Mount}
- snapm: refactor _build_snapset_mount_list() and hoist to snapm
- snapm: hoist _find_snapset_root() up to snapm
- boot: expand use of FsTabReader and avoid repeat reads of /etc/fstab
- snapm: add get_device_fstype() helper
- snapm: fix get_device_path() argument ordering
- snapm: fix exit status test in snapm.get_device_path()
- snapm: hoist get_device_path up to snapm
- snapm: hoist Fstab up to snapm and rename FsTabReader
- lvm2: fix _is_lvm_device() for non-device file systems
- tests: skip test_create_snapshot_set_no_provider if !ismount("/boot")
* Mon Nov 03 2025 Bryn M. Reeves <bmr@redhat.com> - 0.5.1-1
- dist: don't recursively set SELinux contexts for /run/snapm
- tests: coverage for Scheduler.edit()
- snapm: implement schedule edit command
- scheduler: add Scheduler.edit() method
- scheduler: add GcPolicy.has_params property
- scheduler: remove schedule from lists/dicts on Scheduler.delete()
- boot: use maxsplit=1 in BootEntryCache._parse_entry()
- boot: Replace asserts with explicit exceptions
- boot: Type the machine-id helper as Optional and align docstring
- command: Fix typo in print_schedules doc - 'separateed' → 'separated'
- command: Fix typo in create_schedule doc - 'autoinxed' → 'autoindex'
- command: Fix _revert_cmd docstring - 'Delete' instead of 'Revert'
- boot: drop `lvm_root_lv` docstring from _create_boom_boot_entry()
- boot: handle swap entries explicitly in create_snapset_boot_entry()
- boot: don't include swap entries in the snapset mount list
- snapm: fix formatting glitches in snapm.manager
- dist: add /run/snapm/lock to systemd/tmpfiles.d/snapm.conf
- manager: re-locate lock files to /run/snapm/lock
- dist: add tmpfiles.d drop-in for /run/snapm to snapm.spec
- snapm: add systemd/tmpfiles.d/snapm.conf
- snapm: add constants for runtime and mount dirs
- snapm: wire up new debug log filttering in snapm.command.setup_logging()
- snapm: convert modules to new log filtering interface
- snapm: replace SnapmLogger Logging class with SubsystemFilter Filter class
- snapm: use "snapm" rather than __name__ (snapm._snapm) for getLogger()
- snapm: add string constants for new name-based subsystem log filtering
* Mon Oct 06 2025 Bryn M. Reeves <bmr@redhat.com> - 0.5.0-1
- snapm: bump release to 0.5.0
- snapm: reject duplicates in Scheduler.create() sources argument
- snapm: introduce Manager-level locking
- snapm: add Manager.{activate,deactivate}_snapshot_set()
- snapm: require root priveleges for snapm commands
- schedule: write_config(): do not reference tmp_path when it is undefined
- tests: make git clones with --depth 1
- tests: update stratisd to stratisd-v3.8.5 and pin rust toolchain
- doc: note that lvm2cow does not support shrinking snapshots in snapm.8
- lvm2: add debug logging to size policy calculations
- lvm2: skip no-ops and use relative size in Lvm2Cow.resize_snapshot()
- lvm2: Detect and reject attempts to shrink CoW snapshots
- lvm2: round up SizePolicy.size byte values to lvm2 extent boundaries
- snapm: add size policy debug logging to create and resize
- lvm2: extend _Lvm2.vg_free_space() to return extent size
- lvm2: add lvm2._round_up_extents() to round sizes to extent boundaries
- lvm2: Check path args to _is_lv_device() for existence and major nr match
- lvm2: check for device-mapper major number before calling dmsetup
- tests: fix test_create_snapshot_set_no_provider to fail if !SnapmNoProviderError
- doc: don't drop PYTHONPATH entries - concatenate them like PATH
- doc: fix typo in snapm-schedule.d.5 man page
- snapm: fix typo in snapm.manager.plugins._plugin
- snapm: fix typos in snapm.manager._timers
- snapm: fix typos in snapm.wanager._schedule
- snapm: fix typos in snapm.manager._manager
- snapm: fix typos in snapm._snamp
- doc: tighten up examples and fix command synopsis
- doc: drop leading # from commands in *.md *.rst
- doc: clarify list, create and show JSON report structure and keys
- doc: use "snapshot set" vs. "snapset" consistently in snapm.8
- doc: document JSON key names for list vs. show output
- Update README.md and move detailed guide to doc/user_guide.rst
- snapm: require -p/--policy-type for 'snapm schedule create'
- snapm: make --yes/--no required and mutually exclusive for autoactivate
- tests: parallelize pylint and flake8 runs via --jobs
- tests: configure pycodestyle in setup.cfg
- tests: re-order python-basic-tests to run cheap tests first
- snapm: fix report field definition for snapshot_origin
- snapm: fix swapped _log_info() args in 'snapm snapset prune' output
- dist: add missing timer and service units to snapm.spec
- tests: set timeout-minutes=60 on python-basic-tests
- tests: add Ubuntu libvirt/BIOS workaround to virt_tests workflow
- virt_tests: add workaround to enable BIOS on Ubuntu libvirt
- tests: add virt_tests workflow to snapm.yml
- dist: exclude test paths from setup.cfg builds
- virt_tests: add end-to-end testing framework
- doc: add DeepWiki badge to README.md
- doc: fix remaining markup nits in snapm.8
- doc: improve example formatting for man2html in snapm.8
- doc: improve man2html compatibility (.UR/.UE) in snapm.8
- doc: fix --start option documentation in snapm.8
- doc: add missing -p|--policy-type option to OPTIONS in snapm.8
- doc: add missing -C|--calendarspec option in snapm.8
- doc: fix .P vs .IP errors in snapm.8
- doc: add missng "REPORT FIELDS: Schedules" subsection to snapm.8
- doc: add missng "REPORT FIELDS: Plugins" subsection to snapm.8
- doc: convert remaining examples to .EX/.EE in smapm.8
- doc: update 'snapm schedule list' example
- doc: make OPTIONS metavars consistent with SYNOPSIS in snapm.8
- doc: use macros for common argument groups in snapm.8
- doc: use schedule_name consistently as schedule name metavar
- doc: clarify that snapm schedule create does not accept --autoindex
- command: fix --rows help doc typo 'columnes'
- doc: fix additional consistency issues in command examples
- doc: fix 'schedule gc' -c/--config argument description
- doc: more man page markup improvements
- doc: mark sources as optional in CMD_SNAPSET_RESIZE in snapm.8
- snapm: enforce [ID] vs --*name/--*uuid exclusion via ArgumentParser
- snapm: make --uuid/--name higher precedence in Selection.from_cmd_args()
- snapm: make --uuid/--name and --snapshot-uuid/--snapshot-name mutually exclusive
- doc: add 'snapm snapset create --json' exmaple
- doc: use macros for common argument groups in snapm.8
- doc: use .UR/.UE for URIs in SEE ALSO of snapm.8
- doc: update man page date
- doc: document snapshot set/snapshot status once and crossref
- doc: use .BR instead of .MR for now (groff-1.23.0+ only)
- doc: fix 'scheduled' typo in snapm.8
- doc: avoid mixing manual font escapes inside .BR/.IR in snapm.8
- doc: add EXIT STATUS, FILES, and BUGS sections to snapm.8
- doc: fix font markup glitches in snapm.8
- doc: fix --boot option name in snapm.8 schedule create example
- doc: fix s/snapset/schedule/ for 'snapm schedule list' in snapm.8
- doc: add missing enable --start description to snapm.8
- doc: document additional uses of --json in snapm.8
- doc: document create-scheduled in snapm.8
- doc: snapm.8 s/rolling back/reverting/g
- doc: update snapm.8 for non-root boot changes
- doc: improve prose style in snapm.8
- doc: use .EX/.EE example markup in snapm.8
- doc: use .TP (tagged paragraph) with consistent indents in snapm.8
- doc: fix typos & consistency issues in `snapm.8`
- tests: make cleanup.sh more robust for Stratis pools
- snapm: support --json with {snapset,schedule} create commands
- doc: add CONTRIBUTING.md
- tests: add cleanup script to tests/bin
- tests: Add BootTestsBase and derive BootTestsNonRoot and BootTestsWithRoot
- boot: allow bootable snapsets without the root device
- Do not require wheel for building
- boot: drop explicit setting of `lvm_root_lv` when calling boom
- boot: add origin argument to _find_snapset_root()
- boot: always return path from _find_snapset_root()
- tests: improve manager module coverage
- manager: reject duplicate sources in Manager.create_snapshot_set()
- plugins: fix device detection for non-existent device paths
- loader: mark error branches as no cover
- tests: improve boot module coverage
- tests: improve calendar module coverage
- tests: improve command module coverage
- Schedule: clean up boot entries when garbage collecting snapshot sets
- tests: improve snapm module coverage
- tests: add SchedulerTests
- timer: only unlink drop-in files if present
- doc: add schedule commands to README.md
- doc: add man page command overview
- doc: add snapm-schedule.d.5
- doc: add 'snapm schedule' commands and arguments to snapm.8
- doc: fix some man page markup
- manager: make config loading a bit more efficient
- command: add `snapm schedule gc` command
- command: add gc_schedule() procedural wrapper
- command: add 'snapm snapset create-scheduled' command
- snapm: quote string when reporting malformed SizePolicy string
- command: add 'snapm schedule show' command
- command: add show_schedules() procedural wrapper
- command: add 'snapm schedule {enable,disable}' commands
- command: add {enable,disable}_schedule() procedural wrappers
- command: add `snapm schedule delete` command
- command: add delete_schedule() procedural wrapper
- command: add `snapm schedule create` command
- command: add schedule_create() procedural wrapper
- manager: export GcPolicy and CalendarSpec in snapm.manager
- command: factor out common create command arguments
- container_tests: add schedule module to coverage --include
- timers: fix missing f-string annotation in _timers._timer()
- container_tests: fix timer_tests exception args assertions
- command: add 'schedule' type subparer and 'schedule list' command
- command: add _schedule_list_cmd() handler
- command: add print_schedules reporting wrapper
- container_tests: create /etc/snapm/schedule.d in Containerfile
- snapm: add Selection support for Schedule objects
- command: add Schedule ReportObjType and FieldType list
- manager: export Schedule from snapm.manager
- timers: fix build on epel-9/cs9 due to py3.10 union notation
- manager: expose manager.scheduler interface for snapset scheduling
- manager: add snapm.manager.Scheduler interface for managing schedules
- schedule: add new module snapm.manager._schedule
- snapm: add datetime property to SnapshotSet
- timers: treat TimerStatus.RUNNING as enabled=True
- timers: convert to using snapm.SnapmSystemError for OsError derived errors
- snapm: add SnapmSystemError exception class
- timers: improve debug logging
- timers: ensure drop-in configuration overrides template unit
- doc: exclude __annotation__ from members documentation
- snapm: rename Snapshot and Snapshotset as_dict() methods as to_dict()
- doc: add snapm-plugins.d(5)
- doc: add snapm.conf(5)
- dist: add /etc/snapm to snapm.spec
- stratis: enforce configurable limits
- lvm2: enforce configurable limits
- plugin: add plugin limits infrastructure
- plugins: support optional configuration file
- manager: make plugin loading and snapshot discovery more robust
- manager: add configuration file support
- lvm2: use JSON lvs report format in vg_lv_from_device_path()
- lvm2: run callouts with LC_ALL=C
- lvm2: convert remaining calls to run() to use self._run()
- lvm2: make lvm2._avtivate() a method of _Lvm2
- lvm2: make lvm2.is_lvm_device() a method of _Lvm2
- lvm2: make lvm2._get_lvm_version() a method of lvm2._Lvm2
- lvm2: add _Lvm2._run() wrapper to enforce environment sanitization
- docs: apply workaround for sphinx-doc/sphinx#11000
- docs: disable unused html_static_path Sphinx config
- doc: fix doc/snapm.rst underline formatting
- snapm: fix snapm.manager._boot._create_default_os_profile() docstring
- docs: fix "mqnqger" typo in doc/snapm.rst
- docs: fix broken :param ...: docstring tag in Selection.check_valid_selection()
- docs: fix "tiemrs" typo in doc/snapm.rst
- dist: fix readthedocs.org builds (restore requirements.txt)
- doc: add snapm.manager private modules to docs
- timers: fix consstants in docstring description
- container_tests: add tests for high-level Timer interface
- timers: add high-level Timer interface
- timers: add timer status reporting
- timers: move _diable_timer() _remove_drop_in() into finally branch
- timers: add pragma: no cover to unreached DBus timeout branch
- timers: log debug-level message when writing drop-in file
- container_tests: update test_timers for private low-level interface
- timers: make the low-level interface private to _timers
- timers: add constant for drop-in directory path format
- calendar: make occurs, next_elapse, in_utc, from_now values dynamic
- timers: add 'pragma: no cover' annotations to exception branches
- tests: add initial timer tests
- tests: exclude container_tests/tests from regular snapm workflow
- tests: add container testing infrastructure
- manager: add systemd timer unit management interface
- dist: update systemd timer templates to always include OnCalendar
- snapm: add SnapmTimerError exception class
- manager: add debug logging to create_snapshot_set()
- tests: assert result of CommandTests.test_main_* tests
- tests: enable verbose logging for CommandTests*.test_main_* tests
- tests: add CommandTests*.get_debug_main_args() helper
- tests: fix test_main_snapset_create_autoindex
- calendar: add explicit CalendarSpec.original property
- calendar: prefer calendarspec original form
- calendar: fix docstring formatting
- dist: fix mixed-tabs-and-spaces in snapm.spec
- manager: move snapm imports ahead of .{_boot,_loader,_signals}
- manager: move snapm.manager.signals to snapm.manager._signals
- manager: move snapm.manager.calendar to snapm.manager._calendar
- manager: move snapm.manager.boot to snapm.manager._boot
- dist: use __install macro instead of directly invoking command
- Plugin: fix method docstring formatting
- dist: sync classifiers between pyproject.toml and setup.cfg
- dist: drop quotes around license value
- dist: drop obsolete python macro use
- dist: revise dependency versions
- dist: drop requirements.txt
- dist: restore install_requires
- dist: re-order BuildRequires and separate python and non-python deps
- dist: clean up Sphinx doc build and make unconditional
- dist: use install -p/--preserve-timestamps
- boot: tolerate missing boom.command.create_config()
- dist: pass test suite directory as positional arg to pytest macro
- dist: fix mixed tabs-and-spaces in snapm.spec
- dist: make version dynamic in pyproject.toml
- dist: consolidate dependencies in requirements.txt
- dist: drop unnecessary snapm/manager/pliugins/stratislib/LICENSE
- dist: add pytest to build requirements
- tests: use pytest instead of directly calling pytest-3
- dist: drop centos/rhel special casing for python build/install
- dist: change snapm license from GPL-2.0-only AND Apache-2.0 to Apache-2.0
- report: Row - stop misusing class vars
- report: Report - stop misusing class vars
- report: Field - stop misusing class vars
- report: FieldType - stop misusing class vars
- report: ReportOpts - stop misusing class vars
- report: ReportObjType - stop misusing class vars
- report: FieldProperties - stop misusing class vars and add initialiser
- snapm: move Plugin into snapm.manager.plugins
- snapm: drop PluginRegistry metaclass
- snapm: refactor plugin loader and move to snapm.manager._loader
- dist: avoid Python packaging warnings
- snapm: unify filtering for valid characters in names
- snapm: fix Manager.split_snapshot_sets() with empty sources
- command: add new 'snapm snapset prune' command
- command: add new 'snapm snapset split' command
- tests: add Manager.split_snapshot_set() tests
- snapm: add Manager.split_snapshot_set()
- snapm: include state string in exception raised from _check_snapset_status()
- snapm: add snapm.SnapmArgumentError exception class
- doc: add --autoindex and basename, index fields to README.md
- doc: add --autoindex and index, basename fields to snapm(8)
- snapm: add snapm snapset create --autoindex
- snapm: add report field types for basename and index to snapm.command
- report: add new REP_IDX field data type for index values
- snapm: add constants for basename and index property names
- snapm: add 'autoindex' kwarg to snapm.command.create_snapset()
- snapm: add autoindex support to Manager.create_snapshot_set()
- snapm: add missing param docstrings to Manager.create_snapshot_set()
- snapm: Allow finding snapshot sets by basename and index
- snapm: support SnapshotSet names with basename and index
- tests: add missing '[cache]' section to test boom.conf
- snapm: refresh boot cache after creating entries in create_snapshot_set()
- snapm: improve SnapshotSet action method logging
- snapm: use Manager._set_autoactivate() in create_snapshot_set()
- Manager: use common snapm.bool_to_yes_no() in Manager.set_autoactivate()
- Manager: factor out common code from Manager.set_autoactivate()
- snapm: move _bool_to_yes_no() from snapm.command to snapm
- Plugins: add generic Plugin.autoactivate setter and drop set_autoactivate()
- Manager: fix autoactivate setting during snapshot set creation
- snapm: move snapshot -> snapset linkage into SnapshotSet()
- dist: replace license classifier with SPDX expressions
- tests: add python3-pytest-subtests to Ubuntu dependencies
- dist: add template systemd units for scheduler
- tests: also install faketime binary on Ubuntu
- tests: skip test_calendar_spec_next if faketime is missing
- dist: add BuildRequires: libfaketime for Fedora builds
- tests: refactor CalendarSpec tests to use unittest.subTest()
- tests: remove debug statements from test_calendar.py
- tests: add CalendarSpec unit tests
- tests: add 'libfaketime' package to Ubuntu workflow dependencies
- tests: disable pylint too-many-positional-arguments check
- snapm: add snapm.manager.calendar and CalendarSpec class
- snapm: raise SnapmNotFoundError if source path does not exist
- tests: switch GitHub workflows over to Stratis 3.8.0
- tests: install stratis-cli from git and pin version to 3.7.0
- lvm2: filter out LVM2 environment variables when calling lvm commands
- lvm2: make vg_lv_from_device_path a method of Lvm2Cow and Lvm2Thin
- lvm2: ensure vg_lv_from_device_path() gets the expected report format
- lvm2: determine LVM2 JSON format argument based on installed version
- lvm2: refactor helper functions as Lvm2 plugin methods
- tests: allow mock vgs/lvs to accept --reportformat json or json_std
- dist: clean up copyright statements and convert to SPDX license headers
- dist: update GPLv2 text in COPYING
- snapm: factor out common code for snapshot origin and mount point links
- snapm: move rename logic from Manager to SnapshotSet.rename()
- snapm: move resize logic from Manager to SnapshotSet.resize()
- snapm: move {de,}activate logic from Manager to SnapshotSet.{de,}activate()
- snapm: move revert logic from Manager into SnapshotSet.revert()
- snapm: move boot entry creation inside Manager.create_snapshot_set()
- manager: replace open-coded snapset delete with snapset.delete()
- snapm: implement SnapshotSet.delete()
- snapm: catch KeyboardInterrupt in snapm.command.main()
- snapm: decorate state-changing Manager methods with @suspend_signals
- snapm: add @suspend_signals decorator to block SIGINT, SIGTERM
- report: strip trailing whitespace from report output
- tests: bracket test cases with log messages
- tests: add explicit log formatter to file and console handlers
- tests: capture tool output and log command execution
- tests: add console handler to test suite logger
- snapm: avoid duplicating log handlers when main() is called repeatedly
- tests: fix duplicate log handlers in test suite
- dist: use {name} instead of hardcoding snapm in URL and autosetup
- jenkins: add file to list dependencies of python test suite
- tests: enable workflow on pull_request
- tests: temporarily exclude CentOS from test_boot.is_redhat() check
- dist: move python3-boom dep to python3-snapm and require >= 1.6.4
* Thu Dec 12 2024 Bryn M. Reeves <bmr@redhat.com> - 0.4.0
- stratis: return False for non-DM devices from is_stratis_device()
- command: accept zero or more source spec arguments to snapset resize
- doc: add snapset resize command to README.md
- snapm: disable recursive snapshot sets (snapshots-of-snapshots)
- doc: update examples in README.md
- doc: update examples in snapm.8
- snapm: Manager.delete_snapshot_sets(): fix formatting
- snapm: simplify is_size_policy() and re-use SizePolicy validation
- tests: additional tests for size policy validation
- snapm: use SnapmSizePolicyError consistently for size policy validation
- snapm: add missing SnapmSizePolicyError to snapm.__all__
- snapm: check for block device sources that duplicate mount point sources
- snapm: suppress redundant fields in SnapshotSet string output
- doc: update README.md for block device snapshot support
- doc: update snapm.8 for block device snapshot support
- doc: add Stratis project URL to snapm.8
- snapm: make 25 percent SIZE the default size policy for block device snapshots
- tests: fix mock dmsetup for test_is_stratis_device
- snapm: fix detection of unmounted block devices for USED size policy
- tests: extend coverage for block device snapshot sets
- tests: extend test_create_snapshot_set_blockdevs to Stratis devices
- stratis: accept /dev/stratis/$POOL/$FS form in is_stratis_device()
- tests: merge ManagerBlockdevTests into ManagerTests
- command: convert command line arguments from 'mount_points' to 'sources'
- command: convert resize_snapset() from mount_points to sources
- command: convert create_snapset() from mount_points to sources
- manager: disable lints on Manager.create_snapshot_set()
- lvm2: fix size_map indexing on resize
- manager: accept mount point or device sources in resize_snapshot_set()
- manager: accept mount point or device sources in create_snapshot_set()
- manager: generalise _find_and_verify_plugins() for block device sources
- manager: generalise _parse_mount_point_specs()
- manager: add _find_mount_point_for_devpath() helper
- snapm: add devices FieldType to snapshot set reports
- snapm: add Devices to SnapshotSet string and JSON representation
- command: replace 'mountpoint' with 'source' in default snapshot report
- command: replace 'mountpoints' with 'sources' in default snapset report
- command: add source FieldType to snapshot reports
- command: add sources FieldType to snapshotset reports
- snapm: add SnapshotSet.devices property
- snapm: move 'SnapshotSet.sources' ahead of 'SnapshotSet.mount_points'
- snapm: add Source to Snapshot string and JSON representation
- snapm: add Sources to SnapshotSet string and JSON representation
- snapm: add SnapshotSet.snapshot_by_source()
- snapm: add Snapshot.source and SnapshotSet.sources properties
- plugins: rename Plugin.can_snapshot() argument to 'source'
- stratis: fix errors in Stratis._check_free_space() docstring
- lvm2: index size_map by lv_name instead of mount_point
- snapm: handle non-mount points in mount_point_space_used()
- snapm: restrict USED SizePolicy to mounted sources
- lvm2, stratis: pass origin directly to Plugin._check_free_space()
- lvm2, stratis: always include '/dev' prefix in origin
- lvm2: include stderr in exceptions raised from failed callouts
- snapm: fix lints in snapm.manager
- snapm: check that source paths are either a mount point or block device
- lvm2: accept paths in /dev/vg/lv format in vg_lv_from_device_path()
- add support for block devices as a snapshot source
- tests: move logging initialisation after local imports
- tests: extend test coverage to Stratis plugin
- snapm: fix license header typo
- dist: add COPYING.stratislib to RPM spec file
- tests: use 'udevadm settle' after starting Stratis pool
- tests: don't capture stratis stdout/stderr
- tests: move logging initialisation after local imports
- tests: use upstream stratisd-3.7 branch for testing
- tests: extend test coverage to Stratis plugin
- tests: add StratisLoopBacked.{stop,start}_pool()
- tests: add infrastructure for Stratis plugin tests
- stratis: add resize support
- stratis: add revert support to Stratis plugin
- stratis: add Stratis plugin
- tests: build and install stratisd and stratis-cli in CI
- plugins: add stratislib infrastructure for Stratis plugin
- tests: move simple tests to CommandTestsSimple
- tests: test resizing fails when out-of-space
- tests: test resize of non-member mount point fails
- snapm: resume journal in Manager.create_snapshot_set() error branch
- tests: add bad name/uuid tests for revert and resize
- manager: factor out common code for name/uuid lookup
- tests: test rename error and rollback action
- tests: check that an error deleting snapshots raises SnapmPluginError
- snapm: remove snapshot set members on successful delete
- snapm: check for REVERTING state when deleting snapshot sets
- tests: check that deleting a mounted snapshot set fails
- tests: test that revert, rename or delete on a reverting snapset fails
- snapm: invalidate cache on Snapshot.revert()
- tests: call 'lvs -a' in LvmLoopBacked.dump_lvs()
- snapm: mark _{suspend,resume}_journal() error paths as no cover
- doc: add 'snapset resize' subcommand to snapm.8
- doc: add missing 'revert' subcommand to ARG_SNAPSET_COMMANDS
- tests: improve coverage for Plugin base class
- tests: Manager.resize_snapshot_set() tests
- command: add snapset resize command
- snapm: add Manager.resize_snapshot_set() method
- snapm: add Snapshot.check_resize() and Snapshot.resize() methods
- lvm2: add Lvm2Thin.{check_,}resize_snapshot()
- lvm2: add Lvm2Cow.{check_,}resize_snapshot()
- snapm: add Plugin.{check_,}resize_snapshot()
- snapm: make Snapshot provider member public
- snapm: fix Manager.revert_snapshot_set() docstring comment
- lvm2: re-check LVM name in Lvm2Thin.create_snapshot()
- lvm2: fix lvm2thin free space check
- lvm2: check for INVALID status before REVERTING
- doc: add reverting status to snapm.8
- snapm: check for invalid status before reverting
- snapm: check for INVALID or REVERTING snapset status before operations
- lvm2: report REVERTING status for merging snapshot volumes
- lvm2: extend lvm2cow and lvm2thin plugins to include merging snapshots
- lvm2: extend snapshot filtering to include merging snapshots
- lvm2: add lvs_all keyword argument to lvm2.get_lvs_json_report()
- snapm: add 'Reverting' status to SnapStatus
- snapm: index Manager.by_uuid by UUID object rather than str(uuid)
- snapm: validate UUIDs during argument parsing
- lvm2: fix Snapshot initialisation after Lvm2Plugin.rename_snapshot()
- snapm: check for mounted snapshots before attempting to delete set
- snapm: fix Snapshot.snapshot_mounted property
- lvm2: don't capture lvconvert output during --merge operation
- snapm: fix exception when reverting unmounted snapset
- tests: make lvm2 test cleanup more robust
- lvm2: log debug message when renaming snapshot
- manager: handle errors when initialising plugins
- manager: call origin_from_mount_point() once per mount point during create
- snapm: check for ability to revert before reverting snapset
* Thu Jul 25 2024 Bryn M. Reeves <bmr@redhat.com> - 0.3.1
- tests: add test for mount_point_space_used()
- tests: add tests for device_from_mount_point()
- tests: add invalid snapshot names to parse_snapshot_name() tests
- tests: add escaped strings to encode/decode_mount_point tests
- tests: support 'dmsetup info -c --noheadings -ouuid' in mock dmsetup
- snapm: catch exceptions when importing plugins
- plugins: move DMSETUP constants to snapm.manager.plugins
- plugins: move DEV_MAPPER_PREFIX to snapm.manager.plugins
- snapm: remove unused logging import from plugin modules
- plugins: fix plugin logging
- plugins: move DEV_PREFIX constant to snapm.manager.plugins
- plugins: make plugin internal constants private
- snapm.manager: convert ImporterHelper._find_plugins_in_dir() to function
- lvm2: convert Lvm2Cow._snapshot_min_size() into function
- snapm.manager: convert ImporterHelper._get_plugins_from_list() into function
- lvm2: define _Lvm2.max_name_len
- lvm2: generalise _check_lvm_name() between Lvm2CoW/Lvm2Thin
- lvm2: log plugin type in Lvm2{CoW,Thin}.can_snapshot() error message
- lvm2: convert _Lvm2._activate() into a function
- snapm.manager.boot: rename single character locals in _get_machine_id()
- snapm.manager: convert Manager._parse_mount_point_specs() into function
- snapm.manager: convert Manager._{suspend,resume}_journal() into functions
- snapm.manager: convert ImportHelper._plugin_name() into function
- snapm.manager: call super().__init__() from PluginRegistery.__init__()
- snapm.command: rename 'ws' local to 'wspace'
- tests: use pip to install boom-boot in CI
- test: enable pylint in CI
- test: add .pylintrc to git
- snapm.manager.boot: replace FIXME with Note
- snapm.command: disable global-statement pylint warning
- snapm.command: factor out subparser addition from snapm.command.main()
- snapm: disable more pylint checks
- report: merge comparisons in Report.{__get_field,__key_match}()
- dist: handle py3_install/pyproject_install differences in files
- dist: add BuildRequires for python3-pip and python3-wheel
- dist: fix changelog date in snapm.spec
- snapm: fix snapm.command._log_warn definition
- dist: use py3_build/py3_install on RHEL/CentOS
- snapm: refactor Manager.create_snapshot_set()
- manager: flush and suspend journal before creating snapshots
- report: replace open coded comparison with max() in __recalculate_fields()
- report: use .items() to iterate over SHAs in __recalculate_sha_width()
- lvm2: add abstract Lvm2Snapshot.free() method definition
- snapm.manager.boot: add missing docstring to BootCache.refresh_cache()
- snapm.manager.boot: drop unused arg from create_snapset_boot_entry()
- snapm: drop unused arg and fix docstring for _create_boom_boot_entry()
- snapm.manager.boot: change if to bool() in _create_boom_boot_entry()
- snapm.manager.boot: explicitly re-raise exceptions in _create_boom_boot_entry()
- snapm.manager.boot: catch OSError instead of Exception in _get_machine_id()
- snapm.command: mark selection argument as unused in print_plugins()
- snapm.manager: add missing docstrings to boot entry creation methods
- snapm.manager: explicitly re-raise exceptions in deactivate_snapshot_sets()
- snapm.manager: explicitly re-raise exceptions in activate_snapshot_sets()
- snapm.manager: explicitly re-raise exceptions in revert_snapshot_set()
- snapm.manager: explicitly re-raise exceptions in delete_snapshot_sets()
- snapm.manager: explicitly re-raise exceptions in rename_snapshot_set()
- snapm.manager: explicitly re-raise exceptions in create_snapshot_set()
- snapm.manager: use lazy formatting in create_snapshot_set() debug
- snapm: set encoding in open() in Snapshot.{origin,snapshot}_mounted
- snapm: add missing Snapshot.json() docstring
- snapm: use generator in SnapshotSet.{origin,snapshot}_mounted
- snapm: remove unnecessary elif/else in SizePolicy.size()
- snapm: remove unnecessary else in SizePolicy._parse_size_policy()
- snapm: mark percent variable unused in snapm.is_size_policy()
- snapm: remove unnecessary else in snapm.is_size_policy()
- snapm.report: only import dumps from json
- snapm.command: remove unnecessary class variables from ReportObj
- snapm: break up long string in SizePolicy._parse_size_policy()
- tests: add flake8 to GitHub workflow
- snapm.report: remove unused math import
- dist: add E203 to flake8 ignore list
- snapm: disable flake8 F401, F403 in snapm/manager/plugins/__init__.py imports
- snapm.manager.boot: remove unused exception variable
- snapm.manager.boot: remove unused import SnapmInvalidIdentifierError
- snapm: fix by_name/by_uuid references in Manager.revert_snapshot_set()
- snapm: disable flake8 F401, F403 in snapm/manager/__init__.py imports
- snapm: fix UUID handling in snapm.command._revert_cmd()
- snapm: remove unused variable in snapm.is_size_policy()
- dist: add flake8 configuration to setup.cfg
- snapm: disable flake8 F401, F403 in snapm/__init__.py imports
- snapm.command: remove unnecessary imports
- dist: add libdbus-1-dev to apt_packages in .readthedocs.yaml
- dist: enable Python deps in .readthedocs.yaml
- snapm: generalise revert check for mounted fs to snapshot and origin
- dist: add boom-boot to RPM Recommends
* Thu Jun 20 2024 Bryn M. Reeves <bmr@redhat.com> - 0.3.0
- dist: add boom-boot to RPM Recommends
- snapm: forbid revert if snapset status is SnapStatus.INVALID
- dist: add pyproject.toml
- tests: fix boot path in tests/boot/boom/boom.conf
- snapm: check for boom configuration and create if missing
- dist: add dependency on boom-boot >= 1.6.4
- docs: update list of Packit build targets in README.md
- doc: add JSON output options to snapm.8
- doc: add and update command output examples to README.md
- dist: add requirements.txt
- doc: add boom requirement to installation instructions
- snapm: fix plugin list command formatting (black)
- tests: add JSON report output test
- report: fix setting of ReportOpts.json in ReportOpts()
- report: allow sort keys to use optional prefix
- report: handle $PREFIX_all when parsing field list
- tests: fix ReportTests::test_ReportOpts_str() for JSON output
- snapm: add support for JSON reports to list commands
- report: add support for JSON output
- snapm: add snapset_name as a default field for snapshot reports
- report: add title argument to Report()
- report: remove unused 'private' Report argument
- report: fix field prefix handling and drop hardcoded snapshot_ prefix
- report: fix comment typos
- dist: add BuildRequires for boom-boot to snapm.spec
- snapm: don't use match statement for compatibility with py3.9
- dist: build for epel and centos-stream in .packit.yaml
- lvm2: fix unpacking of snapshot name fields in Lvm2Cow
- snapm: add 'plugin' subcommand to display info on available plugins
- snapm: rename snapshot cmd handler fns to better match command line
- doc: describe size policy for non-fixed sized snapshot types in snapm.8
- doc: add default --size-policy to README.md
- doc: describe size checks for non-fixed sized snapshots in README.md
- tests: add command-level size policy tests
- tests: add integration tests with default and per-mount size policy
- lvm2: apply SizePolicy checks to thin volumes
- doc: provide a better description of --nameprefixes in snapm.8
- lvm2: apply name length checks separately for Lvm2Cow/Lvm2Thin
- snapm: check for in-progress revert when creation snapshot sets
- snapm: add Bootable property to sets to indicate if boot configured
- snapm: add missing autoactivate state to SnapshotSet.__str__ and json
- snapm: use Manager.revert_snapset() for 'snapm snapset revert'
- snapm: split Manager.revert_snapset() out from revert_snapsets()
- snapm: warn user to reboot when reverting with an in-use origin
- snapm: add SnapshotSet.origin_mounted and Snapshot.origin_mounted
- snapm: rename local in Manager.rename_snapshot_set() revert->rollback
- snapm: include timestamp in SnapshotSet and Snapshot json
- snapm: handle zero values in snapm.size_fmt()
- snapm: use constants for properties and report fields