MCPcopy Create free account
hub / github.com/apache/cloudstack / format_volume_to_ext3

Function format_volume_to_ext3

tools/marvin/marvin/lib/utils.py:193–200  ·  view source on GitHub ↗

Format attached storage to ext3 fs

(ssh_client, device="/dev/sda")

Source from the content-addressed store, hash-verified

191
192
193def format_volume_to_ext3(ssh_client, device="/dev/sda"):
194 """Format attached storage to ext3 fs"""
195 cmds = [
196 "echo -e 'n\np\n1\n\n\nw' | fdisk %s" % device,
197 "mkfs.ext3 %s1" % device,
198 ]
199 for c in cmds:
200 ssh_client.execute(c)
201
202
203def fetch_api_client(config_file='datacenterCfg'):

Callers 4

createChecksumFunction · 0.90
test_02_attach_volumeMethod · 0.90

Calls 1

executeMethod · 0.65

Tested by 3

test_02_attach_volumeMethod · 0.72