summaryrefslogtreecommitdiffstats
path: root/mount/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* docs: Documentation directory addedSami Kerola2011-08-121-2/+0Star
| | | | | | | | Move readme, licence, change log, relese notes and other supplementary files to a Documentation directory. This commit does not change contents of any other but few Makefile.am files. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: don't support external (e2fsprogs) libblkidKarel Zak2011-03-161-4/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --enable-libmount-mountKarel Zak2011-01-031-0/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [strutils] general purpose string handling functionsDavidlohr Bueso2010-11-231-3/+3
| | | | | | | | | | | | | This patch replaces a few functions used throughout the source: * Renames getnum (from schedutils) to strtol_or_err * Moves strtosize (from lib/strtosize.c) * Moves xstrncpy (from include/xstrncpy.h) * Adds strnlen, strnchr and strndup if not available (remove it from libmount utils) A few Makefile.am files were modified to compile accordingly along with trivial renaming in schedutils source code. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* umount: use strtosize() for offset=Karel Zak2010-10-071-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: replace ../ with $top_srcdirKarel Zak2010-05-241-8/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: support suffixes for offset= and sizelimit=Karel Zak2010-03-301-1/+1
| | | | | | | Note that the offset= and sizelimit= values in /etc/mtab are always in the final format -- it means without suffix). Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: support suffixes and hex numbers for --offset and --sizelimitKarel Zak2010-03-301-1/+1
| | | | | Reported-By: Liu Aleaxander <aleaxander@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: use unmangle/mangle() from libKarel Zak2010-03-111-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: use unmangle() for filenames from /proc/swapsKarel Zak2010-03-101-1/+2
| | | | | | | linux kernel encodes all garbage in filenames by mangle() function. We need to unmagle() to get the real filenames. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup AM_CFLAGS usageKarel Zak2009-11-091-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix out-of-source buildKarel Zak2009-11-061-1/+1
| | | | | | The blkid.h file is generated and stored in $top_builddir. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove LT_STATIC_LDFLAGSKarel Zak2009-11-051-1/+1
| | | | | | It was really stupid idea to use *_LDFLAGS for some global variable. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup static buildingKarel Zak2009-11-051-3/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-makeinstall-setuidKarel Zak2009-09-301-1/+4
| | | | | | .. to disable "chmod 4755" for mount and umount. Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: (and fsck) remove libvolume_id supportKarel Zak2009-05-221-8/+0Star
| | | | | | | The libvolume_id is deprecated in favor of libblkid. The libblkid from u-l-ng provides the same functionality as libvolume_id. Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: simplify spec to devname conversionKarel Zak2009-03-031-6/+6
| | | | | | | | | We needn't to use spec_to_devname() and check for pseudo filesystems. The swap{on,off} is always checking for the 'swap' fstype. This patch also removes the dependence on xmalloc.c. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use pkg-config for blkid and volume_idKarel Zak2009-02-171-3/+3
| | | | | | | | | | | | It seems that blkid.pc from e2fsprogs has been fixed: $ pkg-config --libs blkid -lblkid and the pkg-config does not return any other extra libraries (such -luuid or -ldevmapper). Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: generic blkid/volume_id wrapper, use blkid_evaluate_*Karel Zak2009-02-171-9/+7Star
| | | | | | | | | | | | | | | | | | * 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>
* build-sys: libtoolize mount/Makefile.amKarel Zak2009-02-131-36/+52
| | | | | | | | * cleanup mount/Makefile.am * add {VOLUMEID,BLKID}_CFLAGS -- necessary for pkg-config * add support for linking with in-tree libblkid Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: move realpath.c code to lib/Karel Zak2009-02-111-9/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: fix mount_static_LDADDKarel Zak2008-12-121-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: add swap format detection and pagesize checkMatthias Koenig2008-12-051-2/+2
| | | | | | | | | | | | | | | | As swap format depends on the pagesize being used, it may happen that the pagesize of the swap space and the current pagesize differ, resulting in swapon to fail when trying to enable such a swap space. In such a case swapon should rather reinitialize the swap space. [kzak@redhat.com: - add blkdev.c to the global swapon_SOURCES - don't try to detect for huge pages on small swap areas (or when read() returns less than MAX_PAGESIZE) - fix fprintf() format string] Co-Author: Olaf Hering <olh@suse.de> Signed-off-by: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move pivot_root(8) to sys-utilsKarel Zak2008-11-191-5/+0Star
| | | | | | | | This patch moves pivot_root.{8,c) from mount/ to sys-utils/ directory. There is not ant relation between pivot_root source code and the rest of code in the mount. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --enable-static-programsStepan Kasal2008-02-181-3/+28
| | | | | | | | Add support for static versions of mount, umount, losetup, fdisk, and sfdisk. Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Stepan Kasal <skasal@redhat.com>
* build-sys: use dist_man_MANS instead of man_MANSStepan Kasal2007-12-171-2/+2
| | | | Signed-off-by: Stepan Kasal <skasal@redhat.com>
* mount: cleanup usage of _PATH_*Karel Zak2007-11-281-1/+1
| | | | | | | The macros MOUNTED and MNTTAB are deprecated. This patch standardize and consolidate all path macros and remove mount_paths.h. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix missing deps for swaponMatthias Koenig2007-11-131-0/+1
| | | | Signed-off-by: Matthias Koenig <mkoenig@suse.de>
* mount: use blkdev_get_size()Karel Zak2007-11-081-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: cleanup KERNEL_VERSION, remove my_dev_t.hKarel Zak2007-11-071-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: canonicalize loopfile nameKarel Zak2007-10-261-2/+2
| | | | | | | | | | When setting up a loop device, canonicalize the loop file name. This simplifies a later identification of loop file names when querying the loop devices. Co-Author: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: remove duplicate xstrdup() and error()Karel Zak2007-10-251-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: factor out common parts from mount/Makefile.amStepan Kasal2007-05-221-21/+16Star
| | | | | Signed-off-by: Stepan Kasal <skasal@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: fsprobe: add libvolume_id supportKarel Zak2007-05-181-0/+9
| | | | | | Signed-off-by: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: fsprobe: make fsprobe_get_devname functions more genericKarel Zak2007-05-171-1/+1
| | | | | | | | | | | 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: fsprobe: remove mount_guess_fstype.{c,h}Karel Zak2007-05-171-5/+3Star
| | | | | Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: fsprobe: remove non-blkid codeKarel Zak2007-05-171-5/+6
| | | | | | | This patch removes old FS detection code and enables blkid code only when HAVE_BLKID is defined. Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: fsprobe: rename files to fsprobe_*Karel Zak2007-05-171-3/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: kill mount_guess_rootdevStepan Kasal2007-05-161-2/+1Star
| | | | | | It's not used. Signed-off-by: Stepan Kasal <skasal@redhat.com>
* build-sys: remove swapargs.h, move the tests to main configure.acStepan Kasal2007-05-161-9/+1Star
| | | | | | | Do not use header swapargs.h, generated by script swap.configure; use the standard AC_DEFINE method in configure.ac. Signed-off-by: Stepan Kasal <skasal@redhat.com>
* build-sys: move -D flags to *_CPPFLAGSStepan Kasal2007-05-161-2/+2
| | | | | | | Preprocessor options belong to *_CPPFLAGS; add $(AM_CPPFLAGS) as we want to amend it, not override. Signed-off-by: Stepan Kasal <skasal@redhat.com>
* build-sys: mount/Makefile.am tiny cleanup IIStepan Kasal2007-05-161-7/+9
| | | | | | Style change: init the *_LDADD vars, then amend them with +=. Signed-off-by: Stepan Kasal <skasal@redhat.com>
* build-sys: do not build convenience libraries in lib/Stepan Kasal2007-05-161-4/+4
| | | | | | | Build lib/*.c individually for each project which uses it, so that the right set of flags is applied each time. Signed-off-by: Stepan Kasal <skasal@redhat.com>
* build-sys: mount/Makefile.am tiny cleanupStepan Kasal2007-05-161-11/+6Star
| | | | | | | Major part of mount_SOURCES and umount_SOURCES is the same; factor it out to a new make variable. Signed-off-by: Stepan Kasal <skasal@redhat.com>
* build-sys: add SUID_LDFLAGSStepan Kasal2007-05-161-0/+2
| | | | | | | Programs which are usually installed with the setuid bit do need their own CFLAGS and LDFLAGS. SUID_LDFLAGS is analogic to SUID_CFLAGS. Signed-off-by: Stepan Kasal <skasal@redhat.com>
* build-sys: do not kick off AM_CFLAGS by SUID_CFLAGSStepan Kasal2007-05-161-2/+2
| | | | | | | SUID_CFLAGS are not meant to override the makefile-wide AM_CFLAGS. (We do not use AM_CFLAGS currently, but we will.) Signed-off-by: Stepan Kasal <skasal@redhat.com>
* mount: remove all NFS codeKarel Zak2007-05-091-6/+3Star
| | | | | | | | | | 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: add support for context, fscontext and defcontext selinux mount optionsKarel Zak2007-05-041-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add SUID_CFLAGSKarel Zak2007-04-251-0/+2
| | | | | | | | The patch allows to define special CFLAGS for typical suid programs (like mount, umount, chfn, ...). Some distributions use for example "-fpic" for suid binaries. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add lock_mtab() performance and reliability testKarel Zak2007-03-281-0/+3
| | | | | | | The test starts concurrently many processes that use lock_mtab() as lock for access to same file. Signed-off-by: Karel Zak <kzak@redhat.com>