summaryrefslogtreecommitdiffstats
path: root/mount/lomount.h
Commit message (Collapse)AuthorAgeFilesLines
* umount: improve "-d" option for autoclear loopsKarel Zak2008-07-021-0/+1
| | | | | | | | | | | The new loop auto-destruct feature detaches automatically loop devices when no longer used. This means they are detached with the umount() call. But when we call umount with -d, del_loop() is called and fails because the ioctl() returns ENXIO. We have to check for autoclear loop devices rather than blindly call del_loop(). Reported-by: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: add --sizelimit optionShachar Shemesh2008-04-151-1/+1
| | | | | | [kzak@redhat.com: split the original patch to small patches] Signed-off-by: Shachar Shemesh <shachar@debian.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: allow auto-destruction of loop devicesBernardo Innocenti2008-02-191-0/+3
| | | | | | | | | | 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>
* mount: prevent loop mounting the same file twiceKarel Zak2007-10-261-0/+3
| | | | | | | | | | | | | The mount syscall prevents mounting the same device twice to the same mountpoint. When loop mounting a file, for each file a new loop device gets allocated, which prevents the detection of loop mounting the same file to the same mountpoint twice. The patch adds a check to prevent double mounts, if the same loopfile is going to be mounted with the same offset to the same mountpoint. Co-Author: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: clean up global variablesKarel Zak2007-10-251-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.12b tarball.Karel Zak2006-12-071-2/+2
|
* Imported from util-linux-2.12a tarball.Karel Zak2006-12-071-4/+5
|
* Imported from util-linux-2.12pre tarball.Karel Zak2006-12-071-5/+4Star
|
* Imported from util-linux-2.12 tarball.Karel Zak2006-12-071-4/+5
|
* Imported from util-linux-2.10s tarball.Karel Zak2006-12-071-0/+1
|
* Imported from util-linux-2.7.1 tarball.Karel Zak2006-12-071-0/+4