Debian Codegraph @

po/pl/man4/loop.4.po

raw
1 # Polish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Michał Kułach <[email protected]>, 2025.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.23.1\n"
8 "POT-Creation-Date: 2026-06-05 06:30+0200\n"
9 "PO-Revision-Date: 2025-11-30 12:42+0100\n"
10 "Last-Translator: Michał Kułach <[email protected]>\n"
11 "Language-Team: Polish <[email protected]>\n"
12 "Language: pl\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
17 "|| n%100>=20) ? 1 : 2);\n"
18 "X-Generator: Lokalize 25.04.0\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "loop"
25 msgstr "loop"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 lutego 2026 r."
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "Linux man-pages 6.18"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "NAZWA"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid "loop, loop-control - loop devices"
51 msgstr "loop, loop-control - urządzenia pętli"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "SYNOPSIS"
58 msgstr "SKŁADNIA"
59
60 #. type: Plain text
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 #, no-wrap
64 msgid "#include E<lt>linux/loop.hE<gt>\n"
65 msgstr "#include E<lt>linux/loop.hE<gt>\n"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "DESCRIPTION"
72 msgstr "OPIS"
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 msgid ""
78 "The loop device is a block device that maps its data blocks not to a "
79 "physical device such as a hard disk or optical disk drive, but to the blocks "
80 "of a regular file in a filesystem or to another block device. This can be "
81 "useful for example to provide a block device for a filesystem image stored "
82 "in a file, so that it can be mounted with the B<mount>(8) command. You "
83 "could do"
84 msgstr ""
85 "Urządzenie pętli jest urządzeniem blokowym, które przypisuje swoje bloki "
86 "danych nie do urządzenia fizycznego, takiego jak dysk twardy lub napęd dysku "
87 "optycznego, lecz do bloków zwykłego pliku w systemie plików lub do innego "
88 "urządzenia blokowego. Może być to przydatne np. w celu udostępnienia "
89 "urządzenia blokowego dla obrazu systemu plików przechowywanego w pliku, "
90 "dzięki czemu można go zamontować poleceniem B<mount>(8). Można wykonać:"
91
92 #. type: Plain text
93 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
94 #: opensuse-tumbleweed
95 #, no-wrap
96 msgid ""
97 "$B< dd if=/dev/zero of=file.img bs=1MiB count=10>;\n"
98 "$B< sudo losetup /dev/loop4 file.img>;\n"
99 "$B< sudo mkfs -t ext4 /dev/loop4>;\n"
100 "$B< sudo mkdir /myloopdev>;\n"
101 "$B< sudo mount /dev/loop4 /myloopdev>;\n"
102 msgstr ""
103 "$B< dd if=/dev/zero of=obraz.img bs=1MiB count=10>;\n"
104 "$B< sudo losetup /dev/loop4 plik.img>;\n"
105 "$B< sudo mkfs -t ext4 /dev/loop4>;\n"
106 "$B< sudo mkdir /moje-urzadzenie-loop>;\n"
107 "$B< sudo mount /dev/loop4 /moje-urzadzenie-loop>;\n"
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 msgid "See B<losetup>(8) for another example."
113 msgstr "Inny przykład opisano w podręczniku B<losetup>(8)."
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 msgid ""
119 "A transfer function can be specified for each loop device for encryption and "
120 "decryption purposes."
121 msgstr ""
122 "Dla każdego urządzenia pętli można określić funkcję transferu, służącą do "
123 "szyfrowania i odszyfrowywania."
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 msgid ""
129 "The following B<ioctl>(2) operations are provided by the loop block device:"
130 msgstr "Urządzenie blokowe pętli udostępnia następujące operacje B<ioctl>(2):"
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_SET_FD>"
137 msgstr "B<LOOP_SET_FD>"
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 ""
143 "Associate the loop device with the open file whose file descriptor is passed "
144 "as the (third) B<ioctl>(2) argument."
145 msgstr ""
146 "Przypisuje urządzenie pętli do otwartego pliku, którego deskryptor pliku "
147 "podaje się jako (trzeci) argument B<ioctl>(2)."
148
149 #. type: TP
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 #, no-wrap
153 msgid "B<LOOP_CLR_FD>"
154 msgstr "B<LOOP_CLR_FD>"
155
156 #. type: Plain text
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 msgid "Disassociate the loop device from any file descriptor."
160 msgstr "Usuwa przypisanie urządzenia pętli ze wszystkimi deskryptorami plików."
161
162 #. type: TP
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 #, no-wrap
166 msgid "B<LOOP_SET_STATUS>"
167 msgstr "B<LOOP_SET_STATUS>"
168
169 #. type: Plain text
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 msgid ""
173 "Set the status of the loop device using the (third) B<ioctl>(2) argument. "
174 "This argument is a pointer to a I<loop_info> structure, defined in "
175 "I<E<lt>linux/loop.hE<gt>> as:"
176 msgstr ""
177 "Ustawia stan urządzenia pętli za pomocą (trzeciego) argumentu B<ioctl>(2). "
178 "Argument ten jest wskaźnikiem do struktury I<loop_info>, zdefiniowanej w "
179 "I<E<lt>linux/loop.hE<gt>> jako:"
180
181 #. type: Plain text
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid ""
186 "struct loop_info {\n"
187 " int lo_number; /* ioctl r/o */\n"
188 " dev_t lo_device; /* ioctl r/o */\n"
189 " unsigned long lo_inode; /* ioctl r/o */\n"
190 " dev_t lo_rdevice; /* ioctl r/o */\n"
191 " int lo_offset;\n"
192 " int lo_encrypt_type;\n"
193 " int lo_encrypt_key_size; /* ioctl w/o */\n"
194 " int lo_flags; /* ioctl r/w (r/o before\n"
195 " Linux 2.6.25) */\n"
196 " char lo_name[LO_NAME_SIZE];\n"
197 " unsigned char lo_encrypt_key[LO_KEY_SIZE];\n"
198 " /* ioctl w/o */\n"
199 " unsigned long lo_init[2];\n"
200 " char reserved[4];\n"
201 "};\n"
202 msgstr ""
203 "struct loop_info {\n"
204 " int lo_number; /* ioctl tylko do odczytu */\n"
205 " dev_t lo_device; /* ioctl tylko do odczytu */\n"
206 " unsigned long lo_inode; /* ioctl tylko do odczytu */\n"
207 " dev_t lo_rdevice; /* ioctl tylko do odczytu */\n"
208 " int lo_offset;\n"
209 " int lo_encrypt_type;\n"
210 " int lo_encrypt_key_size; /* ioctl do zapisu i odczytu */\n"
211 " int lo_flags; /* ioctl do zapisu i odczytu (tylko\n"
212 " do odczytu przed Linuksem 2.6.25) */\n"
213 " char lo_name[LO_NAME_SIZE];\n"
214 " unsigned char lo_encrypt_key[LO_KEY_SIZE];\n"
215 " /* ioctl tylko do zapisu */\n"
216 " unsigned long lo_init[2];\n"
217 " char reserved[4];\n"
218 "};\n"
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 msgid ""
224 "The encryption type (I<lo_encrypt_type>) should be one of B<LO_CRYPT_NONE>, "
225 "B<LO_CRYPT_XOR>, B<LO_CRYPT_DES>, B<LO_CRYPT_FISH2>, B<LO_CRYPT_BLOW>, "
226 "B<LO_CRYPT_CAST128>, B<LO_CRYPT_IDEA>, B<LO_CRYPT_DUMMY>, "
227 "B<LO_CRYPT_SKIPJACK>, or (since Linux 2.6.0) B<LO_CRYPT_CRYPTOAPI>."
228 msgstr ""
229 "Typem szyfrowania (I<lo_encrypt_type>) powinien być jeden z: "
230 "B<LO_CRYPT_NONE>, B<LO_CRYPT_XOR>, B<LO_CRYPT_DES>, B<LO_CRYPT_FISH2>, "
231 "B<LO_CRYPT_BLOW>, B<LO_CRYPT_CAST128>, B<LO_CRYPT_IDEA>, B<LO_CRYPT_DUMMY>, "
232 "B<LO_CRYPT_SKIPJACK> lub (od Linuksa 2.6.0) B<LO_CRYPT_CRYPTOAPI>."
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 msgid ""
238 "The I<lo_flags> field is a bit mask that can include zero or more of the "
239 "following:"
240 msgstr ""
241 "Pole I<lo_flags> jest maską bitową mogącą zawierać zero lub więcej z "
242 "poniższych znaczników:"
243
244 #. type: TP
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 #, no-wrap
248 msgid "B<LO_FLAGS_READ_ONLY>"
249 msgstr "B<LO_FLAGS_READ_ONLY>"
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 "The loopback device is read-only."
255 msgstr "Urządzenie pętli zwrotnej jest tylko do odczytu."
256
257 #. type: TP
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 #, no-wrap
261 msgid "B<LO_FLAGS_AUTOCLEAR> (since Linux 2.6.25)"
262 msgstr "B<LO_FLAGS_AUTOCLEAR> (od Linuksa 2.6.25)"
263
264 #. commit 96c5865559cee0f9cbc5173f3c949f6ce3525581
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 "The loopback device will autodestruct on last close."
269 msgstr ""
270 "Urządzenie pętli zwrotnej zostanie automatycznie zniszczone po ostatnim "
271 "zamknięciu."
272
273 #. type: TP
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 #, no-wrap
277 msgid "B<LO_FLAGS_PARTSCAN> (since Linux 3.2)"
278 msgstr "B<LO_FLAGS_PARTSCAN> (od Linuksa 3.2)"
279
280 #. commit e03c8dd14915fabc101aa495828d58598dc5af98
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 msgid "Allow automatic partition scanning."
285 msgstr "Zezwala na automatyczne skanowanie partycji."
286
287 #. type: TP
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 #, no-wrap
291 msgid "B<LO_FLAGS_DIRECT_IO> (since Linux 4.10)"
292 msgstr "B<LO_FLAGS_DIRECT_IO> (od Linuksa 4.10)"
293
294 #. commit 2e5ab5f379f96a6207c45be40c357ebb1beb8ef3
295 #. type: Plain text
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 msgid "Use direct I/O mode to access the backing file."
299 msgstr ""
300 "Używa bezpośredniego wejścia/wyjścia przy dostępie do pliku, do którego "
301 "odwołuje się urządzenie."
302
303 #. type: Plain text
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 msgid ""
307 "The only I<lo_flags> that can be modified by B<LOOP_SET_STATUS> are "
308 "B<LO_FLAGS_AUTOCLEAR> and B<LO_FLAGS_PARTSCAN>."
309 msgstr ""
310 "Jedynymi I<lo_flags>, które mogą być zmodyfikowane przez B<LOOP_SET_STATUS> "
311 "są B<LO_FLAGS_AUTOCLEAR> i B<LO_FLAGS_PARTSCAN>."
312
313 #. type: TP
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, no-wrap
317 msgid "B<LOOP_GET_STATUS>"
318 msgstr "B<LOOP_GET_STATUS>"
319
320 #. type: Plain text
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 msgid ""
324 "Get the status of the loop device. The (third) B<ioctl>(2) argument must "
325 "be a pointer to a I<struct loop_info>."
326 msgstr ""
327 "Pobiera stan urządzenia pętli. (Trzecim) argumentem B<ioctl>(2) musi być "
328 "wskaźnik do I<struct loop_info>."
329
330 #. type: TP
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "B<LOOP_CHANGE_FD> (since Linux 2.6.5)"
335 msgstr "B<LOOP_CHANGE_FD> (od Linuksa 2.6.5)"
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid ""
341 "Switch the backing store of the loop device to the new file identified file "
342 "descriptor specified in the (third) B<ioctl>(2) argument, which is an "
343 "integer. This operation is possible only if the loop device is read-only "
344 "and the new backing store is the same size and type as the old backing store."
345 msgstr ""
346 "Przełącza magazyn danych, do którego odwołuje się urządzenie pętli, do "
347 "nowego pliku, identyfikowanego deskryptorem pliku określonym w (trzecim) "
348 "argumencie B<ioctl>(2), który jest liczbą typu integer. Operacja ta jest "
349 "dopuszczalna tylko wtedy, gdy urządzenie pętli jest tylko do odczytu, a nowy "
350 "magazyn danych ma ten sam rozmiar i typ, co dotychczasowy."
351
352 #. type: TP
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid "B<LOOP_SET_CAPACITY> (since Linux 2.6.30)"
357 msgstr "B<LOOP_SET_CAPACITY> (od Linuksa 2.6.30)"
358
359 #. commit 53d6660836f233df66490707365ab177e5fb2bb4
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 msgid ""
364 "Resize a live loop device. One can change the size of the underlying "
365 "backing store and then use this operation so that the loop driver learns "
366 "about the new size. This operation takes no argument."
367 msgstr ""
368 "Zmienia rozmiar działającego urządzenia pętli. Można zmienić rozmiar "
369 "magazynu danych, do którego odwołuje się urządzenie pętli, a następnie "
370 "skorzystać z tej operacji, dzięki której sterownik pętli dowie się o nowym "
371 "rozmiarze. Ta operacja nie przyjmuje argumentów."
372
373 #. type: TP
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 #, no-wrap
377 msgid "B<LOOP_SET_DIRECT_IO> (since Linux 4.10)"
378 msgstr "B<LOOP_SET_DIRECT_IO> (od Linuksa 4.10)"
379
380 #. commit ab1cb278bc7027663adbfb0b81404f8398437e11
381 #. type: Plain text
382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
384 msgid ""
385 "Set DIRECT I/O mode on the loop device, so that it can be used to open "
386 "backing file. The (third) B<ioctl>(2) argument is an unsigned long "
387 "value. A nonzero represents direct I/O mode."
388 msgstr ""
389 "Ustawia tryb DIRECT I/O (bezpośredniego wejścia/wyjścia) na urządzeniu "
390 "pętli, dzięki czemu zostanie on użyty w stosunku do pliku, do którego "
391 "odwołuje się urządzenie pętli. (Trzeci) argument B<ioctl>(2) jest wartością "
392 "typu long bez znaku. Wartość niezerowa reprezentuje bezpośredni tryb wejścia/"
393 "wyjścia."
394
395 #. type: TP
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 #, no-wrap
399 msgid "B<LOOP_SET_BLOCK_SIZE> (since Linux 4.14)"
400 msgstr "B<LOOP_SET_BLOCK_SIZE> (od Linuksa 4.14)"
401
402 #. commit 89e4fdecb51cf5535867026274bc97de9480ade5
403 #. type: Plain text
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 msgid ""
407 "Set the block size of the loop device. The (third) B<ioctl>(2) argument "
408 "is an unsigned long value. This value must be a power of two in the range "
409 "[512,pagesize]; otherwise, an B<EINVAL> error results."
410 msgstr ""
411 "Ustawia rozmiar bloku urządzenia pętli. (Trzeci) argument B<ioctl>(2) jest "
412 "wartością typu long bez znaku. Wartość ta musi być potęgą dwójki w "
413 "przedziale [512,rozmiar-strony]; w innym przypadku wystąpi błąd B<EINVAL>."
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_CONFIGURE> (since Linux 5.8)"
420 msgstr "B<LOOP_CONFIGURE> (od Linuksa 5.8)"
421
422 #. commit 3448914e8cc550ba792d4ccc74471d1ca4293aae
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 "Setup and configure all loop device parameters in a single step using the "
428 "(third) B<ioctl>(2) argument. This argument is a pointer to a "
429 "I<loop_config> structure, defined in I<E<lt>linux/loop.hE<gt>> as:"
430 msgstr ""
431 "Ustawia i konfiguruje wszystkie parametry urządzenia pętli w pojedynczym "
432 "kroku, za pomocą (trzeciego) argumentu B<ioctl>(2). Argument ten jest "
433 "wskaźnikiem do struktury I<loop_config>, zdefiniowanej w I<E<lt>linux/"
434 "loop.hE<gt>> jako:"
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 #, no-wrap
440 msgid ""
441 "struct loop_config {\n"
442 " __u32 fd;\n"
443 " __u32 block_size;\n"
444 " struct loop_info64 info;\n"
445 " __u64 __reserved[8];\n"
446 "};\n"
447 msgstr ""
448 "struct loop_config {\n"
449 " __u32 fd;\n"
450 " __u32 block_size;\n"
451 " struct loop_info64 info;\n"
452 " __u64 __reserved[8];\n"
453 "};\n"
454
455 #. type: Plain text
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 msgid ""
459 "In addition to doing what B<LOOP_SET_STATUS> can do, B<LOOP_CONFIGURE> can "
460 "also be used to do the following:"
461 msgstr ""
462 "Oprócz dokonania tego, co można zrobić za pomocą B<LOOP_SET_STATUS>, "
463 "B<LOOP_CONFIGURE> można użyć dodatkowo do:"
464
465 #. type: IP
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 #, no-wrap
469 msgid "\\[bu]"
470 msgstr "\\[bu]"
471
472 #. type: Plain text
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 msgid ""
476 "set the correct block size immediately by setting I<loop_config.block_size>;"
477 msgstr ""
478 "ustawienia prawidłowego rozmiaru bloku, bezpośredniego po ustawieniu "
479 "I<loop_config.block_size>;"
480
481 #. type: Plain text
482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
484 msgid ""
485 "explicitly request direct I/O mode by setting B<LO_FLAGS_DIRECT_IO> in "
486 "I<loop_config.info.lo_flags>; and"
487 msgstr ""
488 "jawnego zażądania trybu bezpośredniego wejścia/wyjścia, ustawiając "
489 "B<LO_FLAGS_DIRECT_IO> w I<loop_config.info.lo_flags>; oraz"
490
491 #. type: Plain text
492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
494 msgid ""
495 "explicitly request read-only mode by setting B<LO_FLAGS_READ_ONLY> in "
496 "I<loop_config.info.lo_flags>."
497 msgstr ""
498 "jawnego zażądania trybu tylko do odczytu, ustawiając B<LO_FLAGS_READ_ONLY> w "
499 "I<loop_config.info.lo_flags>."
500
501 #. type: Plain text
502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
504 msgid "Since Linux 2.6, there are two new B<ioctl>(2) operations:"
505 msgstr "Od Linuksa 2.6, istnieją dwie nowe operacje B<ioctl>(2):"
506
507 #. type: TP
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 #, no-wrap
511 msgid "B<LOOP_SET_STATUS64>"
512 msgstr "B<LOOP_SET_STATUS64>"
513
514 #. type: TQ
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 #, no-wrap
518 msgid "B<LOOP_GET_STATUS64>"
519 msgstr "B<LOOP_GET_STATUS64>"
520
521 #. type: Plain text
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 msgid ""
525 "These are similar to B<LOOP_SET_STATUS> and B<LOOP_GET_STATUS> described "
526 "above but use the I<loop_info64> structure, which has some additional fields "
527 "and a larger range for some other fields:"
528 msgstr ""
529 "Są podobne do opisanych wyżej B<LOOP_SET_STATUS> i B<LOOP_GET_STATUS>, lecz "
530 "korzystają ze struktury I<loop_info64>, która ma pewne dodatkowe pola i "
531 "większy zakres niektórych innych pól:"
532
533 #. type: Plain text
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 #, no-wrap
537 msgid ""
538 "struct loop_info64 {\n"
539 " uint64_t lo_device; /* ioctl r/o */\n"
540 " uint64_t lo_inode; /* ioctl r/o */\n"
541 " uint64_t lo_rdevice; /* ioctl r/o */\n"
542 " uint64_t lo_offset;\n"
543 " uint64_t lo_sizelimit; /* bytes, 0 == max available */\n"
544 " uint32_t lo_number; /* ioctl r/o */\n"
545 " uint32_t lo_encrypt_type;\n"
546 " uint32_t lo_encrypt_key_size; /* ioctl w/o */\n"
547 " uint32_t lo_flags; i /* ioctl r/w (r/o before\n"
548 " Linux 2.6.25) */\n"
549 " uint8_t lo_file_name[LO_NAME_SIZE];\n"
550 " uint8_t lo_crypt_name[LO_NAME_SIZE];\n"
551 " uint8_t lo_encrypt_key[LO_KEY_SIZE]; /* ioctl w/o */\n"
552 " uint64_t lo_init[2];\n"
553 "};\n"
554 msgstr ""
555 "struct loop_info64 {\n"
556 " uint64_t lo_device; /* ioctl tylko do odczytu */\n"
557 " uint64_t lo_inode; /* ioctl tylko do odczytu */\n"
558 " uint64_t lo_rdevice; /* ioctl tylko do odczytu */\n"
559 " uint64_t lo_offset;\n"
560 " uint64_t lo_sizelimit; /* bajtów, 0 == możliwie najwięcej */\n"
561 " uint32_t lo_number; /* ioctl tylko do odczytu */\n"
562 " uint32_t lo_encrypt_type;\n"
563 " uint32_t lo_encrypt_key_size; /* ioctl tylko do zapisu */\n"
564 " uint32_t lo_flags; i /* ioctl do odczytu i zapisu (tylko\n"
565 " do odczytu przed Linuksem 2.6.25) */\n"
566 " uint8_t lo_file_name[LO_NAME_SIZE];\n"
567 " uint8_t lo_crypt_name[LO_NAME_SIZE];\n"
568 " uint8_t lo_encrypt_key[LO_KEY_SIZE]; /* ioctl tylko do zapisu */\n"
569 " uint64_t lo_init[2];\n"
570 "};\n"
571
572 #. type: SS
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 #, no-wrap
576 msgid "/dev/loop-control"
577 msgstr "/dev/loop-control"
578
579 #. commit 770fe30a46a12b6fb6b63fbe1737654d28e84844
580 #. type: Plain text
581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
583 msgid ""
584 "Since Linux 3.1, the kernel provides the I</dev/loop-control> device, which "
585 "permits an application to dynamically find a free device, and to add and "
586 "remove loop devices from the system. To perform these operations, one first "
587 "opens I</dev/loop-control> and then employs one of the following "
588 "B<ioctl>(2) operations:"
589 msgstr ""
590 "Od Linuksa 3.1, jądro udostępnia urządzenie I</dev/loop-control>, które "
591 "pozwala aplikacjom na dynamiczne odnalezienie wolnego urządzenia oraz na "
592 "dodawanie i usuwanie urządzeń pętli z systemu. Do przeprowadzenia tych "
593 "operacji, najpierw otwiera się I</dev/loop-control>, a następnie korzysta z "
594 "jednej z poniższych operacji B<ioctl>(2):"
595
596 #. type: TP
597 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
598 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
599 #, no-wrap
600 msgid "B<LOOP_CTL_GET_FREE>"
601 msgstr "B<LOOP_CTL_GET_FREE>"
602
603 #. type: Plain text
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 msgid ""
607 "Allocate or find a free loop device for use. On success, the device number "
608 "is returned as the result of the call. This operation takes no argument."
609 msgstr ""
610 "Przydziela lub odnajduje wolne urządzenie pętli do wykorzystania. Przy "
611 "powodzeniu, jako wynik wywołania zwracany jest numer urządzenia. Ta operacja "
612 "nie przyjmuje argumentów."
613
614 #. type: TP
615 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
616 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
617 #, no-wrap
618 msgid "B<LOOP_CTL_ADD>"
619 msgstr "B<LOOP_CTL_ADD>"
620
621 #. type: Plain text
622 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
623 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
624 msgid ""
625 "Add the new loop device whose device number is specified as a long integer "
626 "in the third B<ioctl>(2) argument. On success, the device index is "
627 "returned as the result of the call. If the device is already allocated, the "
628 "call fails with the error B<EEXIST>."
629 msgstr ""
630 "Dodaje nowe urządzenie pętli, którego numer podano jako liczba typu long "
631 "integer w trzecim argumencie B<ioctl>(2). Przy powodzeniu, jako wynik "
632 "wywołania zwracany jest indeks urządzenia. Jeśli urządzenie zostało już "
633 "przydzielone, wywołanie zawodzi z błędem B<EEXIST>."
634
635 #. type: TP
636 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
637 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
638 #, no-wrap
639 msgid "B<LOOP_CTL_REMOVE>"
640 msgstr "B<LOOP_CTL_REMOVE>"
641
642 #. type: Plain text
643 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
644 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
645 msgid ""
646 "Remove the loop device whose device number is specified as a long integer in "
647 "the third B<ioctl>(2) argument. On success, the device number is returned "
648 "as the result of the call. If the device is in use, the call fails with the "
649 "error B<EBUSY>."
650 msgstr ""
651 "Usuwa urządzenie pętli, którego numer podano jako liczba typu long integer w "
652 "trzecim argumencie B<ioctl>(2). Przy powodzeniu, jako wynik wywołania "
653 "zwracany jest numer urządzenia. Jeśli urządzenie jest w użyciu, wywołanie "
654 "zawodzi z błędem B<EBUSY>."
655
656 #. type: SH
657 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
658 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
659 #, no-wrap
660 msgid "FILES"
661 msgstr "PLIKI"
662
663 #. type: TP
664 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
665 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
666 #, no-wrap
667 msgid "I</dev/loop*>"
668 msgstr "I</dev/loop*>"
669
670 #. type: Plain text
671 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
672 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
673 msgid "The loop block special device files."
674 msgstr "Specjalne pliki urządzeń blokowych pętli."
675
676 #. type: SH
677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
679 #, no-wrap
680 msgid "EXAMPLES"
681 msgstr "PRZYKŁADY"
682
683 #. type: Plain text
684 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
685 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
686 msgid ""
687 "The program below uses the I</dev/loop-control> device to find a free loop "
688 "device, opens the loop device, opens a file to be used as the underlying "
689 "storage for the device, and then associates the loop device with the backing "
690 "store. The following shell session demonstrates the use of the program:"
691 msgstr ""
692 "Poniższy program korzysta z urządzenia I</dev/loop-control> do odnalezienia "
693 "wolnego urządzenia pętli, otwiera urządzenie pętli, otwiera plik "
694 "przeznaczony do użycia przez urządzenie pętli, a następnie wiąże urządzenie "
695 "pętli z tym plikiem. Poniższa sesja powłoki demonstruje użycie programu:"
696
697 #. type: Plain text
698 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
699 #: opensuse-tumbleweed
700 #, no-wrap
701 msgid ""
702 "$B< dd if=/dev/zero of=file.img bs=1MiB count=10>;\n"
703 "10+0 records in\n"
704 "10+0 records out\n"
705 "10485760 bytes (10 MB) copied, 0.00609385 s, 1.7 GB/s\n"
706 "$B< sudo ./mnt_loop file.img>;\n"
707 "loopname = /dev/loop5\n"
708 msgstr ""
709 "$B< dd if=/dev/zero of=plik.img bs=1MiB count=10>;\n"
710 "10+0 przeczytanych rekordów\n"
711 "10+0 zapisanych rekordów\n"
712 "10485760 bajtów (10 MB) skopiowano, 0.00609385 s, 1.7 GB/s\n"
713 "$B< sudo ./mnt_loop obraz.img>;\n"
714 "loopname = /dev/loop5\n"
715
716 #. type: SS
717 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
718 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
719 #, no-wrap
720 msgid "Program source"
721 msgstr "Kod źródłowy programu"
722
723 #. type: Plain text
724 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
725 #: opensuse-tumbleweed
726 #, no-wrap
727 msgid ""
728 "#include E<lt>err.hE<gt>\n"
729 "#include E<lt>fcntl.hE<gt>\n"
730 "#include E<lt>linux/loop.hE<gt>\n"
731 "#include E<lt>sys/ioctl.hE<gt>\n"
732 "#include E<lt>stdio.hE<gt>\n"
733 "#include E<lt>stdlib.hE<gt>\n"
734 "#include E<lt>unistd.hE<gt>\n"
735 "\\&\n"
736 "int\n"
737 "main(int argc, char *argv[])\n"
738 "{\n"
739 " int loopctlfd, loopfd, backingfile;\n"
740 " long devnr;\n"
741 " char loopname[4096];\n"
742 "\\&\n"
743 " if (argc != 2) {\n"
744 " fprintf(stderr, \"Usage: %s backing-file\\[rs]n\", argv[0]);\n"
745 " exit(EXIT_FAILURE);\n"
746 " }\n"
747 "\\&\n"
748 " loopctlfd = open(\"/dev/loop-control\", O_RDWR);\n"
749 " if (loopctlfd == -1)\n"
750 " err(EXIT_FAILURE, \"open: /dev/loop-control\");\n"
751 "\\&\n"
752 " devnr = ioctl(loopctlfd, LOOP_CTL_GET_FREE);\n"
753 " if (devnr == -1)\n"
754 " err(EXIT_FAILURE, \"ioctl-LOOP_CTL_GET_FREE\");\n"
755 "\\&\n"
756 " sprintf(loopname, \"/dev/loop%ld\", devnr);\n"
757 " printf(\"loopname = %s\\[rs]n\", loopname);\n"
758 "\\&\n"
759 " loopfd = open(loopname, O_RDWR);\n"
760 " if (loopfd == -1)\n"
761 " err(EXIT_FAILURE, \"open: loopname\");\n"
762 "\\&\n"
763 " backingfile = open(argv[1], O_RDWR);\n"
764 " if (backingfile == -1)\n"
765 " err(EXIT_FAILURE, \"open: backing-file\");\n"
766 "\\&\n"
767 " if (ioctl(loopfd, LOOP_SET_FD, backingfile) == -1)\n"
768 " err(EXIT_FAILURE, \"ioctl-LOOP_SET_FD\");\n"
769 "\\&\n"
770 " exit(EXIT_SUCCESS);\n"
771 "}\n"
772 msgstr ""
773 "#include E<lt>err.hE<gt>\n"
774 "#include E<lt>fcntl.hE<gt>\n"
775 "#include E<lt>linux/loop.hE<gt>\n"
776 "#include E<lt>sys/ioctl.hE<gt>\n"
777 "#include E<lt>stdio.hE<gt>\n"
778 "#include E<lt>stdlib.hE<gt>\n"
779 "#include E<lt>unistd.hE<gt>\n"
780 "\\&\n"
781 "int\n"
782 "main(int argc, char *argv[])\n"
783 "{\n"
784 " int loopctlfd, loopfd, backingfile;\n"
785 " long devnr;\n"
786 " char loopname[4096];\n"
787 "\\&\n"
788 " if (argc != 2) {\n"
789 " fprintf(stderr, \"Użycie: %s plik-dla-pętli\\[rs]n\", argv[0]);\n"
790 " exit(EXIT_FAILURE);\n"
791 " }\n"
792 "\\&\n"
793 " loopctlfd = open(\"/dev/loop-control\", O_RDWR);\n"
794 " if (loopctlfd == -1)\n"
795 " err(EXIT_FAILURE, \"open: /dev/loop-control\");\n"
796 "\\&\n"
797 " devnr = ioctl(loopctlfd, LOOP_CTL_GET_FREE);\n"
798 " if (devnr == -1)\n"
799 " err(EXIT_FAILURE, \"ioctl-LOOP_CTL_GET_FREE\");\n"
800 "\\&\n"
801 " sprintf(loopname, \"/dev/loop%ld\", devnr);\n"
802 " printf(\"loopname = %s\\[rs]n\", loopname);\n"
803 "\\&\n"
804 " loopfd = open(loopname, O_RDWR);\n"
805 " if (loopfd == -1)\n"
806 " err(EXIT_FAILURE, \"open: loopname\");\n"
807 "\\&\n"
808 " backingfile = open(argv[1], O_RDWR);\n"
809 " if (backingfile == -1)\n"
810 " err(EXIT_FAILURE, \"open: backing-file\");\n"
811 "\\&\n"
812 " if (ioctl(loopfd, LOOP_SET_FD, backingfile) == -1)\n"
813 " err(EXIT_FAILURE, \"ioctl-LOOP_SET_FD\");\n"
814 "\\&\n"
815 " exit(EXIT_SUCCESS);\n"
816 "}\n"
817
818 #. type: SH
819 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
820 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
821 #, no-wrap
822 msgid "SEE ALSO"
823 msgstr "ZOBACZ TAKŻE"
824
825 #. type: Plain text
826 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
827 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
828 msgid "B<losetup>(8), B<mount>(8)"
829 msgstr "B<losetup>(8), B<mount>(8)"
830
831 #. type: TH
832 #: debian-trixie fedora-44 fedora-rawhide
833 #, no-wrap
834 msgid "2024-06-15"
835 msgstr "15 czerwca 2024 r."
836
837 #. type: TH
838 #: debian-trixie
839 #, no-wrap
840 msgid "Linux man-pages 6.9.1"
841 msgstr "Linux man-pages 6.9.1"
842
843 #. type: Plain text
844 #: debian-trixie fedora-44 fedora-rawhide
845 #, no-wrap
846 msgid ""
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 msgstr ""
853 "$ B<dd if=/dev/zero of=obraz.img bs=1MiB count=10>\n"
854 "$ B<sudo losetup /dev/loop4 plik.img>\n"
855 "$ B<sudo mkfs -t ext4 /dev/loop4>\n"
856 "$ B<sudo mkdir /moje-urzadzenie-loop>\n"
857 "$ B<sudo mount /dev/loop4 /moje-urzadzenie-loop>\n"
858
859 #. type: Plain text
860 #: debian-trixie fedora-44 fedora-rawhide
861 #, no-wrap
862 msgid ""
863 "$ B<dd if=/dev/zero of=file.img bs=1MiB count=10>\n"
864 "10+0 records in\n"
865 "10+0 records out\n"
866 "10485760 bytes (10 MB) copied, 0.00609385 s, 1.7 GB/s\n"
867 "$ B<sudo ./mnt_loop file.img>\n"
868 "loopname = /dev/loop5\n"
869 msgstr ""
870 "$ B<dd if=/dev/zero of=plik.img bs=1MiB count=10>\n"
871 "10+0 przeczytanych rekordów\n"
872 "10+0 zapisanych rekordów\n"
873 "10485760 bajtów (10 MB) skopiowano, 0.00609385 s, 1.7 GB/s\n"
874 "$ B<sudo ./mnt_loop obraz.img>\n"
875 "loopname = /dev/loop5\n"
876
877 #. type: Plain text
878 #: debian-trixie fedora-44 fedora-rawhide
879 #, no-wrap
880 msgid ""
881 "#include E<lt>fcntl.hE<gt>\n"
882 "#include E<lt>linux/loop.hE<gt>\n"
883 "#include E<lt>sys/ioctl.hE<gt>\n"
884 "#include E<lt>stdio.hE<gt>\n"
885 "#include E<lt>stdlib.hE<gt>\n"
886 "#include E<lt>unistd.hE<gt>\n"
887 "\\&\n"
888 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
889 " } while (0)\n"
890 "\\&\n"
891 "int\n"
892 "main(int argc, char *argv[])\n"
893 "{\n"
894 " int loopctlfd, loopfd, backingfile;\n"
895 " long devnr;\n"
896 " char loopname[4096];\n"
897 "\\&\n"
898 " if (argc != 2) {\n"
899 " fprintf(stderr, \"Usage: %s backing-file\\[rs]n\", argv[0]);\n"
900 " exit(EXIT_FAILURE);\n"
901 " }\n"
902 "\\&\n"
903 " loopctlfd = open(\"/dev/loop-control\", O_RDWR);\n"
904 " if (loopctlfd == -1)\n"
905 " errExit(\"open: /dev/loop-control\");\n"
906 "\\&\n"
907 " devnr = ioctl(loopctlfd, LOOP_CTL_GET_FREE);\n"
908 " if (devnr == -1)\n"
909 " errExit(\"ioctl-LOOP_CTL_GET_FREE\");\n"
910 "\\&\n"
911 " sprintf(loopname, \"/dev/loop%ld\", devnr);\n"
912 " printf(\"loopname = %s\\[rs]n\", loopname);\n"
913 "\\&\n"
914 " loopfd = open(loopname, O_RDWR);\n"
915 " if (loopfd == -1)\n"
916 " errExit(\"open: loopname\");\n"
917 "\\&\n"
918 " backingfile = open(argv[1], O_RDWR);\n"
919 " if (backingfile == -1)\n"
920 " errExit(\"open: backing-file\");\n"
921 "\\&\n"
922 " if (ioctl(loopfd, LOOP_SET_FD, backingfile) == -1)\n"
923 " errExit(\"ioctl-LOOP_SET_FD\");\n"
924 "\\&\n"
925 " exit(EXIT_SUCCESS);\n"
926 "}\n"
927 msgstr ""
928 "#include E<lt>fcntl.hE<gt>\n"
929 "#include E<lt>linux/loop.hE<gt>\n"
930 "#include E<lt>sys/ioctl.hE<gt>\n"
931 "#include E<lt>stdio.hE<gt>\n"
932 "#include E<lt>stdlib.hE<gt>\n"
933 "#include E<lt>unistd.hE<gt>\n"
934 "\\&\n"
935 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
936 " } while (0)\n"
937 "\\&\n"
938 "int\n"
939 "main(int argc, char *argv[])\n"
940 "{\n"
941 " int loopctlfd, loopfd, backingfile;\n"
942 " long devnr;\n"
943 " char loopname[4096];\n"
944 "\\&\n"
945 " if (argc != 2) {\n"
946 " fprintf(stderr, \"Użycie: %s plik-dla-pętli\\[rs]n\", argv[0]);\n"
947 " exit(EXIT_FAILURE);\n"
948 " }\n"
949 "\\&\n"
950 " loopctlfd = open(\"/dev/loop-control\", O_RDWR);\n"
951 " if (loopctlfd == -1)\n"
952 " errExit(\"open: /dev/loop-control\");\n"
953 "\\&\n"
954 " devnr = ioctl(loopctlfd, LOOP_CTL_GET_FREE);\n"
955 " if (devnr == -1)\n"
956 " errExit(\"ioctl-LOOP_CTL_GET_FREE\");\n"
957 "\\&\n"
958 " sprintf(loopname, \"/dev/loop%ld\", devnr);\n"
959 " printf(\"loopname = %s\\[rs]n\", loopname);\n"
960 "\\&\n"
961 " loopfd = open(loopname, O_RDWR);\n"
962 " if (loopfd == -1)\n"
963 " errExit(\"open: loopname\");\n"
964 "\\&\n"
965 " backingfile = open(argv[1], O_RDWR);\n"
966 " if (backingfile == -1)\n"
967 " errExit(\"open: backing-file\");\n"
968 "\\&\n"
969 " if (ioctl(loopfd, LOOP_SET_FD, backingfile) == -1)\n"
970 " errExit(\"ioctl-LOOP_SET_FD\");\n"
971 "\\&\n"
972 " exit(EXIT_SUCCESS);\n"
973 "}\n"
974
975 #. type: TH
976 #: fedora-44 fedora-rawhide
977 #, no-wrap
978 msgid "Linux man-pages 6.13"
979 msgstr "Linux man-pages 6.13"
980
981 #. type: TH
982 #: mageia-cauldron
983 #, no-wrap
984 msgid "Linux man-pages 6.17"
985 msgstr "Linux man-pages 6.17"
986
987 #. type: TH
988 #: opensuse-leap-16-1 opensuse-tumbleweed
989 #, no-wrap
990 msgid "Linux man-pages (unreleased)"
991 msgstr "Linux man-pages (niewydane)"