Blame SOURCES/udisks-2.9.1-lvm2-Always-flush-interface-property-changes.patch

049be7
From 39d13907f712269bb9debd0fd8a0852347c98136 Mon Sep 17 00:00:00 2001
049be7
From: Tomas Bzatek <tbzatek@redhat.com>
049be7
Date: Fri, 26 Jun 2020 17:55:53 +0200
049be7
Subject: [PATCH 2/8] lvm2: Always flush interface property changes
049be7
049be7
---
049be7
 modules/lvm2/udiskslinuxlogicalvolume.c     | 3 +++
049be7
 modules/lvm2/udiskslinuxphysicalvolume.c    | 2 ++
049be7
 modules/lvm2/udiskslinuxvdovolume.c         | 2 ++
049be7
 modules/lvm2/udiskslinuxvolumegroup.c       | 3 +++
049be7
 modules/lvm2/udiskslinuxvolumegroupobject.c | 3 +++
049be7
 5 files changed, 13 insertions(+)
049be7
049be7
diff --git a/modules/lvm2/udiskslinuxlogicalvolume.c b/modules/lvm2/udiskslinuxlogicalvolume.c
049be7
index 373cee2e..c0f074d8 100644
049be7
--- a/modules/lvm2/udiskslinuxlogicalvolume.c
049be7
+++ b/modules/lvm2/udiskslinuxlogicalvolume.c
049be7
@@ -229,6 +229,8 @@ udisks_linux_logical_volume_update (UDisksLinuxLogicalVolume     *logical_volume
049be7
       logical_volume->needs_udev_hack = FALSE;
049be7
       g_free (dev_file);
049be7
     }
049be7
+
049be7
+  g_dbus_interface_skeleton_flush (G_DBUS_INTERFACE_SKELETON (iface));
049be7
 }
049be7
 
049be7
 void
049be7
@@ -248,6 +250,7 @@ udisks_linux_logical_volume_update_etctabs (UDisksLinuxLogicalVolume     *logica
049be7
   udisks_logical_volume_set_child_configuration (iface,
049be7
                                                  udisks_linux_find_child_configuration (daemon,
049be7
                                                                                         uuid));
049be7
+  g_dbus_interface_skeleton_flush (G_DBUS_INTERFACE_SKELETON (iface));
049be7
 }
049be7
 
049be7
 /* ---------------------------------------------------------------------------------------------------- */
049be7
diff --git a/modules/lvm2/udiskslinuxphysicalvolume.c b/modules/lvm2/udiskslinuxphysicalvolume.c
049be7
index 27043030..36e7c322 100644
049be7
--- a/modules/lvm2/udiskslinuxphysicalvolume.c
049be7
+++ b/modules/lvm2/udiskslinuxphysicalvolume.c
049be7
@@ -143,6 +143,8 @@ udisks_linux_physical_volume_update   (UDisksLinuxPhysicalVolume    *physical_vo
049be7
       udisks_physical_volume_set_size (iface, pv_info->pv_size);
049be7
       udisks_physical_volume_set_free_size (iface, pv_info->pv_free);
049be7
     }
049be7
+
049be7
+  g_dbus_interface_skeleton_flush (G_DBUS_INTERFACE_SKELETON (iface));
049be7
 }
049be7
 
049be7
 /* ---------------------------------------------------------------------------------------------------- */
049be7
diff --git a/modules/lvm2/udiskslinuxvdovolume.c b/modules/lvm2/udiskslinuxvdovolume.c
049be7
index 317eddc2..430e2814 100644
049be7
--- a/modules/lvm2/udiskslinuxvdovolume.c
049be7
+++ b/modules/lvm2/udiskslinuxvdovolume.c
049be7
@@ -177,6 +177,8 @@ udisks_linux_vdo_volume_update (UDisksLinuxVDOVolume         *vdo_volume,
049be7
 
049be7
   udisks_vdo_volume_set_compression (iface, vdo_info->compression);
049be7
   udisks_vdo_volume_set_deduplication (iface, vdo_info->deduplication);
049be7
+
049be7
+  g_dbus_interface_skeleton_flush (G_DBUS_INTERFACE_SKELETON (iface));
049be7
 }
049be7
 
049be7
 /* ---------------------------------------------------------------------------------------------------- */
049be7
diff --git a/modules/lvm2/udiskslinuxvolumegroup.c b/modules/lvm2/udiskslinuxvolumegroup.c
049be7
index aad2193e..3fbf6f02 100644
049be7
--- a/modules/lvm2/udiskslinuxvolumegroup.c
049be7
+++ b/modules/lvm2/udiskslinuxvolumegroup.c
049be7
@@ -136,11 +136,14 @@ udisks_linux_volume_group_update (UDisksLinuxVolumeGroup *volume_group,
049be7
                                   gboolean               *needs_polling_ret)
049be7
 {
049be7
   UDisksVolumeGroup *iface = UDISKS_VOLUME_GROUP (volume_group);
049be7
+
049be7
   udisks_volume_group_set_name (iface, vg_info->name);
049be7
   udisks_volume_group_set_uuid (iface, vg_info->uuid);
049be7
   udisks_volume_group_set_size (iface, vg_info->size);
049be7
   udisks_volume_group_set_free_size (iface, vg_info->free);
049be7
   udisks_volume_group_set_extent_size (iface, vg_info->extent_size);
049be7
+
049be7
+  g_dbus_interface_skeleton_flush (G_DBUS_INTERFACE_SKELETON (iface));
049be7
 }
049be7
 
049be7
 /* ---------------------------------------------------------------------------------------------------- */
049be7
diff --git a/modules/lvm2/udiskslinuxvolumegroupobject.c b/modules/lvm2/udiskslinuxvolumegroupobject.c
049be7
index 50e9c640..e3bc8dfc 100644
049be7
--- a/modules/lvm2/udiskslinuxvolumegroupobject.c
049be7
+++ b/modules/lvm2/udiskslinuxvolumegroupobject.c
049be7
@@ -442,6 +442,7 @@ block_object_update_lvm_iface (UDisksLinuxBlockObject *object,
049be7
 
049be7
   udisks_linux_block_lvm2_update (UDISKS_LINUX_BLOCK_LVM2 (iface_block_lvm2), object);
049be7
   udisks_block_lvm2_set_logical_volume (iface_block_lvm2, lv_obj_path);
049be7
+  g_dbus_interface_skeleton_flush (G_DBUS_INTERFACE_SKELETON (iface_block_lvm2));
049be7
 }
049be7
 
049be7
 static void
049be7
@@ -456,6 +457,7 @@ lv_object_update_block_path (UDisksLinuxBlockObject       *block_object,
049be7
     {
049be7
       block_objpath = g_dbus_object_get_object_path (G_DBUS_OBJECT (block_object));
049be7
       udisks_logical_volume_set_block_device (UDISKS_LOGICAL_VOLUME (lv), block_objpath);
049be7
+      g_dbus_interface_skeleton_flush (G_DBUS_INTERFACE_SKELETON (lv));
049be7
     }
049be7
 }
049be7
 
049be7
@@ -695,6 +697,7 @@ update_vg (GObject      *source_obj,
049be7
   bd_lvm_vgdata_free (vg_info);
049be7
   lv_list_free (lvs);
049be7
 
049be7
+  g_dbus_interface_skeleton_flush (G_DBUS_INTERFACE_SKELETON (object->iface_volume_group));
049be7
   g_object_unref (object);
049be7
 }
049be7
 
049be7
-- 
049be7
2.26.2
049be7