1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-09 12:58:41 +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-15 11:40:37 -06:00
2024-02-15 11:40:37 -06:00
2023-07-13 21:31:18 +02:00
2018-06-08 13:40:53 +01:00
2023-10-18 02:19:15 +02:00
2018-06-08 13:40:53 +01:00
2023-09-26 01:23:00 +02:00
2023-07-17 12:44:23 +02:00
2023-07-15 11:05:06 +02:00
2023-09-03 22:03:33 +02:00
2021-03-19 23:21:18 +01:00
2021-02-08 23:53:41 +01:00
2018-06-08 13:40:53 +01:00
2022-08-30 13:54:19 +02:00
2018-06-08 13:40:53 +01:00
2022-02-07 20:02:11 +01:00
2023-06-29 13:10:42 +02:00
2018-06-08 13:40:53 +01:00