Skip to content

Commit

Permalink
udiskslinuxdriveata: Trigger uevent after enabling/disabling SMART
Browse files Browse the repository at this point in the history
Now that this is read from udev, it needs to be poked explicitly.
  • Loading branch information
tbzatek committed Sep 30, 2024
1 parent 9390287 commit 464db39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/udiskslinuxdriveata.c
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,9 @@ handle_smart_set_enabled (UDisksDriveAta *_drive,
}
}

udisks_linux_block_object_trigger_uevent_sync (UDISKS_LINUX_BLOCK_OBJECT (block_object),
UDISKS_DEFAULT_WAIT_TIMEOUT);

/* Reread new IDENTIFY data */
if (!udisks_linux_device_reprobe_sync (device,
udisks_linux_provider_get_udev_client (provider),
Expand Down

0 comments on commit 464db39

Please sign in to comment.