@@ -89,8 +89,7 @@ def create_image_file(filename, size, context=None):
89
89
90
90
:param filename: The pathname of the image file (a string).
91
91
:param size: How large the image file should be (see :func:`.coerce_size()`).
92
- :param context: An execution context created by :mod:`executor.contexts`
93
- (coerced using :func:`.coerce_context()`).
92
+ :param context: See :func:`.coerce_context()` for details.
94
93
:raises: :exc:`~exceptions.ValueError` when `size` is invalid,
95
94
:exc:`~executor.ExternalCommandFailed` when the command fails.
96
95
"""
@@ -108,8 +107,7 @@ def generate_key_file(filename, size=DEFAULT_KEY_SIZE, context=None):
108
107
:param filename: The pathname of the key file (a string).
109
108
:param size: How large the key file should be (see :func:`.coerce_size()`,
110
109
defaults to :data:`DEFAULT_KEY_SIZE`).
111
- :param context: An execution context created by :mod:`executor.contexts`
112
- (coerced using :func:`.coerce_context()`).
110
+ :param context: See :func:`.coerce_context()` for details.
113
111
:raises: :exc:`~executor.ExternalCommandFailed` when the command fails.
114
112
"""
115
113
context = coerce_context (context )
@@ -134,8 +132,7 @@ def create_encrypted_filesystem(device_file, key_file=None, context=None):
134
132
:param device_file: The pathname of the block special device or file (a string).
135
133
:param key_file: The pathname of the key file used to encrypt the
136
134
filesystem (a string or :data:`None`).
137
- :param context: An execution context created by :mod:`executor.contexts`
138
- (coerced using :func:`.coerce_context()`).
135
+ :param context: See :func:`.coerce_context()` for details.
139
136
:raises: :exc:`~executor.ExternalCommandFailed` when the command fails.
140
137
141
138
If no `key_file` is given the operator is prompted to choose a password.
@@ -164,8 +161,7 @@ def unlock_filesystem(device_file, target, key_file=None, options=None, context=
164
161
:data:`None` (in which case the default options are used).
165
162
Currently 'discard', 'readonly' and 'tries' are the only
166
163
supported options (other options are silently ignored).
167
- :param context: An execution context created by :mod:`executor.contexts`
168
- (coerced using :func:`.coerce_context()`).
164
+ :param context: See :func:`.coerce_context()` for details.
169
165
:raises: :exc:`~executor.ExternalCommandFailed` when the command fails.
170
166
171
167
If no `key_file` is given the operator is prompted to enter a password.
@@ -205,8 +201,7 @@ def lock_filesystem(target, context=None):
205
201
Lock a currently unlocked LUKS filesystem.
206
202
207
203
:param target: The mapped device name (a string).
208
- :param context: An execution context created by :mod:`executor.contexts`
209
- (coerced using :func:`.coerce_context()`).
204
+ :param context: See :func:`.coerce_context()` for details.
210
205
:raises: :exc:`~executor.ExternalCommandFailed` when the command fails.
211
206
"""
212
207
context = coerce_context (context )
@@ -220,8 +215,7 @@ def cryptdisks_start(target, context=None):
220
215
Execute :man:`cryptdisks_start` or emulate its functionality.
221
216
222
217
:param target: The mapped device name (a string).
223
- :param context: An execution context created by :mod:`executor.contexts`
224
- (coerced using :func:`.coerce_context()`).
218
+ :param context: See :func:`.coerce_context()` for details.
225
219
:raises: :exc:`~executor.ExternalCommandFailed` when a command fails,
226
220
:exc:`~exceptions.ValueError` when no entry in `/etc/crypttab`_
227
221
matches `target`.
@@ -255,8 +249,7 @@ def cryptdisks_stop(target, context=None):
255
249
Execute :man:`cryptdisks_stop` or emulate its functionality.
256
250
257
251
:param target: The mapped device name (a string).
258
- :param context: An execution context created by :mod:`executor.contexts`
259
- (coerced using :func:`.coerce_context()`).
252
+ :param context: See :func:`.coerce_context()` for details.
260
253
:raises: :exc:`~executor.ExternalCommandFailed` when a command fails,
261
254
:exc:`~exceptions.ValueError` when no entry in `/etc/crypttab`_
262
255
matches `target`.
0 commit comments