summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rwxr-xr-xclient/bin/filesystem.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/client/bin/filesystem.py b/client/bin/filesystem.py
index 6b8513a2..a4c697b4 100755
--- a/client/bin/filesystem.py
+++ b/client/bin/filesystem.py
@@ -78,18 +78,17 @@ class filesystem:
system("yes | " + mkfs_cmd)
except:
self.job.record("FAIL " + mkfs_cmd)
+ raise
else:
self.job.record("GOOD " + mkfs_cmd)
self.fstype = fstype
-
def fsck(self, args = ''):
fsck = 'fsck %s %s' % (self.device, args)
print fsck
sys.stdout.flush()
- ret = system(fsck, ignorestatus=1)
- return not ret
+ system(fsck)
def mount(self, mountpoint = None, args = ''):
@@ -125,7 +124,13 @@ class filesystem:
umount_cmd = "umount " + handle
print umount_cmd
sys.stdout.flush()
- system(umount_cmd)
+ try:
+ system(umount_cmd)
+ except:
+ self.job.record("FAIL " + umount_cmd)
+ raise
+ else:
+ self.job.record("GOOD " + umount_cmd)
def get_io_scheduler_list(self, device_name):