]> err.no Git - util-linux/commit
losetup: detach more devices by "-d <loop> [<loop> ..]"
authorKarel Zak <kzak@redhat.com>
Thu, 19 Feb 2009 17:36:25 +0000 (18:36 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 19 Feb 2009 17:51:43 +0000 (18:51 +0100)
commit27d320d6f9219cc4238d3bf69e8f66185f123e7e
tree01a24ddb14657f1e5a2ea6d35652d1ce0c24d0ec
parent105960ab8511766afc7df46a0262bb5ddf7bb41a
losetup: detach more devices by "-d <loop> [<loop> ..]"

This patch allows to detach more devices by "losetup -d",
for example:

  # losetup -a
  /dev/loop0: [0804]:9955739 (/home/images/ary0.img)
  /dev/loop1: [0804]:9955740 (/home/images/ary1.img)
  /dev/loop2: [0804]:9955745 (/home/images/ary2.img)

  # losetup -d /dev/loop0 /dev/loop1 /dev/loop2

Signed-off-by: Karel Zak <kzak@redhat.com>
mount/lomount.c
mount/losetup.8