Buster - losetup bug?

News and discussion about development of the Debian OS itself

Buster - losetup bug?

Postby rsi » 2018-08-27 16:23

Hello,

can this someone confirm as bug on latest buster?

Code: Select all
root@vmm:~# /sbin/losetup —P $(/sbin/losetup -f) /dev/vg0/lv0
losetup: /dev/—P: failed to set up loop device: No such file or directory
root@vmm:~# /sbin/losetup —-partscan $(/sbin/losetup -f) /dev/vg0/lv0
losetup: /dev/—-partscan: failed to set up loop device: No such file or directory
root@vmm:~# /sbin/losetup -f
/dev/loop0
root@vmm:~# /sbin/losetup —P /dev/loop0 /dev/vg0/lv0
losetup: /dev/—P: failed to set up loop device: No such file or directory
root@vmm:~# losetup -V
losetup from util-linux 2.32.1
root@vmm:~# losetup --help

Usage:
 losetup [options] [<loopdev>]
 losetup [options] -f | <loopdev> <file>

Set up and control loop devices.

Options:
 -a, --all                     list all used devices
 -d, --detach <loopdev>...     detach one or more devices
 -D, --detach-all              detach all used devices
 -f, --find                    find first unused device
 -c, --set-capacity <loopdev>  resize the device
 -j, --associated <file>       list all devices associated with <file>
 -L, --nooverlap               avoid possible conflict between devices

 -o, --offset <num>            start at offset <num> into file
     --sizelimit <num>         device is limited to <num> bytes of the file
 -b  --sector-size <num>       set the logical sector size to <num>
 -P, --partscan                create a partitioned loop device
 -r, --read-only               set up a read-only loop device
     --direct-io[=<on|off>]    open backing file with O_DIRECT
     --show                    print device name after setup (with -f)
 -v, --verbose                 verbose mode

 -J, --json                    use JSON --list output format
 -l, --list                    list info about all or specified (default)
 -n, --noheadings              don't print headings for --list output
 -O, --output <cols>           specify columns to output for --list
     --raw                     use raw --list output format

 -h, --help                    display this help
 -V, --version                 display version

Available output columns:
         NAME  loop device name
    AUTOCLEAR  autoclear flag set
    BACK-FILE  device backing file
     BACK-INO  backing file inode number
 BACK-MAJ:MIN  backing file major:minor device number
      MAJ:MIN  loop device major:minor number
       OFFSET  offset from the beginning
     PARTSCAN  partscan flag set
           RO  read-only device
    SIZELIMIT  size limit of the file in bytes
          DIO  access backing file with direct-io
      LOG-SEC  logical sector size in bytes

For more details see losetup(8).


Options and parameters for '-P' or '--partscan' are interpreted incorrectly!
rsi
 
Posts: 21
Joined: 2014-10-20 00:52

Return to Debian Development

Who is online

Users browsing this forum: No registered users and 1 guest

fashionable