Debian Codegraph @

po/es/man4/loop.4.po

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