summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* lscpu: add s390 test caseHeiko Carstens2011-09-096-0/+60
| | | | Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: add --online optionKarel Zak2011-09-092-6/+19
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add --all optionHeiko Carstens2011-09-092-6/+13
| | | | | | | The parsable output includes only lines of online CPUs. To also include lines for all offline CPUs the "--all" option can be specified. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: add online state to outputHeiko Carstens2011-09-092-7/+17
| | | | | | | | | | | | | | lscpu only prints lines for online CPUs. At least for the human readable list the offline CPUs are of interest as well. In order to distinguish between online and offline CPUs introduce the "Online" column. By default the human readable output now displays online and offline CPUs. The parsable output is not changed. It will print only lines for online CPUs as it used to do. [kzak@redhat.com: - minor changes] Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add configured state to outputHeiko Carstens2011-09-092-3/+24
| | | | | | | | | CPUs may be in a configured or deconfigured state depending if the CPU resource may be used by the guest. If a CPU is in configured state the guest may use it (i.e. set it online). It it is in deconfigured state it cannot use it before changing its state to configured. Display this CPU attribute as well. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: add human readable extended cpu table outputKarel Zak2011-09-093-26/+121
| | | | | | | | | | | | | | | | | Based on patch from Heiko Carstens <heiko.carstens@de.ibm.com>: lscpu currently only supports a parsable output which contains a row for each cpu and its attributes. This output contains only comas as separators and is hard to read for humans. Therefore add a new option "-e | --extended" which outputs the rows in a much more readable (and non-parsable) form. Just like for the -p option a list of columns can be specified that shall be included in the output. By default this option will print all columns that contain data. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: use buffer for data and headersKarel Zak2011-09-091-30/+83
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: use function to search in cpu masks arraysKarel Zak2011-09-092-36/+41
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: cleanup output modesKarel Zak2011-09-091-50/+68
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add --version optionHeiko Carstens2011-09-092-3/+12
| | | | | | | Add a --version option like most other tools have it. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: allow read_cache() to be called for offline cpusHeiko Carstens2011-09-091-0/+3
| | | | | | | | | 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>
* lscpu: simplify cache column output functionHeiko Carstens2011-09-091-3/+1Star
| | | | | | | | | 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>
* lscpu: fix cache output for extended parsable outputHeiko Carstens2011-09-091-1/+1
| | | | | | | | 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>
* lscpu: remove comma operatorHeiko Carstens2011-09-091-2/+2
| | | | | | | 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>
* mount: fix compiler warning [-Wunused-parameter]Karel Zak2011-09-082-8/+37
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --file optionKarel Zak2011-09-082-12/+101
| | | | | | | This new option is mostly for testing (to test raw logs from another boxes/kernels). Signed-off-by: Karel Zak <kzak@redhat.com>
* script: libintl.h included in nls.hKarel Zak2011-09-071-3/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: DRBD proxy data-log identification.Philipp Marek2011-09-074-0/+58
| | | | | Signed-off-by: Philipp Marek <philipp.marek@linbit.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: new magic for 8.4 style (unclean) activity log.Philipp Marek2011-09-071-2/+4
| | | | Signed-off-by: Philipp Marek <philipp.marek@linbit.com>
* libuuid: add limits.h include for OPEN_MAXmaximilian attems2011-09-071-0/+1
| | | | | | | Needed as definition for usage in close_all_fds(). Noticed on klibc build. Signed-off-by: maximilian attems <max@stro.at>
* agetty: double equals sign typo in opentty()Karel Zak2011-09-071-1/+1
| | | | | Reported-by: Francesco Cosoleto <cosoleto@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* script: fix building with --disable-nlsNatanael Copa2011-09-071-0/+2
| | | | | | | | 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>
* write: fix path for freopen()Karel Zak2011-09-061-1/+1
| | | | | Reported-by: xinglp <xinglp@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: remove extra space only after time stampKarel Zak2011-09-021-3/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove redundant __progname checkKarel Zak2011-08-311-9/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* partx: support loop devicesDavidlohr Bueso2011-08-312-2/+79
| | | | | | | | | | | | | | | | | | Add support for loop devices to add partitions. For now we make use of the max_part parameter from the loop kernel module, otherwise the feature is disabled. Below an example output: root@offbook:~/projects/util-linux/partx# ./partx -a -n 1:5 images-pt/dos+bsd.img root@offbook:~/projects/util-linux/partx# ls /dev/loop0* -ltr brw-rw---- 1 root disk 7, 0 2011-08-15 00:07 /dev/loop0 brw-rw---- 1 root disk 7, 5 2011-08-15 00:07 /dev/loop0p5 brw-rw---- 1 root disk 7, 2 2011-08-15 00:07 /dev/loop0p2 brw-rw---- 1 root disk 7, 1 2011-08-15 00:07 /dev/loop0p1 Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: fix for non-CONFIG_PRINTK_TIME kernelsKarel Zak2011-08-311-8/+8
| | | | | | | | | | | | * 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>
* whereis: fix gcc warnings [-Wsign-compare]Karel Zak2011-08-311-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'chcpu' of ā†µKarel Zak2011-08-319-5/+445
|\ | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util-linux * 'chcpu' of git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util-linux: chcpu: new tool cpuset: add option to allow cpulist_parse() to fail
| * chcpu: new toolHeiko Carstens2011-08-225-0/+437
| | | | | | | | | | | | | | | | | | | | | | | | chcpu can modify the logical state of CPUs. It can enable and disable CPUs, scan for new CPUs, change the CPU dispatching mode of the underlying hypervisor and request (configure) or give logical CPUs back (deconfigure) to the the underlying hypervisor. This is quite useful if you work a lot with virtual servers, since doing all the configuration stuff directly via sysfs becomes a pain. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
| * cpuset: add option to allow cpulist_parse() to failHeiko Carstens2011-08-154-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | This is a preparation patch for chcpu. If a cpu should be added to a cpu_set where the cpu doesn't fit into the cpu_set this got silently ignored. Since the cpu-list is user space provided it should be checked if cpus are specified that are completely out of range of the system. In order to do that add a parameter which specifies if cpulist_parse() should fail if it parses a cpu-list with "impossible" cpus. The current callers have been converted so they behave like before. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* | docs: use .LGPL extension for file with GNU Lesser LicenseKarel Zak2011-08-314-2/+2
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | Merge branch 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetitKarel Zak2011-08-3173-1331/+847Star
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetit: docs: remove duplicated text docs: require kernel support before accepting use of it docs: note about independent super block structs docs: add libmount & libblkid debug instructions Documentation: add debugging doc arch: start using arch as a usage() example docs: new file Documentation/release-schedule.txt docs: move setuid information from reame to hwclock.8 docs: clean up old readme files docs: copy contributors from legacy files to AUTHORS docs: new file Documentation/howto-man-page.txt docs: new file Documentation/source-code-management.txt docs: new file Documentation/howto-contribute.txt docs: new file Documentation/howto-compilation.txt docs: tell what the Documentation/ is about docs: add usage() howto for contributors docs: Documentation directory added docs: remove README.clear
| * | docs: remove duplicated textSami Kerola2011-08-309-874/+25Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Duplicate text is dealt by referring to license files. The `pg' command does not need separated license file because the source file has same text at top of it. http://www.spinics.net/lists/util-linux-ng/msg05069.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | docs: require kernel support before accepting use of itSami Kerola2011-08-281-0/+3
| | | | | | | | | | | | | | | | | | http://www.spinics.net/lists/kernel/msg1228993.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | docs: note about independent super block structsSami Kerola2011-08-281-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | It's normal that we use our own (on kernel independent) copy of FS superbloks. -- K. Zak http://www.spinics.net/lists/util-linux-ng/msg04812.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | docs: add libmount & libblkid debug instructionsSami Kerola2011-08-281-0/+33
| | | | | | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | Documentation: add debugging docDavidlohr Bueso2011-08-281-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Layout the base for tips on debugging util-linux programs/wrappers. [kerolasa@iki.fi: - rename file README.debug -> howto-debug.txt - wrap over 80 chars wide lines - change example commands to be relative to util-linux root - indent command examples ] Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | arch: start using arch as a usage() exampleSami Kerola2011-08-282-11/+64
| | | | | | | | | | | | | | | | | | | | | The arch command is hijacked to be example of howto write usage as defined in Documentation/howto-usage-function.txt Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | docs: new file Documentation/release-schedule.txtSami Kerola2011-08-231-0/+39
| | | | | | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | docs: move setuid information from reame to hwclock.8Sami Kerola2011-08-232-14/+14
| | | | | | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | docs: clean up old readme filesSami Kerola2011-08-236-166/+7Star
| | | | | | | | | | | | | | | | | | Removal of information which is simply wrong. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | docs: copy contributors from legacy files to AUTHORSSami Kerola2011-08-231-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See bellow who where found to contribute to former packages that has been merged to util-linux. The list is very likely to be incomplete. cfdisk Kevin E. Martin <martin@cs.unc.edu> getopt Volker Kuhlmann <v.kuhlmann@elec.canterbury.ac.nz> Bob Proulx <rwp@hprwp.fc.hp.com> agetty Peter Orbaek <poe@daimi.aau.dk> mount/umount Doug Quale <quale@saavik.cs.wisc.edu> H.J. Lu <hlu@eecs.wsu.edu> Rick Sladkey <jrs@world.std.com> Stephen Tweedie <sct@dcs.ed.ac.uk> pg Gunnar Ritter <g-r@bigfoot.de> init/getty/login Erik Troan Sander van Malssen <svm@kozmix.ow.nl> Jesse Thilo <jesse.thilo@pobox.com> David Holland <dholland@hcs.harvard.edu> Marek Michalkiewicz <marekm@i17linuxb.ists.pwr.wroc.pl> Randolph Bentson <bentson@grieg.seaslug.org> Gerhard Schneider <gs@ilfb.tuwien.ac.at> Gabriel M. Schuyler <schuyler@easiest.com> Christoph Lameter <clameter@miriam.fuller.edu> Steve Philp Eric Rasmussen <ear@usfirst.org> Alan Wendt <alan@ezlink.com> Ron Sommeling <sommel@sci.kun.nl> Juha Laiho <jlaiho@ichaos.nullnet.fi> Rickard Faith <faith@cs.unc.edu> Alvaro M. Echevarria Daniel Quinlan <quinlan@yggdrasil.com> Ross Biro <biro@yggdrasil.com> Peter Tobias <tobias@server.et-inf.fho-emden.de> Scott Telford <st@epcc.ed.ac.uk> Jeremy Fitzhardinge <jeremy@suite.sw.oz.au> Nicolai Langfeldt <janl@math.uio.no> Jaakko Hyvätti <HYVATTI@cc.helsinki.fi> Bill Reynolds <bill@goshawk.lanl.gov> Christian von Roques <roques@juliet.ka.sub.org> Mitchum DSouza Daniel Thumim <dthumim@mit.edu> Lars Wirzenius John Paul Morrison <jmorriso@rflab.ee.ubc.ca> Jun Hamano <junio@shadow.twinsun.com> Werner Almesberger <almesber@bernina.ethz.ch> Rick Sladkey <jrs@world.std.com> Anthony Rumble <arumble@extro.ucc.su.OZ.AU> Linus Torvalds Steven S. Dick <ssd@nevets.oau.org> Ed Carp Miquel van Smoorenburg <miquels@maestro.htsa.aha.nl> Humberto Zuazaga Pietro Castelli Douglas E. Quale Stephen Gallimore Tommy Thorn Michael Glad <glad@daimi.aau.dk> W.Z. Venema Peter Orbaek <poe@daimi.aau.dk> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | docs: new file Documentation/howto-man-page.txtSami Kerola2011-08-231-0/+161
| | | | | | | | | | | | | | | | | | | | | The howto-man-page.txt is an example of good groff syntax and document about man page at the same time. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | docs: new file Documentation/source-code-management.txtSami Kerola2011-08-232-33/+29Star
| | | | | | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | docs: new file Documentation/howto-contribute.txtSami Kerola2011-08-233-93/+93
| | | | | | | | | | | | | | | | | | The file contens are mostly from former README.devel. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | docs: new file Documentation/howto-compilation.txtSami Kerola2011-08-232-43/+64
| | | | | | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | docs: tell what the Documentation/ is aboutSami Kerola2011-08-231-0/+7
| | | | | | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | docs: add usage() howto for contributorsSami Kerola2011-08-231-0/+147
| | | | | | | | | | | | | | | | | | | | | Style instructions to usage() writers. Discussion about this; http://www.spinics.net/lists/util-linux-ng/index.html#04983 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * | docs: Documentation directory addedSami Kerola2011-08-1253-55/+32Star
| | | | | | | | | | | | | | | | | | | | | | | | 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>