Revision 83816869
b/lib/build/rpc_definitions.py | ||
---|---|---|
342 | 342 |
] |
343 | 343 |
|
344 | 344 |
CALLS = { |
345 |
"RpcClientDefault": (_IMPEXP_CALLS + _X509_CALLS + _OS_CALLS + _NODE_CALLS), |
|
345 |
"RpcClientDefault": (_IMPEXP_CALLS + _X509_CALLS + _OS_CALLS + _NODE_CALLS + |
|
346 |
_FILE_STORAGE_CALLS), |
|
346 | 347 |
} |
b/lib/rpc.py | ||
---|---|---|
1336 | 1336 |
return self._MultiNodeCall(node_list, "test_delay", [duration], |
1337 | 1337 |
read_timeout=int(duration + 5)) |
1338 | 1338 |
|
1339 |
@_RpcTimeout(_TMO_FAST) |
|
1340 |
def call_file_storage_dir_create(self, node, file_storage_dir): |
|
1341 |
"""Create the given file storage directory. |
|
1342 |
|
|
1343 |
This is a single-node call. |
|
1344 |
|
|
1345 |
""" |
|
1346 |
return self._SingleNodeCall(node, "file_storage_dir_create", |
|
1347 |
[file_storage_dir]) |
|
1348 |
|
|
1349 |
@_RpcTimeout(_TMO_FAST) |
|
1350 |
def call_file_storage_dir_remove(self, node, file_storage_dir): |
|
1351 |
"""Remove the given file storage directory. |
|
1352 |
|
|
1353 |
This is a single-node call. |
|
1354 |
|
|
1355 |
""" |
|
1356 |
return self._SingleNodeCall(node, "file_storage_dir_remove", |
|
1357 |
[file_storage_dir]) |
|
1358 |
|
|
1359 |
@_RpcTimeout(_TMO_FAST) |
|
1360 |
def call_file_storage_dir_rename(self, node, old_file_storage_dir, |
|
1361 |
new_file_storage_dir): |
|
1362 |
"""Rename file storage directory. |
|
1363 |
|
|
1364 |
This is a single-node call. |
|
1365 |
|
|
1366 |
""" |
|
1367 |
return self._SingleNodeCall(node, "file_storage_dir_rename", |
|
1368 |
[old_file_storage_dir, new_file_storage_dir]) |
|
1369 |
|
|
1370 | 1339 |
@classmethod |
1371 | 1340 |
@_RpcTimeout(_TMO_URGENT) |
1372 | 1341 |
def call_jobqueue_update(cls, node_list, address_list, file_name, content): |
Also available in: Unified diff