]> err.no Git - util-linux/commit
losetup: add --set-capacity
authorKarel Zak <kzak@redhat.com>
Fri, 29 May 2009 19:46:00 +0000 (21:46 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 29 May 2009 19:46:00 +0000 (21:46 +0200)
commitd34ac93a61984a9144f832582aab99e0a70f4e3b
treedad9c7f1554c7e2948d3703be02a58befde6c890
parentd5a8c30cebc874c4adcdef6a12a3e6567a81da23
losetup: add --set-capacity

The LOOP_SET_CAPACITY allows to resize loop device size.

Example:

 # blockdev --getsize64 /dev/loop0
 10485760

 # dd if=/dev/zero of=/home/images/aaa.img count=10 bs=1M oflag=append conv=notrunc

 # blockdev --getsize64 /dev/loop0
 10485760

 # ./losetup --set-capacity /dev/loop0

 # blockdev --getsize64 /dev/loop0
 20971520

CC: J. R. Okajima <hooanon05@yahoo.co.jp>
Signed-off-by: Karel Zak <kzak@redhat.com>
mount/lomount.c
mount/loop.h
mount/losetup.8