summaryrefslogtreecommitdiffstats
path: root/mount/sundries.c
Commit message (Collapse)AuthorAgeFilesLines
* mount: add --no-canonicalize optionKarel Zak2009-12-031-3/+10
| | | | | | | | | | | | For example the /sbin/mount.fuse command calls mount -i -f /dev/foo /absolut/path and it does not make sense to canonicalize already absolute paths. The new --no-canonicalize option allows to avoid unwanted readlink() calls. Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: update list of pseudo filesystemsKarel Zak2009-11-091-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* replace bcopy,bzero,index and rindexDaniel Mierswa2009-08-171-1/+1
| | | | | | | | | Those 4 functions are marked as LEGACY in POSIX.1-2001 and removed in POSIX.1-2008. Replaced with memmove,memset,strchr and strrchr. Signed-off-by: Daniel Mierswa <impulze@impulze.org>
* mount: generic blkid/volume_id wrapper, use blkid_evaluate_*Karel Zak2009-02-171-36/+0Star
| | | | | | | | | | | | | | | | | | * moves the generic libblkid/libvolume_id wrapper (fsprobe.c) from mount/ to lib/. We'll use the wrapper in cfdisk and fsck. The wrapper supports: - obsolete volume_id (udev) - obsolete libblkid (e2fsprogs) - libblkid (util-linux-ng) * mount, umount and swapon when linked against the new libblkid use - low-level probing code to read LABEL, UUID or FSTYPE from a device - high-level blkid_evaluate_spec() to convert LABEL/UUID to devname Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: move realpath.c code to lib/Karel Zak2009-02-111-1/+47
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* remove CVS keywordsmaximilian attems2008-07-281-1/+0Star
| | | | | | | | this patch removes old CVS keywords from comments. mount(8) works for newer Linux then 0.99 ;) Signed-off-by: maximilian attems <max@stro.at>
* mount: clean up global variablesKarel Zak2007-10-251-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: cleanup error() and die()Karel Zak2007-10-251-0/+15
| | | | | | | | * moves error() and die() to sundries.h * removes at_die * adds __attribute__ ((__format__ (__printf__ ))) Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: cleanup canonicalize() usageKarel Zak2007-10-251-25/+0Star
| | | | | | | | | | | This patch renames canonicalize() to canonicalize_mountpoint() and moves this function to realpath.c where is all cannonicalize code. The canonicalize_mountpoint() function checks for special "none", "proc", "swap" pseudo mointpoint. The patch also adds a new generic canonicalize() function. Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: fsprobe: make fsprobe_get_devname functions more genericKarel Zak2007-05-171-0/+38
| | | | | | | | | | | The blkid supports NAME=value parsing, but use the library for this simple task is overkill. (The libblkid requires initialized blkid cache all time, for all calls.) This patch makes the fsprobe_get_devname_for_mounting() and fsprobe_get_devname() generic for all fsprobe implementations. Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: remove all NFS codeKarel Zak2007-05-091-1/+0Star
| | | | | | | | | | Use /sbin/{u,}mount.nfs{,4} from nfs-utils! The mount command will use these to mount nfs filesystems instead of internal code. The /sbin/{u,}mount.nfs{,4} is supported from nfs-utils-1.1.0 (currently -rc1). Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: use realloc for xstrconcat functionsKarel Zak2007-05-041-42/+44
| | | | | | | | | | Everywhere in code is s = xstrconcat3(s, t, u); that's nonsense use malloc(new_s); free(s); return new_s; Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.12o tarball.Karel Zak2006-12-071-54/+0Star
|
* Imported from util-linux-2.12m tarball.Karel Zak2006-12-071-1/+13
|
* Imported from util-linux-2.12h tarball.Karel Zak2006-12-071-11/+14
|
* Imported from util-linux-2.11x tarball.Karel Zak2006-12-071-0/+77
|
* Imported from util-linux-2.11m tarball.Karel Zak2006-12-071-1/+1
|
* Imported from util-linux-2.11f tarball.Karel Zak2006-12-071-52/+27Star
|
* Imported from util-linux-2.11b tarball.Karel Zak2006-12-071-1/+1
|
* Imported from util-linux-2.10f tarball.Karel Zak2006-12-071-2/+3
|
* Imported from util-linux-2.9v tarball.Karel Zak2006-12-071-8/+15
|
* Imported from util-linux-2.9i tarball.Karel Zak2006-12-071-6/+6
|
* Imported from util-linux-2.7.1 tarball.Karel Zak2006-12-071-257/+153Star
|
* Imported from util-linux-2.5 tarball.Karel Zak2006-12-071-7/+55
|
* Imported from util-linux-2.2 tarball.Karel Zak2006-12-071-0/+283