]> git.ipfire.org Git - thirdparty/util-linux.git/commit
losetup: add --list and --output option
authorOndrej Oprala <ooprala@redhat.com>
Mon, 12 Nov 2012 12:08:00 +0000 (13:08 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 12 Nov 2012 12:08:00 +0000 (13:08 +0100)
commit896352d3906c19e8519670f1a511afb01083ed5e
tree8db7882a3d8c450ec2ad812831a098b389f85ce0
parentb481b622c566cba8474d8e0206aea42fe6691082
losetup: add --list and --output option

The --list --all is the default output:

  # losetup
  NAME       SIZE OFFSET AUTOCLEAR RO BACK-FILE
  /dev/loop0    0      0         0  0 /home/fs-images/swap.img
  /dev/loop1    0    100         0  0 /home/fs-images/disk.img

[kzak@redhat.com: - default to --all if no device specified,
                  - cleanup column names (add BACK- prefix)
                  - add MAJ:MIN to of the loopdev device]

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/losetup.8
sys-utils/losetup.c