Revision cad0723b lib/server/noded.py
b/lib/server/noded.py | ||
---|---|---|
1 | 1 |
# |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2006, 2007, 2010, 2011 Google Inc. |
|
4 |
# Copyright (C) 2006, 2007, 2010, 2011, 2012 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
332 | 332 |
"""Grow a stack of devices. |
333 | 333 |
|
334 | 334 |
""" |
335 |
if len(params) < 4: |
|
336 |
raise ValueError("Received only 3 parameters in blockdev_grow," |
|
337 |
" old master?") |
|
335 | 338 |
cfbd = objects.Disk.FromDict(params[0]) |
336 | 339 |
amount = params[1] |
337 | 340 |
dryrun = params[2] |
338 |
return backend.BlockdevGrow(cfbd, amount, dryrun) |
|
341 |
backingstore = params[3] |
|
342 |
return backend.BlockdevGrow(cfbd, amount, dryrun, backingstore) |
|
339 | 343 |
|
340 | 344 |
@staticmethod |
341 | 345 |
def perspective_blockdev_close(params): |
Also available in: Unified diff