diff options
author | Mike Fulbright <msf@redhat.com> | 2001-08-09 01:53:48 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-08-09 01:53:48 +0000 |
commit | e56a3730f68c003a52e16600feee47a90fba6b07 (patch) | |
tree | 6689ea7fc3307e737ac2a297a10554a3b40f4b72 /isys/isys.py | |
parent | f740a0591ae5039847c25fbbf273918ac85f8578 (diff) | |
download | anaconda-e56a3730f68c003a52e16600feee47a90fba6b07.tar.gz anaconda-e56a3730f68c003a52e16600feee47a90fba6b07.tar.xz anaconda-e56a3730f68c003a52e16600feee47a90fba6b07.zip |
restore fstab if we started to migrate and found there was not enough space to upgrade
Diffstat (limited to 'isys/isys.py')
-rw-r--r-- | isys/isys.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/isys/isys.py b/isys/isys.py index a923d67d7..79e39b9ab 100644 --- a/isys/isys.py +++ b/isys/isys.py @@ -343,6 +343,15 @@ def ext2IsDirty(device): os.unlink("/tmp/disk") return label +def ext2HasJournal(device, makeDevNode = 1): + if makeDevNode: + makeDevInode(device, "/tmp/disk") + hasjournal = _isys.e2hasjournal("/tmp/disk"); + os.unlink("/tmp/disk") + else: + hasjournal = _isys.e2hasjournal(device); + return hasjournal + def ejectCdrom(device): makeDevInode(device, "/tmp/cdrom") fd = os.open("/tmp/cdrom", os.O_RDONLY) |