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 11, 2024
1 parent 98d2896 commit 78c1e3a
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 78c1e3a

Please sign in to comment.