summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-06-22 18:10:03 +0000
committerMatt Wilson <msw@redhat.com>2001-06-22 18:10:03 +0000
commit5b67908984a890f015fb893b9a1c98548e9e7f06 (patch)
treee2777c46c2f325706f426edaf272527e98a9f0fe /fsset.py
parent3a4a525f1646dcb7e39ee330cd20af9faaeb1c99 (diff)
downloadanaconda-5b67908984a890f015fb893b9a1c98548e9e7f06.tar.gz
anaconda-5b67908984a890f015fb893b9a1c98548e9e7f06.tar.xz
anaconda-5b67908984a890f015fb893b9a1c98548e9e7f06.zip
oops, I put that change in fstab.py
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/fsset.py b/fsset.py
index 98127ee95..e7c72470d 100644
--- a/fsset.py
+++ b/fsset.py
@@ -570,6 +570,23 @@ class FileSystemSet:
space.sort(spaceSort)
return space
+ def hasDirtyFilesystems(self):
+ if self.rootOnLoop():
+ (rootDev, rootFs) = self.getRootDevice()
+ mountLoopbackRoot(rootDev, skipMount = 1)
+ dirty = isys.ext2IsDirty("loop1")
+ unmountLoopbackRoot(skipMount = 1)
+ if dirty: return 1
+
+ for entry in self.entries:
+ # XXX - multifsify, virtualize isdirty per fstype
+ if fsystem != "ext2": continue
+ if doFormat: continue
+
+ if isys.ext2IsDirty(entry.device.getDevice()): return 1
+
+ return 0
+
def umountFilesystems(self, instPath, ignoreErrors = 0):
# XXX remove special case
try: