mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
5ac81657e5
Some signatures are spread around the disk in several copies, mainly for backup. Make libblkid to detect these extra copies - there was missing "blkid_probe_step_back" fn call after successful wipe of previous signature copy. An example with FAT table which has copies: $ mkfs.vfat /dev/sda1 Before this patch: $ pvcreate /dev/sda1 WARNING: vfat signature detected on /dev/sda1 at offset 54. Wipe it? [y/n]: y Wiping vfat signature on /dev/sda1. Physical volume "/dev/sda1" successfully created With this patch applied: $ pvcreate /dev/sda1 WARNING: vfat signature detected on /dev/sda1 at offset 54. Wipe it? [y/n]: y Wiping vfat signature on /dev/sda1. WARNING: vfat signature detected on /dev/sda1 at offset 0. Wipe it? [y/n]: y Wiping vfat signature on /dev/sda1. WARNING: vfat signature detected on /dev/sda1 at offset 510. Wipe it? [y/n]: y Wiping vfat signature on /dev/sda1. Physical volume "/dev/sda1" successfully created