summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-09-26po: update es.po (from translationproject.org)Santiago Vila Doncel1-4214/+4976
2013-09-26po: update de.po (from translationproject.org)Arun Persaud1-4175/+4953
2013-09-26po: update da.po (from translationproject.org)Joe Hansen1-4236/+5102
2013-09-26po: update cs.po (from translationproject.org)Petr Písař1-1251/+700
2013-09-26po: update ca.po (from translationproject.org)Josep Puigdemont1-4210/+4966
2013-09-26last: fix man page groff warningKarel Zak1-1/+1
tbl:<standard input>:166: column separation specified for last column Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26mount: fix repeating words in the man pageKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26fdisk: use xalloc stuffKarel Zak1-11/+9
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26libfdisk: (bds) cleanup includesKarel Zak1-2/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26build-sys: fix include Makemodule.amKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26tests: improve cal --color testKarel Zak1-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26libblkid: Get rid of an unnecessary checkKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26libmount: make mnt_fs_{ap,pre}pend_options() more robustKarel Zak1-0/+6
We should not use the results from mnt_split_optstr() if the function failed. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26libmount: Remove stale comment on mnt_context_mount()Namhyung Kim1-5/+0
The commit f9906424 ("libmount: add post-mount checks to detect ro/rw") added necessary check so the comment is not valid anymore. Signed-off-by: Namhyung Kim <namhyung@gmail.com>
2013-09-26libmount: Set each optstr's to NULL if failedNamhyung Kim1-3/+9
When mnt_split_optstr() failed in the middle, vfs, fs, user optstr's are freed but not reset. It can lead to double frees at the end of mnt_fs_{ap,pre}pend_options(). Signed-off-by: Namhyung Kim <namhyung@gmail.com>
2013-09-26libmount: Free splitted optstr's when error occurredNamhyung Kim1-1/+5
When strdup() failed, u, v and f optstr's should be freed. Signed-off-by: Namhyung Kim <namhyung@gmail.com>
2013-09-26libmount: Get rid of an unnecessary checkNamhyung Kim1-1/+1
libmount_debug_mask was OR'ed to MNT_DEBUG_INIT so it should be non-null. Thus the check is pointless. Signed-off-by: Namhyung Kim <namhyung@gmail.com>
2013-09-25tests: update odd output fdisk testKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-25ORIG_HEADKarel Zak2-8/+85
tests: update sun label test * add fdisk -l outputs (to make the test more usable) * use more usable geometry * don't expect that 'create sun label' oprations asks for C/H/S (we follows fdisk_context defaults) Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-25fdisk: print geometry for dos-compatible mode tooKarel Zak1-1/+1
2013-09-25libfdisk: (sun) make it more obvious why the first sector movedKarel Zak2-11/+30
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-25libfdisk: improve fdisk_save_user_geometry()Karel Zak1-4/+9
The functions should not overwrite old setting if the new value (C/H/S) is zero. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-25libfdisk: use context geometry in SGI and SUNKarel Zak2-47/+30
* don't call HDIO_GETGEO ioctls in the drivers * use context geometry (so user can overwrite it by -C/H/S options) * use default geometry is ioctl does not return anything Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-25tests: remove remaining set -xKarel Zak1-6/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-25tests: update lscpu testsKarel Zak3-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-25libfdisk: fix possible floating point exceptionKarel Zak1-1/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-25libfdisk: gpt: loosen check fot pmbr size in lbaDavidlohr Bueso1-2/+6
While most disk partitioning tools out there create a pMBR's size in lba to be the lesser of the whole disk or 2Tib, Microsoft apparently does not[1]. It always sets the entry to the maximum 32-bit limitation - even though a drive may be smaller than that. Loosen this check and only verify that the size is either the whole disk or 0xFFFFFFFF. No tool in its right mind would set it to any value other than these. [1] http://thestarman.pcministry.com/asm/mbr/GPT.htm#GPTPT Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
2013-09-25libfdisk: gpt: avoid unnecessary pmbr checkDavidlohr Bueso1-1/+2
We only jump to the 'check_hybrid' label when a valid pmbr is detected, so we need not recheck again. Move the label's logic so it doesn't include the check. Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
2013-09-25lscpu: report cpu min mhzDavidlohr Bueso1-13/+37
The lscpu tool only shows the current and max CPU frequencies, however, in many scenarios this is not enough. If there are energy saving situations (like some CPUs being idle, or not fully used) the cpugov can lower this value. Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
2013-09-20pylibmount: rewrite to be py2/py3 universalOndrej Oprala14-158/+256
Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-20build-sys: support --with-python[={2,3}]Karel Zak2-18/+26
* we use pkg-config to get CGLAGS and LIBS, use package specific config (e.g. python-config) is non-sense. * default is to follow distribution and use pkg-config module name "python". This is probably symlink to python2.pc or python3.pc. * --with-python=2 forces to pkg-module "python2 >= 2" * --with-python=3 forces to pkg-module "python3 >= 3" Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-20libmount: free username after checkDave Reisner1-0/+2
Leak reported by valgrind: ==14226== 7 bytes in 1 blocks are definitely lost in loss record 1 of 1 ==14226== at 0x4C2757B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==14226== by 0x5534839: strdup (in /usr/lib/libc-2.18.so) ==14226== by 0x4E53FE0: mnt_get_username (utils.c:560) ==14226== by 0x4E456A5: mnt_context_prepare_umount (context_umount.c:413) ==14226== by 0x4E464F7: mnt_context_umount (context_umount.c:851) ==14226== by 0x403476: umount_one (umount.c:299) ==14226== by 0x402B34: main (umount.c:629) Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2013-09-20libmount: use memmove when overlap possibleDave Reisner1-1/+1
When unmounting some mountpoints as an unprivileged user (via the 'user' option in fstab), the umount fails. Debug output of 'umount /opt' reveals: 17760: libmount: CXT: [0x22890e0]: do umount 17760: libmount: UTILS: moving to /opt parent 17760: libmount: CXT: current directory moved to / [last_component='opt'] 17760: libmount: CXT: [0x22890e0]: umount(2) [target='pt', flags=0x00000000] valgrind shows the problem: ==23544== Source and destination overlap in memcpy(0x58d1370, 0x58d1371, 4) ==23544== at 0x4C2BBC3: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==23544== by 0x4E537C3: mnt_chdir_to_parent (utils.c:168) ==23544== by 0x4E45E4C: mnt_context_do_umount (context_umount.c:601) ==23544== by 0x4E46513: mnt_context_umount (context_umount.c:855) ==23544== by 0x403476: umount_one (umount.c:299) ==23544== by 0x402B34: main (umount.c:629) ==23544== ref: https://bugs.archlinux.org/task/36968 Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2013-09-20bash-completion: fix typos in mkfs.bfs logicMike Frysinger1-2/+2
There is no "bfs" command. Change this file to match the other mkfs files where we have a "mkfs." prefix. Reported-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-09-19tests: update fdisk outputsKarel Zak5-56/+63
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-19tests: update sun label testKarel Zak1-7/+7
Note that we use a little different label setting, so the checksums are also different. For more details see commit 4170ae9cbd3ad54c9c7427212eaae6fdb030b57a. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-18tests: refresh fdisk testsKarel Zak17-520/+560
2013-09-18libfdisk: fix cylinders and sector buffer usageKarel Zak5-2/+25
- sector buffer has to be correctly deallocated - round to cylinders when use cylinder units in dos driver Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-18libfdisk: fix sectorbuffer usage in dos driverKarel Zak1-3/+35
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-17fdisk: fix 'r' in BSD menuKarel Zak1-5/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-17libfdisk: update test_ranges() codeKarel Zak1-7/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-17fdisk: remove unnecessary testKarel Zak2-31/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-17fdisk: bloody revolution in the man pageKarel Zak1-164/+169
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-17libfdisk: use fdisk_warnx() in fdisk_ask_partnum()Karel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-17fdisk: separate disks by \n in -l outputKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-17sfdisk: fix y/n mismatchKarel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-17fdisk: add debug message, use colors for -lKarel Zak2-3/+9
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: fix -lKarel Zak2-4/+8
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: remove "gpt support is new" warningKarel Zak1-4/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: remove unused code, coding style changesKarel Zak4-30/+11
Signed-off-by: Karel Zak <kzak@redhat.com>