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

Re: [PATCH] Don't drop discovered format with unknown devices when parsing fstab.



On 05/04/2009 01:48 PM, David Lehman wrote:
This is just a clean-up for consistency.
---
  storage/__init__.py |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index d7b53b6..01ed14e 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1335,9 +1335,9 @@ class FSSet(object):
              format = getFormat(fstype)
              if devspec == "none" or \
                 isinstance(format, get_device_format_class("nodev")):
-                device = NoDevice(format)
+                device = NoDevice(format=format)
              else:
-                device = StorageDevice(devspec)
+                device = StorageDevice(devspec, format=format)

          if device is None:
              log.error("failed to resolve %s (%s) from fstab" % (devspec,

Looks good.

--
David Cantrell <dcantrell redhat com>
Red Hat / Honolulu, HI


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