mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
e59027e4f7
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.) |
||
---|---|---|
.. | ||
bcache-utils.c | ||
bcache.c | ||
bcache.h | ||
dev_util.c | ||
dev-cache.c | ||
dev-cache.h | ||
dev-dasd.c | ||
dev-ext-udev-constants.h | ||
dev-ext.c | ||
dev-io.c | ||
dev-luks.c | ||
dev-lvm1-pool.c | ||
dev-md.c | ||
dev-mpath.c | ||
dev-swap.c | ||
dev-type.c | ||
dev-type.h | ||
device_id.c | ||
device_id.h | ||
device-types.h | ||
device.h | ||
filesystem.c | ||
filesystem.h | ||
online.c | ||
online.h | ||
parse_vpd.c |