Skip to content

Commit

Permalink
Merge pull request storaged-project#1262 from vojtechtrefny/master_pv…
Browse files Browse the repository at this point in the history
…remove-udev-trigger

Add a sync udev trigger after removing PV signatures
  • Loading branch information
vojtechtrefny authored Feb 22, 2024
2 parents c17f99e + 31ea3d8 commit 1e843be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/lvm2/udiskslinuxvolumegroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ handle_delete (UDisksVolumeGroup *_group,
udisks_warning ("Failed to wipe PV %s: %s", device_file, error->message);
g_clear_error (&error);
}
else
udisks_linux_block_object_trigger_uevent_sync (l->data, UDISKS_DEFAULT_WAIT_TIMEOUT);

if (bd_lvm_is_tech_avail (BD_LVM_TECH_DEVICES, 0, NULL) &&
!bd_lvm_devices_delete (device_file, NULL, NULL, &error))
{
Expand Down

0 comments on commit 1e843be

Please sign in to comment.