summaryrefslogtreecommitdiffstats
path: root/mount/loop.h
Commit message (Collapse)AuthorAgeFilesLines
* losetup: add --set-capacityKarel Zak2009-05-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | 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: allow auto-destruction of loop devicesBernardo Innocenti2008-02-191-0/+7
| | | | | | | | | | This allows a flag to be set on loop devices so that when they are closed for the last time, they'll self-destruct. The kernel part has been submitted to lkml by David Woodhouse. Signed-off-by: Bernardo Innocenti <bernie@codewiz.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: use standard uintxy_t types (struct loop_info64)Samuel Thibault2007-12-031-17/+14Star
| | | | | | | | | | The kernel loop_info64 definition uses __u{8,32,64} types, but userspace uses unsigned {long long,int,char} types. This patch turns into exactly defined standard uint{8,32,64}_t types. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: cleanup KERNEL_VERSION, remove my_dev_t.hKarel Zak2007-11-071-2/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.12a tarball.Karel Zak2006-12-071-0/+51
|
* Imported from util-linux-2.12pre tarball.Karel Zak2006-12-071-51/+0Star
|
* Imported from util-linux-2.12 tarball.Karel Zak2006-12-071-0/+51
|
* Imported from util-linux-2.7.1 tarball.Karel Zak2006-12-071-77/+0Star
|
* Imported from util-linux-2.2 tarball.Karel Zak2006-12-071-0/+77