Revision c032b2ce lib/storage/filestorage.py
b/lib/storage/filestorage.py | ||
---|---|---|
167 | 167 |
The unique_id for the file device is a (file_driver, file_path) tuple. |
168 | 168 |
|
169 | 169 |
""" |
170 |
def __init__(self, unique_id, children, size, params, dyn_params): |
|
170 |
def __init__(self, unique_id, children, size, params, dyn_params, *args):
|
|
171 | 171 |
"""Initalizes a file device backend. |
172 | 172 |
|
173 | 173 |
""" |
174 | 174 |
if children: |
175 | 175 |
raise errors.BlockDeviceError("Invalid setup for file device") |
176 | 176 |
super(FileStorage, self).__init__(unique_id, children, size, params, |
177 |
dyn_params) |
|
177 |
dyn_params, *args)
|
|
178 | 178 |
if not isinstance(unique_id, (tuple, list)) or len(unique_id) != 2: |
179 | 179 |
raise ValueError("Invalid configuration data %s" % str(unique_id)) |
180 | 180 |
self.driver = unique_id[0] |
Also available in: Unified diff