summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-05-07 00:35:10 +0000
committerJeremy Katz <katzj@redhat.com>2002-05-07 00:35:10 +0000
commit512de231532ba2690940cfd947c0a8eaeeffe199 (patch)
treed6c5afc90378f9f2183d1325f5ff9ed29b716dd3 /fsset.py
parentb5c7e1307f40563a6f78a47d3af29d4407e5ea3d (diff)
downloadanaconda-512de231532ba2690940cfd947c0a8eaeeffe199.tar.gz
anaconda-512de231532ba2690940cfd947c0a8eaeeffe199.tar.xz
anaconda-512de231532ba2690940cfd947c0a8eaeeffe199.zip
display which devices were actually dirty (#57166)
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/fsset.py b/fsset.py
index 3cad41c90..4d5963055 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1254,13 +1254,14 @@ class FileSystemSet:
return space
def hasDirtyFilesystems(self, mountpoint):
+ ret = []
if self.rootOnLoop():
entry = self.getEntryByMountPoint('/')
mountLoopbackRoot(entry.device.host[5:], skipMount = 1,
mountpoint = mountpoint)
dirty = isys.ext2IsDirty("loop1")
unmountLoopbackRoot(skipMount = 1, mountpoint = mountpoint)
- if dirty: return 1
+ if dirty: return [ "loop" ]
for entry in self.entries:
# XXX - multifsify, virtualize isdirty per fstype
@@ -1269,9 +1270,9 @@ class FileSystemSet:
if isys.ext2IsDirty(entry.device.getDevice()):
log("%s is a dirty ext2 partition" % entry.device.getDevice())
- return 1
+ ret.append(entry.device.getDevice())
- return 0
+ return ret
def umountFilesystems(self, instPath, ignoreErrors = 0):
# XXX remove special case