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