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
0f93a752
authored
Jan 27, 2021
by
Máhonfai Bálint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send size in update state in export and import
parent
6bbfb683
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
disk.py
+2
-2
No files found.
disk.py
View file @
0f93a752
...
@@ -285,7 +285,7 @@ class Disk(object):
...
@@ -285,7 +285,7 @@ class Disk(object):
task
.
update_state
(
task
.
update_state
(
task_id
=
parent_id
,
task_id
=
parent_id
,
state
=
task
.
AsyncResult
(
parent_id
)
.
state
,
state
=
task
.
AsyncResult
(
parent_id
)
.
state
,
meta
=
{
'percent'
:
percent
}
meta
=
{
'
size'
:
current_size
,
'
percent'
:
percent
}
)
)
with
magic
.
Magic
()
as
m
:
with
magic
.
Magic
()
as
m
:
...
@@ -344,7 +344,7 @@ class Disk(object):
...
@@ -344,7 +344,7 @@ class Disk(object):
task
.
update_state
(
task
.
update_state
(
task_id
=
parent_id
,
task_id
=
parent_id
,
state
=
task
.
AsyncResult
(
parent_id
)
.
state
,
state
=
task
.
AsyncResult
(
parent_id
)
.
state
,
meta
=
{
'percent'
:
percent
[
0
]}
meta
=
{
'
size'
:
monitor
.
bytes_read
,
'
percent'
:
percent
[
0
]}
)
)
with
open
(
exported_path
,
'rb'
)
as
exported_disk
:
with
open
(
exported_path
,
'rb'
)
as
exported_disk
:
...
...
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