- Oct 18, 2011
-
-
Sami Kerola authored
Definition name is changed to UL_BUILD_BUG_ON_ZERO to avoid collision with a system header. ../include/c.h:72:1: warning: "BUILD_BUG_ON_ZERO" redefined In file included from /usr/include/sys/sysinfo.h:25, from dmesg.c:16: /usr/include/linux/kernel.h:34:1: warning: this is the location of the previous definition Signed-off-by:
Sami Kerola <kerolasa@iki.fi>
-
Dave Reisner authored
This fixes a segfault in mount (and possibly elsewhere) when invoked without a -t parameter. Broken in 7ef9fd7c when the common xalloc.h libs were introduced. Signed-off-by:
Dave Reisner <dreisner@archlinux.org>
-
Petr Uzel authored
Unsigned long is only 4 bytes long on i586, which is not enough to represent sector number on todays large disks. Use unsigned long long, which is 8 bytes long, to store the sector numbers internally, so that we could later make some sanity checks and warn the user if the sector numbers exceed the limits imposed by DOS partition table format. Signed-off-by:
Petr Uzel <petr.uzel@suse.cz>
-
Petr Uzel authored
Signed-off-by:
Petr Uzel <petr.uzel@suse.cz>
-
Petr Uzel authored
unsigned long is 4 bytes long on i586, which is not enough for big HDD's with 512B sectors. Use unsigned long long, which is 8 bytes. Signed-off-by:
Petr Uzel <petr.uzel@suse.cz>
-
Petr Uzel authored
If the specified format is not cylinders, make the cylinder boundary check only print a warning and proceed anyways. Signed-off-by:
Petr Uzel <petr.uzel@suse.cz>
-
Petr Uzel authored
Signed-off-by:
Petr Uzel <petr.uzel@suse.cz>
-
Dave Reisner authored
Signed-off-by:
Dave Reisner <dreisner@archlinux.org>
-
Eric Sandeen authored
Specifying the "-n" option to uuidd would incorrectly fall through to the "-p" case, and assign that number to the pidfile_path. Signed-off-by:
Eric Sandeen <sandeen@redhat.com>
-
Francesco Cosoleto authored
Found by clang. Signed-off-by:
Francesco Cosoleto <cosoleto@gmail.com>
-
Francesco Cosoleto authored
Found by clang. Signed-off-by:
Francesco Cosoleto <cosoleto@gmail.com>
-
Petr Uzel authored
To pleace an exclusive lock on a file, NFSv4 requires the file to be opened RW because of the emulation of flock() by fcntl(): http://www.spinics.net/lists/linux-nfs/msg18502.html So instead of O_RDONLY, open the file in O_RDWR if access() indicates it is possible (unless shared lock is requested). From: Michal Kubecek <mkubecek@suse.cz> Signed-off-by:
Petr Uzel <petr.uzel@suse.cz>
-
Karel Zak authored
Reported-by:
xinglp <xinglp@gmail.com> Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=739522 Signed-off-by:
Karel Zak <kzak@redhat.com>
-
Karel Zak authored
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=737091 Reported-by:
Eric Paris <eparis@redhat.com> Signed-off-by:
Karel Zak <kzak@redhat.com>
-
Petr Uzel authored
If the 'open' fails we 'goto err' which runs 'sysfs_deinit()' on a 'cxt' which hasn't been fully initialised. The 'dir_fd' is still 0, so sysfs_deinit calls "close(0)". Addresses: https://bugzilla.novell.com/show_bug.cgi?id=714151 Reported-by:
Diego Ercolani <diego.ercolani@gmail.com> Analysed-by:
Neil Brown <nfbrown@suse.com> Signed-off-by:
Petr Uzel <petr.uzel@suse.cz>
-
Karel Zak authored
Signed-off-by:
Karel Zak <kzak@redhat.com>
-
Karel Zak authored
Signed-off-by:
Karel Zak <kzak@redhat.com>
-
Karel Zak authored
Signed-off-by:
Karel Zak <kzak@redhat.com>
-
Karel Zak authored
Signed-off-by:
Karel Zak <kzak@redhat.com>
-
Karel Zak authored
Signed-off-by:
Karel Zak <kzak@redhat.com>
-
Karel Zak authored
Signed-off-by:
Karel Zak <kzak@redhat.com>
-
Karel Zak authored
Signed-off-by:
Karel Zak <kzak@redhat.com>
-
Francesco Cosoleto authored
Spotted by EKOPath compiler. Signed-off-by:
Francesco Cosoleto <cosoleto@gmail.com>
-
Sami Kerola authored
Signed-off-by:
Sami Kerola <kerolasa@iki.fi>
-
Heiko Carstens authored
First check path before accessing files to be sure they actually exist. This is necessary when also informations for offline CPUs will be printed. Since we do not necessarily know if "cpu is offline" means the same as "path does not exist" just check for it. Signed-off-by:
Heiko Carstens <heiko.carstens@de.ibm.com>
-
Heiko Carstens authored
Simplify the logic to "always print a ',' for each cache except if it is the last one. This is also a preparation patch for printing the cache column for offline CPUs where it would print one colon too much because of the current logic. Signed-off-by:
Heiko Carstens <heiko.carstens@de.ibm.com>
-
Heiko Carstens authored
The extended parsable output prints a colon instead of comma between each item. The case where a CPU doesn't belong to any cache was not converted. Just fix this. Signed-off-by:
Heiko Carstens <heiko.carstens@de.ibm.com>
-
Heiko Carstens authored
Fix typo where the comma operator has been introduced. Use a semicolon instead so we end up with simple assignment expressions. Signed-off-by:
Heiko Carstens <heiko.carstens@de.ibm.com>
-
maximilian attems authored
Needed as definition for usage in close_all_fds(). Noticed on klibc build. Signed-off-by:
maximilian attems <max@stro.at>
-
Karel Zak authored
Reported-by:
Francesco Cosoleto <cosoleto@gmail.com> Signed-off-by:
Karel Zak <kzak@redhat.com>
-
Natanael Copa authored
We should only include the libintl.h when NLS is requested. This fixes issue when building util-linux with uClibc. Signed-off-by:
Natanael Copa <ncopa@alpinelinux.org> Signed-off-by:
Karel Zak <kzak@redhat.com>
-
Karel Zak authored
Reported-by:
xinglp <xinglp@gmail.com> Signed-off-by:
Karel Zak <kzak@redhat.com>
-
Karel Zak authored
Signed-off-by:
Karel Zak <kzak@redhat.com>
-
Karel Zak authored
Signed-off-by:
Karel Zak <kzak@redhat.com>
-
Karel Zak authored
* dmesg(1) incorrectly assumes that lines like "<6>\n" are broken. * it's more robust to assume the end of the record is "\n<" * print \n for empty lines Reported-by:
"Gabor Z. Papp" <gzp@papp.hu> Signed-off-by:
Karel Zak <kzak@redhat.com>
-
Heiko Carstens authored
The readable output prints also informations like cores per socket etc. On newer kernel versions on s390 this information is available via /proc/sysinfo. However it does not contain the layout of the guest but the layout of the real machine. Nevertheless this is better than random guessing with completely broken numbers like we have it now on s390. If the information is not available we fall back to old mechanism with more or less random numbers. Signed-off-by:
Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by:
Karel Zak <kzak@redhat.com>
-
Heiko Carstens authored
The fallback calculation of nthreads did not consider books. In order to avoid division/multiply by/with zero make sure each number used is at least "1". Signed-off-by:
Heiko Carstens <heiko.carstens@de.ibm.com>
-
Heiko Carstens authored
Completely virtualized architectures like s390 may have multiple virtual sockets and/or cores where each of them has a different number of cores and cpus. So the general assumption within the allocation scheme that e.g. each socket contains the same number of cores is not necessarily true. To make sure the arrays are always large enough we simply allocate enough memory so that each array could hold cpu masks for all present cpus. Signed-off-by:
Heiko Carstens <heiko.carstens@de.ibm.com>
-
Heiko Carstens authored
Just make the s390 bogomips detection line look like all others. Signed-off-by:
Heiko Carstens <heiko.carstens@de.ibm.com>
-
Petr Uzel authored
Signed-off-by:
Petr Uzel <petr.uzel@suse.cz>
-