[blivet:master 19/21] Don't notify the kernel if it was tmpfs filesystem that was resized.

mulhern amulhern at redhat.com
Thu Jan 15 18:39:46 UTC 2015


The kernel should notice a resize of a tmpfs filesystem, since that type
of filesystem resides in the kernel's memory.

And, our current method of notifying the kernel will result in an
exception being raised in the case of tmpfs.

Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/formats/fs.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index 9effed6..dc4d8a9 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -519,7 +519,8 @@ class FS(DeviceFormat):
 
         # XXX must be a smarter way to do this
         self._size = self.targetSize
-        self.notifyKernel()
+        if not self.device == "tmpfs":
+            self.notifyKernel()
 
     def _getCheckArgs(self):
         argv = []
-- 
1.9.3



More information about the anaconda-patches mailing list