Debian Codegraph @

po/ar/man4/loop.4.po

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