Revision 6613661a lib/backend.py
b/lib/backend.py | ||
---|---|---|
2964 | 2964 |
(prefix, utils.TimestampForFilename()))) |
2965 | 2965 |
|
2966 | 2966 |
|
2967 |
def StartImportExportDaemon(mode, opts, host, port, instance, ieio, ieioargs): |
|
2967 |
def StartImportExportDaemon(mode, opts, host, port, instance, component, |
|
2968 |
ieio, ieioargs): |
|
2968 | 2969 |
"""Starts an import or export daemon. |
2969 | 2970 |
|
2970 | 2971 |
@param mode: Import/output mode |
... | ... | |
2976 | 2977 |
@param port: Remote port for export (None for import) |
2977 | 2978 |
@type instance: L{objects.Instance} |
2978 | 2979 |
@param instance: Instance object |
2980 |
@type component: string |
|
2981 |
@param component: which part of the instance is transferred now, |
|
2982 |
e.g. 'disk/0' |
|
2979 | 2983 |
@param ieio: Input/output type |
2980 | 2984 |
@param ieioargs: Input/output arguments |
2981 | 2985 |
|
... | ... | |
3015 | 3019 |
if not os.path.exists(i): |
3016 | 3020 |
_Fail("File '%s' does not exist" % i) |
3017 | 3021 |
|
3018 |
status_dir = _CreateImportExportStatusDir(prefix)
|
|
3022 |
status_dir = _CreateImportExportStatusDir("%s-%s" % (prefix, component))
|
|
3019 | 3023 |
try: |
3020 | 3024 |
status_file = utils.PathJoin(status_dir, _IES_STATUS_FILE) |
3021 | 3025 |
pid_file = utils.PathJoin(status_dir, _IES_PID_FILE) |
Also available in: Unified diff