From d12166cf7b806b6e2079c33122e66806085b3013 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 7 Jun 2012 10:25:08 +0200 Subject: [PATCH] Wait for the correct device after formatting When creating a LUKS device, the object to wait on after mkfs (cleartext device-mapper) is not the same as we originally started with (crypto_LUKS device). Always wait on the object we called mkfs on. --- src/udiskslinuxblock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/udiskslinuxblock.c b/src/udiskslinuxblock.c index 146f19e..17e1fb2 100644 --- a/src/udiskslinuxblock.c +++ b/src/udiskslinuxblock.c @@ -2104,6 +2104,7 @@ handle_format (UDisksBlock *block, * trigger an event here */ udisks_linux_block_object_trigger_uevent (UDISKS_LINUX_BLOCK_OBJECT (object_to_mkfs)); + wait_data->object = object_to_mkfs; if (udisks_daemon_wait_for_object_sync (daemon, wait_for_filesystem, wait_data, -- 2.7.4