Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
storagedriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
4
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
095e35c7
authored
Mar 13, 2014
by
Guba Sándor
Committed by
Őry Máté
Mar 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not call external command for symlinking
parent
d167321e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
disk.py
+5
-6
No files found.
disk.py
View file @
095e35c7
...
...
@@ -202,18 +202,17 @@ class Disk(object):
raise
Exception
(
'Image Base does not exists:
%
s'
%
self
.
get_base
())
# Build list of Strings as command parameters
if
self
.
format
==
'iso'
:
cmdline
=
[
'ln'
,
'-s'
,
self
.
get_base
(),
self
.
get_path
()]
os
.
symlink
(
self
.
get_base
(),
self
.
get_path
())
elif
self
.
format
==
'raw'
:
raise
NotImplemented
()
else
:
cmdline
=
[
'qemu-img'
,
'create'
,
'-b'
,
self
.
get_base
(),
'-f'
,
self
.
format
,
self
.
get_path
()]
# Call subprocess
subprocess
.
check_output
(
cmdline
)
# Call subprocess
subprocess
.
check_output
(
cmdline
)
def
merge
(
self
,
new_disk
):
''' Merging a new_disk from the actual disk and its base.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment