Re: [PATCH] Get the UUID of each md array we create. (#491796)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Approved.

On 03/24/2009 02:23 PM, David Lehman wrote:
---
  storage/devices.py |    7 ++++---
  1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index f8aaac2..2f1319e 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -107,7 +107,7 @@ import platform

  from errors import *
  from iutil import log_method_call, notify_kernel, numeric_type
-from udev import udev_settle
+from udev import *
  from formats import get_device_format_class, getFormat

  import gettext
@@ -2287,8 +2287,9 @@ class MDRaidArrayDevice(StorageDevice):
          # the array is automatically activated upon creation, but...
          self.setup()
          udev_settle()
-
-        # FIXME: we need to find our UUID now that the array exists
+        self.updateSysfsPath()
+        info = udev_get_block_device("/sys%s" % self.sysfsPath)
+        self.uuid = udev_device_get_md_uuid(info)

      @property
      def formatArgs(self):


--
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux