Debian Codegraph @

po/ru/man4/loop.4.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Artyom Kunyov <[email protected]>, 2012.
5 # Azamat Hackimov <[email protected]>, 2012, 2017.
6 # Dmitry Bolkhovskikh <[email protected]>, 2017.
7 # Katrin Kutepova <[email protected]>, 2018.
8 # Konstantin Shvaykovskiy <[email protected]>, 2012.
9 # Yuri Kozlov <[email protected]>, 2011-2019.
10 # Иван Павлов <[email protected]>, 2017, 2019.
11 msgid ""
12 msgstr ""
13 "Project-Id-Version: manpages-l10n\n"
14 "POT-Creation-Date: 2026-06-05 06:30+0200\n"
15 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
16 "Last-Translator: Yuri Kozlov <[email protected]>\n"
17 "Language-Team: Russian <[email protected]>\n"
18 "Language: ru\n"
19 "MIME-Version: 1.0\n"
20 "Content-Type: text/plain; charset=UTF-8\n"
21 "Content-Transfer-Encoding: 8bit\n"
22 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
23 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
24 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
25 "X-Generator: Lokalize 2.0\n"
26
27 #. type: TH
28 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
29 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
30 #, no-wrap
31 msgid "loop"
32 msgstr "loop"
33
34 #. type: TH
35 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
36 #: opensuse-tumbleweed
37 #, no-wrap
38 msgid "2026-02-08"
39 msgstr "8 февраля 2026 г."
40
41 #. type: TH
42 #: archlinux debian-unstable
43 #, fuzzy, no-wrap
44 #| msgid "Linux man-pages 6.17"
45 msgid "Linux man-pages 6.18"
46 msgstr "Справочные страницы Linux 6.17"
47
48 #. type: SH
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 #, no-wrap
52 msgid "NAME"
53 msgstr "НАИМЕНОВАНИЕ"
54
55 #. type: Plain text
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 msgid "loop, loop-control - loop devices"
59 msgstr "loop, loop-control - закольцованные устройства"
60
61 #. type: SH
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 #, no-wrap
65 msgid "SYNOPSIS"
66 msgstr "СИНТАКСИС"
67
68 #. type: Plain text
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "#include E<lt>linux/loop.hE<gt>\n"
73 msgstr "#include E<lt>linux/loop.hE<gt>\n"
74
75 #. type: SH
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "DESCRIPTION"
80 msgstr "ОПИСАНИЕ"
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 msgid ""
86 "The loop device is a block device that maps its data blocks not to a "
87 "physical device such as a hard disk or optical disk drive, but to the blocks "
88 "of a regular file in a filesystem or to another block device. This can be "
89 "useful for example to provide a block device for a filesystem image stored "
90 "in a file, so that it can be mounted with the B<mount>(8) command. You "
91 "could do"
92 msgstr ""
93 "Закольцованное устройство — это блочное устройство, которое отображает блоки "
94 "данных обычного файла в файловой системе или другое блочное устройство. Это "
95 "может быть полезно, например, для получения образа файловой системы, "
96 "хранящегося в файле, в виде блочного устройства, которое может быть "
97 "смонтировано с помощью команды B<mount>(8). Это можно сделать так:"
98
99 #. type: Plain text
100 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
101 #: opensuse-tumbleweed
102 #, fuzzy, no-wrap
103 #| msgid ""
104 #| "$ B<dd if=/dev/zero of=file.img bs=1MiB count=10>\n"
105 #| "$ B<sudo losetup /dev/loop4 file.img>\n"
106 #| "$ B<sudo mkfs -t ext4 /dev/loop4>\n"
107 #| "$ B<sudo mkdir /myloopdev>\n"
108 #| "$ B<sudo mount /dev/loop4 /myloopdev>\n"
109 msgid ""
110 "$B< dd if=/dev/zero of=file.img bs=1MiB count=10>;\n"
111 "$B< sudo losetup /dev/loop4 file.img>;\n"
112 "$B< sudo mkfs -t ext4 /dev/loop4>;\n"
113 "$B< sudo mkdir /myloopdev>;\n"
114 "$B< sudo mount /dev/loop4 /myloopdev>;\n"
115 msgstr ""
116 "$ B<dd if=/dev/zero of=file.img bs=1MiB count=10>\n"
117 "$ B<sudo losetup /dev/loop4 file.img>\n"
118 "$ B<sudo mkfs -t ext4 /dev/loop4>\n"
119 "$ B<sudo mkdir /myloopdev>\n"
120 "$ B<sudo mount /dev/loop4 /myloopdev>\n"
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 msgid "See B<losetup>(8) for another example."
126 msgstr "Другой пример смотрите в B<losetup>(8)."
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 msgid ""
132 "A transfer function can be specified for each loop device for encryption and "
133 "decryption purposes."
134 msgstr ""
135 "Для шифрования и расшифровки каждому закольцованному устройству может быть "
136 "назначена функция обмена."
137
138 #. type: Plain text
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 msgid ""
142 "The following B<ioctl>(2) operations are provided by the loop block device:"
143 msgstr ""
144 "Для закольцованного блочного устройства доступны следующие операции "
145 "B<ioctl>(2):"
146
147 #. type: TP
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 #, no-wrap
151 msgid "B<LOOP_SET_FD>"
152 msgstr "B<LOOP_SET_FD>"
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 msgid ""
158 "Associate the loop device with the open file whose file descriptor is passed "
159 "as the (third) B<ioctl>(2) argument."
160 msgstr ""
161 "Связывает закольцованное устройство с открытым файлом, чей файловый "
162 "дескриптор передаётся в третьем аргументе B<ioctl>(2)."
163
164 #. type: TP
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 #, no-wrap
168 msgid "B<LOOP_CLR_FD>"
169 msgstr "B<LOOP_CLR_FD>"
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid "Disassociate the loop device from any file descriptor."
175 msgstr "Отвязывает закольцованное устройство от файлового дескриптора."
176
177 #. type: TP
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 #, no-wrap
181 msgid "B<LOOP_SET_STATUS>"
182 msgstr "B<LOOP_SET_STATUS>"
183
184 #. type: Plain text
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 msgid ""
188 "Set the status of the loop device using the (third) B<ioctl>(2) argument. "
189 "This argument is a pointer to a I<loop_info> structure, defined in "
190 "I<E<lt>linux/loop.hE<gt>> as:"
191 msgstr ""
192 "Назначает состояние (передаваемое в третьем аргументе B<ioctl>(2)) "
193 "закольцованному устройству. Данный аргумент представляет собой указатель на "
194 "структуру I<loop_info>, определённую в I<E<lt>linux/loop.hE<gt>> следующим "
195 "образом:"
196
197 #. type: Plain text
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 #, fuzzy, no-wrap
201 #| msgid ""
202 #| "struct loop_info {\n"
203 #| " int lo_number; /* ioctl r/o */\n"
204 #| " dev_t lo_device; /* ioctl r/o */\n"
205 #| " unsigned long lo_inode; /* ioctl r/o */\n"
206 #| " dev_t lo_rdevice; /* ioctl r/o */\n"
207 #| " int lo_offset;\n"
208 #| " int lo_encrypt_type;\n"
209 #| " int lo_encrypt_key_size; /* ioctl w/o */\n"
210 #| " int lo_flags; /* ioctl r/o */\n"
211 #| " char lo_name[LO_NAME_SIZE];\n"
212 #| " unsigned char lo_encrypt_key[LO_KEY_SIZE];\n"
213 #| " /* ioctl w/o */\n"
214 #| " unsigned long lo_init[2];\n"
215 #| " char reserved[4];\n"
216 #| "};\n"
217 msgid ""
218 "struct loop_info {\n"
219 " int lo_number; /* ioctl r/o */\n"
220 " dev_t lo_device; /* ioctl r/o */\n"
221 " unsigned long lo_inode; /* ioctl r/o */\n"
222 " dev_t lo_rdevice; /* ioctl r/o */\n"
223 " int lo_offset;\n"
224 " int lo_encrypt_type;\n"
225 " int lo_encrypt_key_size; /* ioctl w/o */\n"
226 " int lo_flags; /* ioctl r/w (r/o before\n"
227 " Linux 2.6.25) */\n"
228 " char lo_name[LO_NAME_SIZE];\n"
229 " unsigned char lo_encrypt_key[LO_KEY_SIZE];\n"
230 " /* ioctl w/o */\n"
231 " unsigned long lo_init[2];\n"
232 " char reserved[4];\n"
233 "};\n"
234 msgstr ""
235 "struct loop_info {\n"
236 " int lo_number; /* только чтение из ioctl */\n"
237 " dev_t lo_device; /* только чтение из ioctl */\n"
238 " unsigned long lo_inode; /* только чтение из ioctl */\n"
239 " dev_t lo_rdevice; /* только чтение из ioctl */\n"
240 " int lo_offset;\n"
241 " int lo_encrypt_type;\n"
242 " int lo_encrypt_key_size; /* только запись ioctl */\n"
243 " int lo_flags; /* только чтение из ioctl */\n"
244 " char lo_name[LO_NAME_SIZE];\n"
245 " unsigned char lo_encrypt_key[LO_KEY_SIZE];\n"
246 " /* только запись ioctl */\n"
247 " unsigned long lo_init[2];\n"
248 " char reserved[4];\n"
249 "};\n"
250
251 #. type: Plain text
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 msgid ""
255 "The encryption type (I<lo_encrypt_type>) should be one of B<LO_CRYPT_NONE>, "
256 "B<LO_CRYPT_XOR>, B<LO_CRYPT_DES>, B<LO_CRYPT_FISH2>, B<LO_CRYPT_BLOW>, "
257 "B<LO_CRYPT_CAST128>, B<LO_CRYPT_IDEA>, B<LO_CRYPT_DUMMY>, "
258 "B<LO_CRYPT_SKIPJACK>, or (since Linux 2.6.0) B<LO_CRYPT_CRYPTOAPI>."
259 msgstr ""
260 "Типом шифрования (I<lo_encrypt_type>) должно быть одно из значений: "
261 "B<LO_CRYPT_NONE>, B<LO_CRYPT_XOR>, B<LO_CRYPT_DES>, B<LO_CRYPT_FISH2>, "
262 "B<LO_CRYPT_BLOW>, B<LO_CRYPT_CAST128>, B<LO_CRYPT_IDEA>, B<LO_CRYPT_DUMMY>, "
263 "B<LO_CRYPT_SKIPJACK> или B<LO_CRYPT_CRYPTOAPI> (начиная с Linux 2.6.0)."
264
265 #. type: Plain text
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 msgid ""
269 "The I<lo_flags> field is a bit mask that can include zero or more of the "
270 "following:"
271 msgstr ""
272 "Поле I<lo_flags> представляет собой битовую маску, в которой может быть ноль "
273 "или несколько следующих значений:"
274
275 #. type: TP
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 #, no-wrap
279 msgid "B<LO_FLAGS_READ_ONLY>"
280 msgstr "B<LO_FLAGS_READ_ONLY>"
281
282 #. type: Plain text
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 msgid "The loopback device is read-only."
286 msgstr "Закольцованное устройство доступно только для чтения."
287
288 #. type: TP
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 #, no-wrap
292 msgid "B<LO_FLAGS_AUTOCLEAR> (since Linux 2.6.25)"
293 msgstr "B<LO_FLAGS_AUTOCLEAR> (начиная с Linux 2.6.25)"
294
295 #. commit 96c5865559cee0f9cbc5173f3c949f6ce3525581
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid "The loopback device will autodestruct on last close."
300 msgstr "Закольцованное устройство автоматически уничтожится после закрытия."
301
302 #. type: TP
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 #, no-wrap
306 msgid "B<LO_FLAGS_PARTSCAN> (since Linux 3.2)"
307 msgstr "B<LO_FLAGS_PARTSCAN> (начиная с Linux 3.2)"
308
309 #. commit e03c8dd14915fabc101aa495828d58598dc5af98
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 msgid "Allow automatic partition scanning."
314 msgstr "Разрешено автоматическое сканирования разделов."
315
316 #. type: TP
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "B<LO_FLAGS_DIRECT_IO> (since Linux 4.10)"
321 msgstr "B<LO_FLAGS_DIRECT_IO> (начиная с Linux 4.10)"
322
323 #. commit 2e5ab5f379f96a6207c45be40c357ebb1beb8ef3
324 #. type: Plain text
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 msgid "Use direct I/O mode to access the backing file."
328 msgstr ""
329
330 #. type: Plain text
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 msgid ""
334 "The only I<lo_flags> that can be modified by B<LOOP_SET_STATUS> are "
335 "B<LO_FLAGS_AUTOCLEAR> and B<LO_FLAGS_PARTSCAN>."
336 msgstr ""
337
338 #. type: TP
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 #, no-wrap
342 msgid "B<LOOP_GET_STATUS>"
343 msgstr "B<LOOP_GET_STATUS>"
344
345 #. type: Plain text
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 msgid ""
349 "Get the status of the loop device. The (third) B<ioctl>(2) argument must "
350 "be a pointer to a I<struct loop_info>."
351 msgstr ""
352 "Получить состояние закольцованного устройства. В третьем аргументе "
353 "B<ioctl>(2) должен быть задан указатель на структуру I<struct loop_info>."
354
355 #. type: TP
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 #, no-wrap
359 msgid "B<LOOP_CHANGE_FD> (since Linux 2.6.5)"
360 msgstr "B<LOOP_CHANGE_FD> (начиная с Linux 2.6.5)"
361
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 msgid ""
366 "Switch the backing store of the loop device to the new file identified file "
367 "descriptor specified in the (third) B<ioctl>(2) argument, which is an "
368 "integer. This operation is possible only if the loop device is read-only "
369 "and the new backing store is the same size and type as the old backing store."
370 msgstr ""
371 "Поменять источник данных (backing store) закольцованного устройства на новый "
372 "файл, определяемый файловым дескриптором, указанным в третьем аргументе "
373 "B<ioctl>(2), представленный целым числом. Данная операция допустима только, "
374 "если закольцованное устройство доступно только на чтение и новый источник "
375 "данных имеет тот же размер и тип, использованный ранее."
376
377 #. type: TP
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 #, no-wrap
381 msgid "B<LOOP_SET_CAPACITY> (since Linux 2.6.30)"
382 msgstr "B<LOOP_SET_CAPACITY> (начиная с Linux 2.6.30)"
383
384 #. commit 53d6660836f233df66490707365ab177e5fb2bb4
385 #. type: Plain text
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 msgid ""
389 "Resize a live loop device. One can change the size of the underlying "
390 "backing store and then use this operation so that the loop driver learns "
391 "about the new size. This operation takes no argument."
392 msgstr ""
393 "Изменить размер используемого (live) закольцованного устройства. Можно "
394 "изменить размер используемого источника данных, а затем применить эту "
395 "операцию для того, чтобы драйвер закольцованных устройств учёл новый размер. "
396 "У этой операции нет аргументов."
397
398 #. type: TP
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 #, no-wrap
402 msgid "B<LOOP_SET_DIRECT_IO> (since Linux 4.10)"
403 msgstr "B<LOOP_SET_DIRECT_IO> (начиная с Linux 4.10)"
404
405 #. commit ab1cb278bc7027663adbfb0b81404f8398437e11
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 msgid ""
410 "Set DIRECT I/O mode on the loop device, so that it can be used to open "
411 "backing file. The (third) B<ioctl>(2) argument is an unsigned long "
412 "value. A nonzero represents direct I/O mode."
413 msgstr ""
414
415 #. type: TP
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 #, no-wrap
419 msgid "B<LOOP_SET_BLOCK_SIZE> (since Linux 4.14)"
420 msgstr "B<LOOP_SET_BLOCK_SIZE> (начиная с Linux 4.14)"
421
422 #. commit 89e4fdecb51cf5535867026274bc97de9480ade5
423 #. type: Plain text
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 msgid ""
427 "Set the block size of the loop device. The (third) B<ioctl>(2) argument "
428 "is an unsigned long value. This value must be a power of two in the range "
429 "[512,pagesize]; otherwise, an B<EINVAL> error results."
430 msgstr ""
431
432 #. type: TP
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 #, no-wrap
436 msgid "B<LOOP_CONFIGURE> (since Linux 5.8)"
437 msgstr "B<LOOP_CONFIGURE> (начиная с Linux 5.8)"
438
439 #. commit 3448914e8cc550ba792d4ccc74471d1ca4293aae
440 #. type: Plain text
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 #, fuzzy
444 #| msgid ""
445 #| "Set the status of the loop device using the (third) B<ioctl>(2) "
446 #| "argument. This argument is a pointer to I<loop_info> structure, defined "
447 #| "in I<E<lt>linux/loop.hE<gt>> as:"
448 msgid ""
449 "Setup and configure all loop device parameters in a single step using the "
450 "(third) B<ioctl>(2) argument. This argument is a pointer to a "
451 "I<loop_config> structure, defined in I<E<lt>linux/loop.hE<gt>> as:"
452 msgstr ""
453 "Назначает состояние (передаваемое в третьем аргументе B<ioctl>(2)) "
454 "закольцованному устройству. Данный аргумент представляет собой указатель на "
455 "структуру I<loop_info>, определённую в I<E<lt>linux/loop.hE<gt>> следующим "
456 "образом:"
457
458 #. type: Plain text
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 #, no-wrap
462 msgid ""
463 "struct loop_config {\n"
464 " __u32 fd;\n"
465 " __u32 block_size;\n"
466 " struct loop_info64 info;\n"
467 " __u64 __reserved[8];\n"
468 "};\n"
469 msgstr ""
470 "struct loop_config {\n"
471 " __u32 fd;\n"
472 " __u32 block_size;\n"
473 " struct loop_info64 info;\n"
474 " __u64 __reserved[8];\n"
475 "};\n"
476
477 #. type: Plain text
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 msgid ""
481 "In addition to doing what B<LOOP_SET_STATUS> can do, B<LOOP_CONFIGURE> can "
482 "also be used to do the following:"
483 msgstr ""
484
485 #. type: IP
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 #, no-wrap
489 msgid "\\[bu]"
490 msgstr "\\[bu]"
491
492 #. type: Plain text
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 msgid ""
496 "set the correct block size immediately by setting I<loop_config.block_size>;"
497 msgstr ""
498
499 #. type: Plain text
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 msgid ""
503 "explicitly request direct I/O mode by setting B<LO_FLAGS_DIRECT_IO> in "
504 "I<loop_config.info.lo_flags>; and"
505 msgstr ""
506
507 #. type: Plain text
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 msgid ""
511 "explicitly request read-only mode by setting B<LO_FLAGS_READ_ONLY> in "
512 "I<loop_config.info.lo_flags>."
513 msgstr ""
514
515 #. type: Plain text
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 msgid "Since Linux 2.6, there are two new B<ioctl>(2) operations:"
519 msgstr "Начиная с Linux 2.6, появилось две новые операции B<ioctl>(2):"
520
521 #. type: TP
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 #, fuzzy, no-wrap
525 #| msgid "B<LOOP_SET_STATUS>"
526 msgid "B<LOOP_SET_STATUS64>"
527 msgstr "B<LOOP_SET_STATUS>"
528
529 #. type: TQ
530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
532 #, fuzzy, no-wrap
533 #| msgid "B<LOOP_GET_STATUS>"
534 msgid "B<LOOP_GET_STATUS64>"
535 msgstr "B<LOOP_GET_STATUS>"
536
537 #. type: Plain text
538 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
539 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
540 msgid ""
541 "These are similar to B<LOOP_SET_STATUS> and B<LOOP_GET_STATUS> described "
542 "above but use the I<loop_info64> structure, which has some additional fields "
543 "and a larger range for some other fields:"
544 msgstr ""
545 "Они подобны описанным выше B<LOOP_SET_STATUS> и B<LOOP_GET_STATUS>, но "
546 "используют структуру I<loop_info64>, в которой есть несколько дополнительных "
547 "полей, а некоторым другим полям назначены типы с большим диапазоном значений:"
548
549 #. type: Plain text
550 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
551 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
552 #, fuzzy, no-wrap
553 #| msgid ""
554 #| "struct loop_info64 {\n"
555 #| " uint64_t lo_device; /* ioctl r/o */\n"
556 #| " uint64_t lo_inode; /* ioctl r/o */\n"
557 #| " uint64_t lo_rdevice; /* ioctl r/o */\n"
558 #| " uint64_t lo_offset;\n"
559 #| " uint64_t lo_sizelimit;/* bytes, 0 == max available */\n"
560 #| " uint32_t lo_number; /* ioctl r/o */\n"
561 #| " uint32_t lo_encrypt_type;\n"
562 #| " uint32_t lo_encrypt_key_size; /* ioctl w/o */\n"
563 #| " uint32_t lo_flags; /* ioctl r/o */\n"
564 #| " uint8_t lo_file_name[LO_NAME_SIZE];\n"
565 #| " uint8_t lo_crypt_name[LO_NAME_SIZE];\n"
566 #| " uint8_t lo_encrypt_key[LO_KEY_SIZE]; /* ioctl w/o */\n"
567 #| " uint64_t lo_init[2];\n"
568 #| "};\n"
569 msgid ""
570 "struct loop_info64 {\n"
571 " uint64_t lo_device; /* ioctl r/o */\n"
572 " uint64_t lo_inode; /* ioctl r/o */\n"
573 " uint64_t lo_rdevice; /* ioctl r/o */\n"
574 " uint64_t lo_offset;\n"
575 " uint64_t lo_sizelimit; /* bytes, 0 == max available */\n"
576 " uint32_t lo_number; /* ioctl r/o */\n"
577 " uint32_t lo_encrypt_type;\n"
578 " uint32_t lo_encrypt_key_size; /* ioctl w/o */\n"
579 " uint32_t lo_flags; i /* ioctl r/w (r/o before\n"
580 " Linux 2.6.25) */\n"
581 " uint8_t lo_file_name[LO_NAME_SIZE];\n"
582 " uint8_t lo_crypt_name[LO_NAME_SIZE];\n"
583 " uint8_t lo_encrypt_key[LO_KEY_SIZE]; /* ioctl w/o */\n"
584 " uint64_t lo_init[2];\n"
585 "};\n"
586 msgstr ""
587 "struct loop_info64 {\n"
588 " uint64_t lo_device; /* только чтение из ioctl */\n"
589 " uint64_t lo_inode; /* только чтение из ioctl */\n"
590 " uint64_t lo_rdevice; /* только чтение из ioctl */\n"
591 " uint64_t lo_offset;\n"
592 " uint64_t lo_sizelimit;/* в байтах, 0 == макс. доступный */\n"
593 " uint32_t lo_number; /* только чтение из ioctl */\n"
594 " uint32_t lo_encrypt_type;\n"
595 " uint32_t lo_encrypt_key_size; /* только запись из ioctl */\n"
596 " uint32_t lo_flags; /* только чтение из ioctl */\n"
597 " uint8_t lo_file_name[LO_NAME_SIZE];\n"
598 " uint8_t lo_crypt_name[LO_NAME_SIZE];\n"
599 " uint8_t lo_encrypt_key[LO_KEY_SIZE]; /* только запись из ioctl */\n"
600 " uint64_t lo_init[2];\n"
601 "};\n"
602
603 #. type: SS
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 #, no-wrap
607 msgid "/dev/loop-control"
608 msgstr "/dev/loop-control"
609
610 #. commit 770fe30a46a12b6fb6b63fbe1737654d28e84844
611 #. type: Plain text
612 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
613 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
614 msgid ""
615 "Since Linux 3.1, the kernel provides the I</dev/loop-control> device, which "
616 "permits an application to dynamically find a free device, and to add and "
617 "remove loop devices from the system. To perform these operations, one first "
618 "opens I</dev/loop-control> and then employs one of the following "
619 "B<ioctl>(2) operations:"
620 msgstr ""
621 "Начиная с Linux 3.1, ядро предоставляет устройство I</dev/loop-control>, "
622 "которое позволяет приложению динамически находить свободное устройство, "
623 "добавлять и удалять закольцованные устройства из системы. Для выполнения "
624 "этих операций сначала открывается I</dev/loop-control>, а затем выполняется "
625 "одна из следующих операций B<ioctl>(2):"
626
627 #. type: TP
628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
630 #, no-wrap
631 msgid "B<LOOP_CTL_GET_FREE>"
632 msgstr "B<LOOP_CTL_GET_FREE>"
633
634 #. type: Plain text
635 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
636 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
637 msgid ""
638 "Allocate or find a free loop device for use. On success, the device number "
639 "is returned as the result of the call. This operation takes no argument."
640 msgstr ""
641 "Выделяет или ищет свободное закольцованное устройства для работы. При "
642 "успешном выполнении возвращается номер устройства. У операции нет аргументов."
643
644 #. type: TP
645 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
646 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
647 #, no-wrap
648 msgid "B<LOOP_CTL_ADD>"
649 msgstr "B<LOOP_CTL_ADD>"
650
651 #. type: Plain text
652 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
653 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
654 msgid ""
655 "Add the new loop device whose device number is specified as a long integer "
656 "in the third B<ioctl>(2) argument. On success, the device index is "
657 "returned as the result of the call. If the device is already allocated, the "
658 "call fails with the error B<EEXIST>."
659 msgstr ""
660 "Добавляет новое закольцованное устройство; номер устройства передаётся в "
661 "виде длинного целого в третьем аргументе B<ioctl>(2). При успешном "
662 "выполнении возвращается индекс устройства. Если устройство уже выделено, то "
663 "вызов завершается с ошибкой B<EEXIST>."
664
665 #. type: TP
666 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
667 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
668 #, no-wrap
669 msgid "B<LOOP_CTL_REMOVE>"
670 msgstr "B<LOOP_CTL_REMOVE>"
671
672 #. type: Plain text
673 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
674 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
675 msgid ""
676 "Remove the loop device whose device number is specified as a long integer in "
677 "the third B<ioctl>(2) argument. On success, the device number is returned "
678 "as the result of the call. If the device is in use, the call fails with the "
679 "error B<EBUSY>."
680 msgstr ""
681 "Удаляет закольцованное устройство; номер устройства передаётся в виде "
682 "длинного целого в третьем аргументе B<ioctl>(2). При успешном выполнении "
683 "возвращается номер устройства. Если устройство используется, то вызов "
684 "завершается с ошибкой B<EBUSY>."
685
686 #. type: SH
687 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
688 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
689 #, no-wrap
690 msgid "FILES"
691 msgstr "ФАЙЛЫ"
692
693 #. type: TP
694 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
695 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
696 #, no-wrap
697 msgid "I</dev/loop*>"
698 msgstr "I</dev/loop*>"
699
700 #. type: Plain text
701 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
702 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
703 msgid "The loop block special device files."
704 msgstr "Специальные закольцованные файлы устройств."
705
706 #. type: SH
707 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
708 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
709 #, no-wrap
710 msgid "EXAMPLES"
711 msgstr "ПРИМЕРЫ"
712
713 #. type: Plain text
714 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
715 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
716 msgid ""
717 "The program below uses the I</dev/loop-control> device to find a free loop "
718 "device, opens the loop device, opens a file to be used as the underlying "
719 "storage for the device, and then associates the loop device with the backing "
720 "store. The following shell session demonstrates the use of the program:"
721 msgstr ""
722 "Программа, представленная ниже, используется устройство I</dev/loop-control> "
723 "для поиска свободного закольцованного устройства, открывает закольцованное "
724 "устройство, открывает файл, который нужно использовать в качестве источника "
725 "данных, и связывает закольцованное устройство с источником. Демонстрация "
726 "работы программы:"
727
728 #. type: Plain text
729 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
730 #: opensuse-tumbleweed
731 #, fuzzy, no-wrap
732 #| msgid ""
733 #| "$ B<dd if=/dev/zero of=file.img bs=1MiB count=10>\n"
734 #| "10+0 records in\n"
735 #| "10+0 records out\n"
736 #| "10485760 bytes (10 MB) copied, 0.00609385 s, 1.7 GB/s\n"
737 #| "$ B<sudo ./mnt_loop file.img>\n"
738 #| "loopname = /dev/loop5\n"
739 msgid ""
740 "$B< dd if=/dev/zero of=file.img bs=1MiB count=10>;\n"
741 "10+0 records in\n"
742 "10+0 records out\n"
743 "10485760 bytes (10 MB) copied, 0.00609385 s, 1.7 GB/s\n"
744 "$B< sudo ./mnt_loop file.img>;\n"
745 "loopname = /dev/loop5\n"
746 msgstr ""
747 "$ B<dd if=/dev/zero of=file.img bs=1MiB count=10>\n"
748 "10+0 records in\n"
749 "10+0 records out\n"
750 "10485760 bytes (10 MB) copied, 0.00609385 s, 1.7 GB/s\n"
751 "$ B<sudo ./mnt_loop file.img>\n"
752 "loopname = /dev/loop5\n"
753
754 #. type: SS
755 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
756 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
757 #, no-wrap
758 msgid "Program source"
759 msgstr "Исходный код программы"
760
761 #. type: Plain text
762 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
763 #: opensuse-tumbleweed
764 #, no-wrap
765 msgid ""
766 "#include E<lt>err.hE<gt>\n"
767 "#include E<lt>fcntl.hE<gt>\n"
768 "#include E<lt>linux/loop.hE<gt>\n"
769 "#include E<lt>sys/ioctl.hE<gt>\n"
770 "#include E<lt>stdio.hE<gt>\n"
771 "#include E<lt>stdlib.hE<gt>\n"
772 "#include E<lt>unistd.hE<gt>\n"
773 "\\&\n"
774 "int\n"
775 "main(int argc, char *argv[])\n"
776 "{\n"
777 " int loopctlfd, loopfd, backingfile;\n"
778 " long devnr;\n"
779 " char loopname[4096];\n"
780 "\\&\n"
781 " if (argc != 2) {\n"
782 " fprintf(stderr, \"Usage: %s backing-file\\[rs]n\", argv[0]);\n"
783 " exit(EXIT_FAILURE);\n"
784 " }\n"
785 "\\&\n"
786 " loopctlfd = open(\"/dev/loop-control\", O_RDWR);\n"
787 " if (loopctlfd == -1)\n"
788 " err(EXIT_FAILURE, \"open: /dev/loop-control\");\n"
789 "\\&\n"
790 " devnr = ioctl(loopctlfd, LOOP_CTL_GET_FREE);\n"
791 " if (devnr == -1)\n"
792 " err(EXIT_FAILURE, \"ioctl-LOOP_CTL_GET_FREE\");\n"
793 "\\&\n"
794 " sprintf(loopname, \"/dev/loop%ld\", devnr);\n"
795 " printf(\"loopname = %s\\[rs]n\", loopname);\n"
796 "\\&\n"
797 " loopfd = open(loopname, O_RDWR);\n"
798 " if (loopfd == -1)\n"
799 " err(EXIT_FAILURE, \"open: loopname\");\n"
800 "\\&\n"
801 " backingfile = open(argv[1], O_RDWR);\n"
802 " if (backingfile == -1)\n"
803 " err(EXIT_FAILURE, \"open: backing-file\");\n"
804 "\\&\n"
805 " if (ioctl(loopfd, LOOP_SET_FD, backingfile) == -1)\n"
806 " err(EXIT_FAILURE, \"ioctl-LOOP_SET_FD\");\n"
807 "\\&\n"
808 " exit(EXIT_SUCCESS);\n"
809 "}\n"
810 msgstr ""
811
812 #. type: SH
813 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
814 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
815 #, no-wrap
816 msgid "SEE ALSO"
817 msgstr "СМОТРИТЕ ТАКЖЕ"
818
819 #. type: Plain text
820 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
821 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
822 msgid "B<losetup>(8), B<mount>(8)"
823 msgstr "B<losetup>(8), B<mount>(8)"
824
825 #. type: TH
826 #: debian-trixie fedora-44 fedora-rawhide
827 #, no-wrap
828 msgid "2024-06-15"
829 msgstr "15 июня 2024 г."
830
831 #. type: TH
832 #: debian-trixie
833 #, no-wrap
834 msgid "Linux man-pages 6.9.1"
835 msgstr "Страницы руководства Linux 6.9.1"
836
837 #. type: Plain text
838 #: debian-trixie fedora-44 fedora-rawhide
839 #, no-wrap
840 msgid ""
841 "$ B<dd if=/dev/zero of=file.img bs=1MiB count=10>\n"
842 "$ B<sudo losetup /dev/loop4 file.img>\n"
843 "$ B<sudo mkfs -t ext4 /dev/loop4>\n"
844 "$ B<sudo mkdir /myloopdev>\n"
845 "$ B<sudo mount /dev/loop4 /myloopdev>\n"
846 msgstr ""
847 "$ B<dd if=/dev/zero of=file.img bs=1MiB count=10>\n"
848 "$ B<sudo losetup /dev/loop4 file.img>\n"
849 "$ B<sudo mkfs -t ext4 /dev/loop4>\n"
850 "$ B<sudo mkdir /myloopdev>\n"
851 "$ B<sudo mount /dev/loop4 /myloopdev>\n"
852
853 #. type: Plain text
854 #: debian-trixie fedora-44 fedora-rawhide
855 #, no-wrap
856 msgid ""
857 "$ B<dd if=/dev/zero of=file.img bs=1MiB count=10>\n"
858 "10+0 records in\n"
859 "10+0 records out\n"
860 "10485760 bytes (10 MB) copied, 0.00609385 s, 1.7 GB/s\n"
861 "$ B<sudo ./mnt_loop file.img>\n"
862 "loopname = /dev/loop5\n"
863 msgstr ""
864 "$ B<dd if=/dev/zero of=file.img bs=1MiB count=10>\n"
865 "10+0 records in\n"
866 "10+0 records out\n"
867 "10485760 bytes (10 MB) copied, 0.00609385 s, 1.7 GB/s\n"
868 "$ B<sudo ./mnt_loop file.img>\n"
869 "loopname = /dev/loop5\n"
870
871 #. type: Plain text
872 #: debian-trixie fedora-44 fedora-rawhide
873 #, no-wrap
874 msgid ""
875 "#include E<lt>fcntl.hE<gt>\n"
876 "#include E<lt>linux/loop.hE<gt>\n"
877 "#include E<lt>sys/ioctl.hE<gt>\n"
878 "#include E<lt>stdio.hE<gt>\n"
879 "#include E<lt>stdlib.hE<gt>\n"
880 "#include E<lt>unistd.hE<gt>\n"
881 "\\&\n"
882 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
883 " } while (0)\n"
884 "\\&\n"
885 "int\n"
886 "main(int argc, char *argv[])\n"
887 "{\n"
888 " int loopctlfd, loopfd, backingfile;\n"
889 " long devnr;\n"
890 " char loopname[4096];\n"
891 "\\&\n"
892 " if (argc != 2) {\n"
893 " fprintf(stderr, \"Usage: %s backing-file\\[rs]n\", argv[0]);\n"
894 " exit(EXIT_FAILURE);\n"
895 " }\n"
896 "\\&\n"
897 " loopctlfd = open(\"/dev/loop-control\", O_RDWR);\n"
898 " if (loopctlfd == -1)\n"
899 " errExit(\"open: /dev/loop-control\");\n"
900 "\\&\n"
901 " devnr = ioctl(loopctlfd, LOOP_CTL_GET_FREE);\n"
902 " if (devnr == -1)\n"
903 " errExit(\"ioctl-LOOP_CTL_GET_FREE\");\n"
904 "\\&\n"
905 " sprintf(loopname, \"/dev/loop%ld\", devnr);\n"
906 " printf(\"loopname = %s\\[rs]n\", loopname);\n"
907 "\\&\n"
908 " loopfd = open(loopname, O_RDWR);\n"
909 " if (loopfd == -1)\n"
910 " errExit(\"open: loopname\");\n"
911 "\\&\n"
912 " backingfile = open(argv[1], O_RDWR);\n"
913 " if (backingfile == -1)\n"
914 " errExit(\"open: backing-file\");\n"
915 "\\&\n"
916 " if (ioctl(loopfd, LOOP_SET_FD, backingfile) == -1)\n"
917 " errExit(\"ioctl-LOOP_SET_FD\");\n"
918 "\\&\n"
919 " exit(EXIT_SUCCESS);\n"
920 "}\n"
921 msgstr ""
922
923 #. type: TH
924 #: fedora-44 fedora-rawhide
925 #, no-wrap
926 msgid "Linux man-pages 6.13"
927 msgstr "Страницы руководства Linux 6.13"
928
929 #. type: TH
930 #: mageia-cauldron
931 #, no-wrap
932 msgid "Linux man-pages 6.17"
933 msgstr "Страницы руководства Linux 6.17"
934
935 #. type: TH
936 #: opensuse-leap-16-1 opensuse-tumbleweed
937 #, no-wrap
938 msgid "Linux man-pages (unreleased)"
939 msgstr "Страницы руководства Linux (не выпущены)"