1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-08 08:58:50 +03:00
David Teigland e59027e4f7 devices file: back up each version
Create backup copies of system.devices in /etc/lvm/devices/backup
named system.devices-YYYYMMDD.HHMMSS.NNNN.  NNNN is the version
counter from the file.

Each time that an lvm command writes a new system.devices file,
it also writes the same file in the backup directory.

A new comment line is added to system.devices with HASH=<num>
where <num> is a crc calculated from the uncommented lines in
system.devices.  This lets lvm detect if the file has been
modified outside of lvm itself.

If system.devices is edited directly, the next time a command
reads the file, the crc will not match the HASH value.  The
command will then rewrite system.devices with the correct HASH
value, and create a backup reflecting the edits.

A default limit of 50 backup files is kept, configurable by
lvm.conf devicesfile_backup_limit (set to 0 to disable backups.)
2024-02-15 11:40:37 -06:00
..
2024-02-05 12:13:44 -06:00
2016-01-21 12:11:37 +01:00
2016-01-21 12:11:37 +01:00
2023-02-10 17:50:27 +01:00
2023-08-14 17:02:11 +02:00
2024-01-17 17:30:10 +01:00
2022-09-09 16:18:55 -05:00
2020-10-20 22:22:52 +02:00
2020-10-20 22:22:52 +02:00
2020-10-20 22:22:52 +02:00
2020-10-20 22:22:52 +02:00
2016-01-21 12:11:37 +01:00
2023-10-17 16:49:23 +02:00
2018-12-04 14:06:46 -06:00
2022-09-09 16:18:55 -05:00
2023-07-14 16:52:51 +02:00
2023-07-15 11:05:35 +02:00
2023-10-02 14:13:12 +02:00
2023-07-13 21:31:18 +02:00
2016-01-21 12:11:37 +01:00
2019-06-25 15:39:08 -05:00
2024-01-10 14:02:22 +01:00
2016-01-21 12:11:37 +01:00
2018-06-13 14:14:03 -05:00
2016-01-21 12:11:37 +01:00
2024-01-10 14:02:22 +01:00
2024-01-10 14:02:22 +01:00
2023-09-12 14:39:14 +02:00
2023-02-22 16:19:48 -06:00
2023-05-06 20:38:57 +02:00
2021-08-16 11:31:15 -05:00
2023-07-15 11:05:35 +02:00