diff options
author | Matt Wilson <msw@redhat.com> | 2001-06-22 18:10:03 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-06-22 18:10:03 +0000 |
commit | 5b67908984a890f015fb893b9a1c98548e9e7f06 (patch) | |
tree | e2777c46c2f325706f426edaf272527e98a9f0fe /fsset.py | |
parent | 3a4a525f1646dcb7e39ee330cd20af9faaeb1c99 (diff) | |
download | anaconda-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.py | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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: |