From 75d73ddb85422efe60ffa5c208fa9ff8a16294a3 Mon Sep 17 00:00:00 2001 From: Alexander Alexeev Date: Wed, 12 Oct 2022 20:11:30 +0300 Subject: [PATCH] define mount/umount BE functions --- bectl.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bectl.py b/bectl.py index 82f98d0..a5ec28d 100644 --- a/bectl.py +++ b/bectl.py @@ -40,6 +40,18 @@ def rename_be(origBeName, newBeName): assert bectl_process.returncode == 0 +def mount_be(BeName): + cmd_list = ['bectl', 'mount', BeName] + bectl_process = run(cmd_list) + assert bectl_process.returncode == 0 + + +def umount_be(BeName): + cmd_list = ['bectl', 'umount', BeName] + bectl_process = run(cmd_list) + assert bectl_process.returncode == 0 + + def get_be_list(): cmd_list = ['bectl', 'list'] bectl_output = Popen(