summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* libmount: fix fstype cachingKarel Zak2011-06-231-15/+27
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: rename in cache.cKarel Zak2011-06-231-16/+16
| | | | | | * don't use mnt_ prefix for static functions Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: clean up cache.cKarel Zak2011-06-231-50/+51
| | | | | | * rename fields in the cache entry to be more readable... Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add generic function to read table for contextKarel Zak2011-06-223-1/+55
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: allow to set parser callback to contextKarel Zak2011-06-215-7/+35
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mountpoint: add new commandKarel Zak2011-06-217-2/+63
| | | | | | | | | | This is libmount based re-implementation of the mountpoint(1) command. The original implementation is maintained in sysvinit suite. The mountpoint(1) in util-linux is not enabled by default (for now) -- use --enable-mountpoint to enable the util. Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update TODO fileKarel Zak2011-06-211-8/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: list all known filesystems/RAIDs (add -k option)Karel Zak2011-06-205-1/+38
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add debug messageKarel Zak2011-06-201-3/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update TODO fileKarel Zak2011-06-201-6/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [procutils.c] improve robustnessKarel Zak2011-06-201-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move BUILD_SCHEDUTILS to top-level MakefileKarel Zak2011-06-202-5/+4Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [linux_version.c] simplify version parsingKarel Zak2011-06-201-11/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: detect VMware hypervisorStephen Hemminger2011-06-201-2/+6
| | | | | | | Add detection of VMware. Tested on VMware Workstation 7.1.4 Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
* misc: hurd build fixesSamuel Thibault2011-06-203-3/+22
| | | | | | | | | | | | * Make blkdev_is_misaligned return 0 when BLKALIGNOFF is not available. * Make procutils.c include c.h to get a PATH_MAX replacement. * Provide agetty.c USE_SYSLOG, DEFAULT_VCTERM and DEFAULT_STERM defaults for Hurd. * Make agetty.c only deal with OFDEL, XCASE and VSWTCH if they are available. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: add ufstype=ufs2 to mount.8Karel Zak2011-06-141-0/+6
| | | | | Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=691338 Signed-off-by: Karel Zak <kzak@redhat.com>
* login: fix typos in man pageKarel Zak2011-06-141-2/+2
| | | | | Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=675181 Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.minix: remove unused variablesKarel Zak2011-06-141-4/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: don't ignore swap UUID if only first byte is zeroRichard W.M. Jones2011-06-141-1/+1
| | | | | | | | [kzak@redhat.com: - remove memcmp(zero_uuid, ...), library already checks for empty UUIDs] Signed-off-by: "Richard W.M. Jones" <rjones@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* mkfs.minix: add fs version optionsDavidlohr Bueso2011-06-142-3/+10
| | | | | | | Like the original minix mkfs, add the -1 and -2 argument options to specify the version of the filesystem to create. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* mkfs.minix: standardize superblock attribute settingsDavidlohr Bueso2011-06-141-5/+27
| | | | | | | | Because of the dependence of fs_version, some superblock attributes will vary, so simplify the logic of assigning values to maxsize and the amount of zones related to each filesystem, thus making setup_tables() more readable. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* test_sysinfo: fix printf formatKarel Zak2011-06-141-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: Don't use asm/io.h if sys/io.h can't be foundJosiah Worcester2011-06-142-5/+14
| | | | | | | [kzak@redhat.com: - check for obsolete asm/io.h in configure.ac] Signed-off-by: Josiah Worcester <josiahw@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* test_sysinfo: Use CHAR_BIT*sizeof(void*) instead of __WORDSIZE.Josiah Worcester2011-06-141-1/+1
| | | | Signed-off-by: Josiah Worcester <josiahw@gmail.com>
* lib: [tt.c] Fix mbs_width macro for systems without WIDECHARJosiah Worcester2011-06-141-1/+1
| | | | Signed-off-by: Josiah Worcester <josiahw@gmail.com>
* checktty: Use NGROUPS_MAX instead of NGROUPSJosiah Worcester2011-06-141-2/+2
| | | | Signed-off-by: Josiah Worcester <josiahw@gmail.com>
* fsck, checktty, flock: Use more portable includes.Josiah Worcester2011-06-143-1/+6
| | | | Signed-off-by: Josiah Worcester <josiahw@gmail.com>
* fdisk, display, hexdump.h: Use standard C types instead of u_int, u_char, ↵Josiah Worcester2011-06-143-35/+35
| | | | | | u_long, etc. Signed-off-by: Josiah Worcester <josiahw@gmail.com>
* libmount: add mount support for loopdevsKarel Zak2011-06-107-26/+261
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [loopdev.c] cleanup flags usageKarel Zak2011-06-102-18/+104
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: minor changes in sample programKarel Zak2011-06-091-6/+25
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update blkid MD testKarel Zak2011-06-091-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use top-level directory for libblkid rather than shlibs/blkidKarel Zak2011-06-09116-16/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use top-level directory for libmount rather than shlibs/mountKarel Zak2011-06-0939-18/+18
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use top-level directory for libuuid rather than shlibs/uuidKarel Zak2011-06-0936-9/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update TODO fileKarel Zak2011-06-081-0/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mkfs.minix: use inode wrappersDavidlohr Bueso2011-06-081-11/+21
| | | | | | | Use a common function for creating the root and bad inode, without worring about the fs version. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* docs: update DEPRECATED fileKarel Zak2011-06-081-5/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* simpleinit: remove this deprecated set of utilsKarel Zak2011-06-0815-2750/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount.8: remove reprecated bh/nobh options from the manual pageLukas Czerner2011-06-081-11/+6Star
| | | | | | | | | Bh and nobh mount option has been deprecated in ext4 (206f7ab4f49a2021fcb8687f25395be77711ddee) and in ext3 (4c4d3901225518ed1a4c938ba15ba09842a00770) so remove those options from documentation. Signed-off-by: Lukas Czerner <lczerner@redhat.com>
* minix: fix warningDavidlohr Bueso2011-06-081-2/+0Star
| | | | | | This patch fixes an unused variable warning. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* fstrim, setarch: replace error() with err()Francesco Cosoleto2011-06-082-16/+11Star
| | | | | | | | | | This should improve a bit the portability as error() is a GNU extension and util-linux provides fallbacks for err.h functions. Fix compilation with icc, broken due to a reference to `__builtin_va_arg_pack' in error.h using the -gcc default option. Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
* tests: add lscpu dumps from three Dell's & a XenSami Kerola2011-06-088-0/+121
| | | | | | | | | | | | | | | | x86_64-dell_poweredgeR610 Ubuntu 11.04 kernel 2.6.38-8 x86_64-dell_poweredge1950 Red Hat EL 4.5 kernel 2.6.9-55.ELsmp x86_64-dell_e4310 Red Hat EL 5.3 kernel 2.6.18-194.17.4.el5 x86_64-el5xen Red Hat EL 5.6 kernel 2.6.18-238.el5xen Signed-off-by: Sami Kerola <sami.kerola@tomtom.com>
* cfdisk: fix gcc warning (unused variable)Karel Zak2011-06-081-1/+1
| | | | | | | cfdisk.c: In function ‘fp_printf’: cfdisk.c:1760:12: warning: variable ‘x’ set but not used [-Wunused-but-set-variable] Signed-off-by: Karel Zak <kzak@redhat.com>
* fstrim: cast from __u64 to standard C typesKarel Zak2011-06-081-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: remove unused variablesKarel Zak2011-06-081-4/+6
| | | | | | | | | hwclock.c: In function ‘set_hardware_clock’: hwclock.c:467:7: warning: variable ‘err’ set but not used [-Wunused-but-set-variable] hwclock.c: In function ‘main’: hwclock.c:1461:7: warning: variable ‘ARCconsole’ set but not used [-Wunused-but-set-variable] Signed-off-by: Karel Zak <kzak@redhat.com>
* cytune: remove unused variableKarel Zak2011-06-081-4/+1Star
| | | | | | | cytune.c: In function ‘summary’: cytune.c:105:9: warning: variable ‘j’ set but not used [-Wunused-but-set-variable] Signed-off-by: Karel Zak <kzak@redhat.com>
* namei: remove unused variableKarel Zak2011-06-081-2/+1Star
| | | | | | | namei.c: In function ‘print_namei’: namei.c:368:16: warning: variable ‘prev’ set but not used [-Wunused-but-set-variable] Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: don't free() uninitialized variableKarel Zak2011-06-081-1/+1
| | | | | | | | blkid.c: In function ‘main’: blkid.c:656:6: warning: ‘res’ may be used uninitialized in this function [-Wuninitialized] blkid.c:623:9: note: ‘res’ was declared here Signed-off-by: Karel Zak <kzak@redhat.com>
* login: cleanup unused variablesKarel Zak2011-06-081-6/+9
| | | | | | | | login.c: In function ‘main’: login.c:389:40: warning: variable ‘errsv’ set but not used [-Wunused-but-set-variable] login.c:389:9: warning: variable ‘ask’ set but not used [-Wunused-but-set-variable] Signed-off-by: Karel Zak <kzak@redhat.com>