[PATCH 3/6] Override _setDevice and _getDevice in NFS.

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

 



The base class expects a device to start with "/dev/", which obviously an
NFS device does not.
---
 storage/formats/fs.py |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index f53dd99..904bcfc 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -1018,6 +1018,17 @@ class NFS(FS):
     @property
     def mountable(self):
         return False
+
+    def _setDevice(self, devspec):
+        self._deviceCheck(devspec)
+        self._device = devspec
+
+    def _getDevice(self):
+        return self._device
+
+    device = property(lambda f: f._getDevice(),
+                      lambda f,d: f._setDevice(d),
+                      doc="Full path the device this format occupies")
  
 register_device_format(NFS)
 
-- 
1.6.1.3

_______________________________________________
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