neil / rpms / udisks2

Forked from rpms/udisks2 a year ago
Clone

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

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