Commit Graph

8161 Commits

Author SHA1 Message Date
Karel Zak 077698f5d6 bash-completion: update cfdisk
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-25 13:44:08 +02:00
Karel Zak 675821f4bd bash-completion: update fdisk
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-25 13:41:27 +02:00
Karel Zak e3a4aaa7d3 fdisk: add long options, cleanup man page and usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-25 13:31:14 +02:00
Karel Zak 505dedfec4 docs: fix minor things in man-page howto
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-25 13:21:15 +02:00
Karel Zak 425ae8f50c docs: add fdisk mac support to TODO file
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-25 11:39:30 +02:00
David Shea cbccd7a4f8 libblkid: correct the return values in squashfs probe
Returning -1 can cause squashfs v3 detection to make v4 detection fail.

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-24 10:54:48 +02:00
Karel Zak 11712b6667 libfdisk: (dos) count fisrt usable LBA to total number of used sectors
The check() function counts number of used sectors, but it counts only
partitions. This is mistake, the area before the first partition is
also "used" place (boot loaders or we have to align the first partition
to disk I/O limits, etc).

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-24 10:32:25 +02:00
Karel Zak 63fb717d8c libfdisk: (dos) use check() for dos-comaptible mode only
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-24 09:40:56 +02:00
Thorsten Wilmer 9bb8caff87 libfdisk: (dos) calculation of total size based on CHS in check function
Many people report a problem with the message if (cylinders <= 1024 &&
start != total) fprintf(stderr, _("Partition %d: previous sectors %d
disagrees with " "total %d\n"), n, start, total);

This message comes from the fact that the previous code caluclates the
total number of sectors in the wrong way.

The formula should be total = (real_c * heads + h) * sectors + real_s;

As a Cylinder consists of some heads * sectors A Head consists of some
sectors and finally sectors are the smallest unit

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-24 09:40:06 +02:00
Karel Zak b1f03df798 libmount: special treatment for auto in fstype pattern
Let's support

  mount -t ext2,auto /dev/sde /media/stick

Reported-by: Andreas Henriksson <andreas@fatal.se>
Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=506695
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-23 12:42:33 +02:00
peppe 033effcacd hwclock: sometimes one day lasts 23 hours.
If less than 23 hours have passed since the last calibration, hwclock
says "Not adjusting drift factor because it has been less than a day since
the last calibration.", but in fact compares to 23 hours, not 24.

This was originally reported at:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689534

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
2014-06-23 11:48:14 +02:00
Karel Zak cabce4ea71 script: clean up code to genenrate Star/Done messages
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-23 11:41:31 +02:00
Andreas Henriksson dc47cfee48 script: silence the done message on --quiet as well
Apparently James Hunts patch (which he provided a long time
ago) is no longer covering it all.

This followup patch also silences the "Script done ..." message
when --quiet is used.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
2014-06-23 11:31:08 +02:00
James Hunt 1474c09ea8 script: --quiet option is not quiet.
Specifying 'script --quiet ...' still produces the 'Script started'
message in the typescript file. The --quiet option implies that the
script program should not log any of its output to the typescript file.

Originally reported at:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=693966

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
2014-06-23 11:31:07 +02:00
Karel Zak d121efdb6e cfdisk: add --zero command line option
The option has been supported by previous versions, we can easily
support it too.

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-20 12:17:53 +02:00
Karel Zak dd626abdbe cfdisk: don't offer BSD
BSD is nested within DOS partition, so for disk without any partition
table it does not make any sense to offer BSD label.

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-20 12:07:30 +02:00
Karel Zak 6da288af2e Merge branch 'master' of https://github.com/nazarov-yuriy/util-linux 2014-06-19 11:52:27 +02:00
Samuel Thibault 88e0f3df66 build-sys: fixes for non-Linux systems
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-19 10:35:23 +02:00
Karel Zak 2ad2196349 build-sys: support ./configure ADJTIME_PATH=
.. to override the default /etc/adjtime path.

Reported-by: Bruce Dubbs <bruce.dubbs@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-19 10:30:56 +02:00
Yuriy Nazarov f0fe8ab50d lib/loopdev.c: reset errno before strtol() call
Fixed unsuccessful attempt to find unused loop devices if 0-7
devices already used and /dev/loop directory exists.
2014-06-19 03:12:22 +04:00
Karel Zak ae2f2f5617 build-sys: add libsmartcols to ko-release-gen script
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-18 15:42:09 +02:00
Karel Zak 4ee839dfe2 build-sys: release++ (v2.25-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-18 14:40:28 +02:00
Karel Zak a6fdc280ea docs: add v2.25-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-18 14:38:55 +02:00
Karel Zak bddcbbf4ae docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-18 13:16:03 +02:00
Karel Zak 0ed2f80bd0 po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-18 13:11:17 +02:00
Wylmer Wang 5d768cf9fc po: update zh_CN.po (from translationproject.org) 2014-06-18 13:02:37 +02:00
Rafael Ferreira 54ca8ddeec po: update pt_BR.po (from translationproject.org) 2014-06-18 13:02:37 +02:00
Takeshi Hamasaki 9a0c2a866a po: update ja.po (from translationproject.org) 2014-06-18 13:02:37 +02:00
Mario Blättermann c9500cbd57 po: update de.po (from translationproject.org) 2014-06-18 13:02:37 +02:00
Joe Hansen ed1c96deae po: update da.po (from translationproject.org) 2014-06-18 13:02:36 +02:00
Petr Písař 1a156983e2 po: update cs.po (from translationproject.org) 2014-06-18 13:02:36 +02:00
Karel Zak 8eba5feabe mount: fix man page [checkmans]
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-18 12:58:49 +02:00
Karel Zak f272b32c57 lib/fileutils: xalloc stuff in library-like code
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-18 12:57:42 +02:00
Karel Zak 65322517eb lscpu: fix ifdef HAVE_sys_io_h [checkconfig]
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-18 12:51:25 +02:00
Karel Zak b56dd06df6 tests: update build tests
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-18 12:46:04 +02:00
Karel Zak fd0e5ae46e build-sys: add non-libsmartcols.conf
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-18 12:44:37 +02:00
Karel Zak 25472aaf94 libblkid: fix compiler warning [-Wimplicit-function-declaration]
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-18 11:27:39 +02:00
Karel Zak e99b64e7fa lib/sysfs: fix compiler warning [-Wunused-variable]
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-18 11:25:47 +02:00
Karel Zak 150e696dac libmount: don't touch mtab when mount -n specified
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1109367
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-17 15:38:14 +02:00
Karel Zak d8ae3d977b tests: remove test_wholedisk
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-17 12:45:28 +02:00
Karel Zak 62acb047a6 build-sys: remove obsolete wholedisk.c
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-17 12:16:29 +02:00
Karel Zak 83b69e409c sfdisk: use sysfs_devno_is_wholedisk()
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-17 12:16:05 +02:00
Karel Zak a22c6eb206 fdisk: use sysfs_devno_is_wholedisk()
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-17 12:15:59 +02:00
Karel Zak b55e5886ea lib/sysfs: add sysfs_devno_is_wholedisk()
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-17 12:15:01 +02:00
Karel Zak 39866431ee lib/sysfs: add sysfs_devno_is_lvm_private() from libblkid
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-17 11:20:32 +02:00
Karel Zak 097e7f2ff4 findmnt: add --nocanonicalize to avoid realpath()
* in some cases is realpath() overkill
 * sometimes you want to search for explicitly specified paths (e.g.
   "findmnt --fstab /mnt/symlink") rather than for real paths
 * you want to avoid readlink() and stat() on NFS

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-16 15:47:50 +02:00
Karel Zak 1469736053 build-sys: fix smartcols.pc
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-16 15:18:20 +02:00
Karel Zak 8675a3503d build-sys: move libsmartcols.so to /lib if they exists
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-16 15:00:33 +02:00
Thomas Petazzoni 6e90f2b479 Only move shared libraries to /lib if they exists
In several Makemodule.am, there is a install-exec-hook-<library>
target whose role is to move the shared library from /usr/lib to /lib,
while keeping a symbolic link /usr/lib/libuuid.so ->
../../lib/<library>.so.<version>.

However, when util-linux is built with --enable-static
--disable-shared (as is needed on noMMU platforms that don't support
shared libraries), no <library>.so is built, but the
install-exec-hook-libuuid creates an invalid /usr/lib/<library>.so
symbolic link, pointing to ../../lib (yes, the directory). This causes
troubles later one when other libraries/programs are compiled with
-l<library>, as gcc thinks a shared library is available because
there's a file named /usr/lib/<library>.so.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-06-16 14:53:09 +02:00
Karel Zak 9123621450 Merge branch 'tests-utmp' of https://github.com/rudimeier/util-linux
* 'tests-utmp' of https://github.com/rudimeier/util-linux:
  tests: skip some last tests if no dns support
  tests: split last into dns and nodns subtests
  tests: add utmpdump-circle test (arch independent)
  tests: provide missing test data for "last" on exotic archs
  tests: skip utmpdump tests for exotic archs
  tests: merge last/ and utmpdump/ into new utmp/ dir
  utmpdump: fix localtime() error handling
2014-06-16 14:37:39 +02:00