summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* fdisk: (dos) cleanup function namesKarel Zak2012-07-232-15/+15
| | | | | | | | | - use 'write' in name for functions that really touch devices - use 'set' in name for functions that modify in-memory stuff ... otherwise it's unreadable mess Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: get_boot() has to die (step II.)Karel Zak2012-07-231-17/+7Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: get_boot() has to die (step I.)Karel Zak2012-07-237-13/+50
| | | | | | - move generic stuff around "create disklabel" operation to API Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: move user geometry setting from fdisk.c to APIKarel Zak2012-07-233-32/+69
| | | | | | | - to avoid duplicate code - to remove fdisk_geom_set_cyls() from API Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: fix usage()Karel Zak2012-07-201-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --reltime to print human readable deltasKarel Zak2012-07-202-18/+75
| | | | | | | | | | | | | | | | | [Jul20 09:50] device vnet0 entered promiscuous mode [ +0.002248] virbr0: topology change detected, propagating [ +0.000017] virbr0: port 2(vnet0) entered forwarding state [ +0.000036] virbr0: port 2(vnet0) entered forwarding state [ +0.001663] ADDRCONF(NETDEV_CHANGE): virbr0: link becomes ready [ +10.480914] vnet0: no IPv6 routers present [Jul20 14:35] xhci_hcd 0000:0e:00.0: WARN Event TRB for slot 3 ep 5 with no TDs queued? [Jul20 19:23] EXT4-fs (sda2): re-mounted. Opts: (null) [ +6.052980] EXT4-fs (sda2): re-mounted. Opts: (null) Suggested by Linus: http://thread.gmane.org/gmane.linux.kernel/1290886/focus=1296138 Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg; cleanup time printing stuffKarel Zak2012-07-201-14/+35
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: implement backwardly compatible --raw for /dev/kmsgKarel Zak2012-07-202-2/+25
| | | | | | .. and if you really want raw data from /dev/kmsg then use dd(1) ;-) Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: cleanup exclusive_option() usageKarel Zak2012-07-201-10/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --follow featureKarel Zak2012-07-202-5/+23
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: support --clear for kmsgKarel Zak2012-07-201-1/+13
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: read /dev/kmsg (since kernel 3.5.0)Karel Zak2012-07-201-28/+202
| | | | | | | | | | | kmsg advantages: - extendible format - tags for messages - one read() returns one complete record See kernel Documentation/ABI/testing/dev-kmsg. Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --syslog to force to old syslog(2) interfaceKarel Zak2012-07-192-2/+14
| | | | | | | ... just for debugging or for people who somehow depends on syslog(2) behavior. Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: refactoring for kmsg supportKarel Zak2012-07-191-48/+71
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: unify internal APIsKarel Zak2012-07-191-18/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: cleanup, move more stuff to control structKarel Zak2012-07-191-33/+54
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: move filename to control structKarel Zak2012-07-191-13/+18
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: check VFS mount options in mnt_diff_tables()Karel Zak2012-07-181-3/+5
| | | | | | | | | | | | | after "-o remount,ro" in unshared namespace is the original VFS entry still read-write: original: 42 21 8:2 / /boot rw,relatime - ext4 /dev/sda2 ro,user_xattr,acl,barrier=1,data=ordered unshared + ro remount: 78 51 8:2 / /boot ro,relatime - ext4 /dev/sda2 ro,user_xattr,acl,barrier=1,data=ordered Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update TODOKarel Zak2012-07-171-15/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: (new) add --source and --targetKarel Zak2012-07-172-26/+94
| | | | | | | | | | | | | | | | | | | | | | | | In some cases (for example if only one mount argument is given) may be mount request ambivalent: # mount /foo and fstab: /dev/sda5 /foo rw 0 0 /foo /bar bind 0 0 the new options allows to be more explicit # mount --target /foo (mounts /dev/sda5) # mount --source /foo (binds /foo to /bar) It's possible to use the options together # mount --source /dev/sda2 --target /home Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: allow to disable swap between source and targetKarel Zak2012-07-176-4/+37
| | | | | | | | | | | | | | | | | | | | | In some cases (for example if only one mount argument is given) may be mount request ambivalent: # mount /foo and fstab: /dev/sda5 /foo rw 0 0 /foo /bar bind 0 0 The libmount allows to swap between source and target (if source is not LABEL or UUID) by default. The new function mnt_context_disable_swapmatch() allows to disable this feature. Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update TODO fileKarel Zak2012-07-171-15/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mkfs.cramfs: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* eject: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.cramfs: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ldattach: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* setarch: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cytune: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ipcmk: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* scriptreplay: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tailf: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* colrm: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* raw: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-162-4/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* test_sysinfo: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-19/+10Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* kill: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-16/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* su: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/match: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch '2012wk28'Karel Zak2012-07-1650-138/+135Star
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 2012wk28: translation: unify file open error messages translation: unify stat error messages utmpdump: use help and version output macros su: align with howto-usage-function fdisk: make if clause easier to read look: remove extra semicolon utmpdump: remove unused variable swapon: remove unused variables lib/loopdev: minor bug fix: add missing semicolon lib/pager: minor compiler warning fixes libblkid: remove duplicate entries in symbols
| * translation: unify file open error messagesSami Kerola2012-07-1641-66/+65Star
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * translation: unify stat error messagesSami Kerola2012-07-1615-19/+19
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * utmpdump: use help and version output macrosSami Kerola2012-07-161-4/+4
| | | | | | | | | | | | Done to reduce translation project work. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * su: align with howto-usage-functionSami Kerola2012-07-161-26/+25Star
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * fdisk: make if clause easier to readSami Kerola2012-07-161-19/+18Star
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * look: remove extra semicolonSami Kerola2012-07-161-1/+1
| | | | | | | | | | | | | | The both macro SKIP_PAST_NEWLINE and location where macro is used will not need semicolon at the end of line. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * utmpdump: remove unused variableSami Kerola2012-07-161-1/+0Star
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * swapon: remove unused variablesSami Kerola2012-07-161-1/+0Star
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * lib/loopdev: minor bug fix: add missing semicolonSami Kerola2012-07-161-1/+1
| | | | | | | | | | | | | | | | | | Missing semicolon made test_loop_info() to return function loopcxt_enable_debug() return value, which happen to be void. I suspect the loopcxt_enable_debug() was usually not executed, while it should be. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * lib/pager: minor compiler warning fixesSami Kerola2012-07-161-1/+3
| | | | | | | | | | | | | | | | | | Add missing function prototype, and declare structure before use of it. lib/pager.c:162:6: warning: no previous prototype for function 'setup_pager' [-Wmissing-prototypes] lib/pager.c:20:29: warning: tentative definition of variable with internal linkage has incomplete non-array type 'struct child_process' [-Wtentative-definition-incomplete-type] Signed-off-by: Sami Kerola <kerolasa@iki.fi>