summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* build-sys: release++ (v2.23-rc2)Karel Zak2013-04-102-1/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update v2.23-ReleaseNotesKarel Zak2013-04-101-1/+150
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: make wall optional in bash-completionKarel Zak2013-04-101-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-fdformatKarel Zak2013-04-103-9/+21
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-hwclockKarel Zak2013-04-101-3/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-bfsKarel Zak2013-04-103-1/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-cytuneKarel Zak2013-04-103-6/+19
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update AUTHORS fileKarel Zak2013-04-101-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* po: merge changesKarel Zak2013-04-1027-24540/+30530
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: use xalloc everywhereKarel Zak2013-04-101-22/+4Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: make line(1) optionalKarel Zak2013-04-101-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: remove duplicate includesKarel Zak2013-04-101-2/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/xalloc: add xstrndup()Karel Zak2013-04-101-0/+15
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update lscpu testsKarel Zak2013-04-102-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix ZFS superblok offset for SBMAGICKarel Zak2013-04-101-4/+8
| | | | | | | | | | | | | | | # wipefs /dev/sdd1 offset type ---------------------------------------------------------------- 0x65000 zfs_member [raid] LABEL: zm1 UUID: 18067835215330778964 and "wipefs -o 0x65000 /dev/sdd1" seems to run in an endless loop. Reported-by: Helmut Hullen <Hullen@t-online.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* bash-completion: add swapoffBernhard Voelker2013-04-101-0/+54
| | | | | | | [kzak@redhat.com: remove short options] Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add Model nameKarel Zak2013-04-101-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* su: remove '+' from getopt_long()Karel Zak2013-04-101-1/+1
| | | | | | | | # /bin/su - -c 'echo test' su: user -c does not exist Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=950495 Signed-off-by: Karel Zak <kzak@redhat.com>
* loopdev: sync capacity after setting itJeff Mahoney2013-04-096-21/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I recently tried to mount an hfsplus file system from an image file with a partition table by using the loop offset and sizelimit options to specify the location of the file system. hfsplus stores some metadata at a set offset from the end of the partition, so it's sensitive to the device size reported by the kernel. It worked with this: But failed with this: /dev/loop0: [0089]:2 (<imagefile>), offset 32768, sizelimit 102400000 /dev/loop1: [0089]:2 (<imagefile>), offset 32768, sizelimit 102400000 /proc/partitions shows the correct number of blocks to match the sizelimit. But if I set a breakpoint in mount before the mount syscall, I could see: 102400000 102432768 The kernel loop driver will set the gendisk capacity of the device at LOOP_SET_STATUS64 but won't sync it to the block device until one of two conditions are met: All open file descriptors referring to the device are closed (and it will sync when re-opened) or if the LOOP_SET_CAPACITY ioctl is called to sync it. Since mount opens the device and passes it directly to the mount syscall after LOOP_SET_STATUS64 without closing and reopening it, the sizelimit argument is effectively ignroed. The capacity needs to be synced immediately for it to work as expected. This patch adds the LOOP_SET_CAPACITY call to loopctx_setup_device since the device isn't yet released to the user, so it's safe to sync the capacity immediately. [kzak@redhat.com: - port to the current git HEAD, - use uint64_t] Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: export blkid_init_debug()Karel Zak2013-04-097-27/+63
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: support LIBBLKID_DEBUG= onlyKarel Zak2013-04-093-4/+3Star
| | | | | | ... the BLKID_DEBUG= is not more supported. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix DBG()Karel Zak2013-04-092-4/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: add fsck.cramfs manual pageSami Kerola2013-04-092-0/+58
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: add mkfs.cramfs manual pageSami Kerola2013-04-092-0/+91
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tools: make checkmans.sh to find missing manualsSami Kerola2013-04-091-4/+40
| | | | | | | | Finding missing manuals is loosely based on ideas in man-page-day-1.sh, wrote by Peter Schiffer. CC: Peter Schiffer <pschiffe@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: remove repeated words [checkmans.sh]Sami Kerola2013-04-093-3/+3
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: col.1: fix manual page name section [checkmans.sh]Sami Kerola2013-04-091-1/+1
| | | | | | | $ lexgrog text-utils/col.1 text-utils/col.1: parse failed Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: mount.8: make propagation flags adjustable [checkmans.sh]Sami Kerola2013-04-091-1/+8
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tools: add checks to manual page test scriptSami Kerola2013-04-091-24/+74
| | | | | | | | | | | | | | | This change includes - better way to detect manual page inclusion - man -k header test, which uses lexgrog - repeated word detection - static declaration to known repeated words Most of the changes are based on man-page-day-1.sh, that is in use at RedHat Quality Assurance, and wrote by Peter Schiffer. CC: Peter Schiffer <pschiffe@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libblkid: number of functions should not be declared extern [smatch scan]Sami Kerola2013-04-092-10/+10
| | | | | | | | | | | | | | | | | These functions are already marked extern in header file. libblkid/src/dev.c:70:19: warning: function 'blkid_dev_devname' with external linkage has definition libblkid/src/dev.c:128:26: warning: function 'blkid_dev_iterate_begin' with external linkage has definition libblkid/src/dev.c:148:12: warning: function 'blkid_dev_set_search' with external linkage has definition libblkid/src/dev.c:175:12: warning: function 'blkid_dev_next' with external linkage has definition libblkid/src/dev.c:196:13: warning: function 'blkid_dev_iterate_end' with external linkage has definition libblkid/src/tag.c:84:12: warning: function 'blkid_dev_has_tag' with external linkage has definition libblkid/src/tag.c:282:26: warning: function 'blkid_tag_iterate_begin' with external linkage has definition libblkid/src/tag.c:303:12: warning: function 'blkid_tag_next' with external linkage has definition libblkid/src/tag.c:322:13: warning: function 'blkid_tag_iterate_end' with external linkage has definition libblkid/src/tag.c:336:18: warning: function 'blkid_find_dev_with_tag' with external linkage has definition Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libmount, col: remove redundant null checks [smatch scan]Sami Kerola2013-04-092-6/+3Star
| | | | | | | | libmount/src/context_umount.c:174 mnt_context_find_umount_fs() info: redundant null check on loopdev calling free() libmount/src/context_umount.c:179 mnt_context_find_umount_fs() info: redundant null check on loopdev calling free() text-utils/col.c:406 flush_lines() info: redundant null check on l->l_line calling free() Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* various: fix shadow declarations [smatch scan]Sami Kerola2013-04-093-24/+23Star
| | | | | | | | | | | | | | | | | | | | | | libmount/src/tab.c:990:34: warning: symbol 'fs' shadows an earlier one libmount/src/tab.c:970:26: originally declared here misc-utils/findmnt.c:492:30: warning: symbol 'tmp' shadows an earlier one misc-utils/findmnt.c:473:14: originally declared here fdisks/fdiskdoslabel.c:211:36: warning: symbol 'pe' shadows an earlier one fdisks/fdiskdoslabel.c:180:20: originally declared here fdisks/fdiskdoslabel.c:639:34: warning: symbol 'i' shadows an earlier one fdisks/fdiskdoslabel.c:578:16: originally declared here fdisks/fdiskdoslabel.c:947:21: warning: symbol 'i' shadows an earlier one fdisks/fdiskdoslabel.c:924:16: originally declared here fdisks/fdiskdoslabel.c:976:29: warning: symbol 'i' shadows an earlier one fdisks/fdiskdoslabel.c:924:16: originally declared here fdisks/fdiskdoslabel.c:984:29: warning: symbol 'i' shadows an earlier one fdisks/fdiskdoslabel.c:924:16: originally declared here [kzak@redhat.com: - don't use local 'tmp' in findmnt.c] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* various: fix variable and function declarations [smatch scan]Sami Kerola2013-04-099-30/+32
| | | | | | | | | | | | | | | | | disk-utils/fsck.minix.c:511:9: warning: mixing declarations and code fdisks/sfdisk.c:982:5: warning: mixing declarations and code fdisks/sfdisk.c:1254:5: warning: mixing declarations and code fdisks/sfdisk.c:1564:5: warning: mixing declarations and code lib/mbsalign.c:279:7: warning: mixing declarations and code libblkid/src/devname.c:378:17: warning: mixing declarations and code libfdisk/src/alignment.c:219:9: warning: mixing declarations and code term-utils/wall.c:111:9: warning: mixing declarations and code text-utils/col.c:418:19: warning: non-ANSI function declaration of function 'flush_blanks' text-utils/col.c:553:12: warning: non-ANSI function declaration of function 'alloc_line' text-utils/rev.c:105:9: warning: mixing declarations and code text-utils/tailf.c:245:9: warning: mixing declarations and code Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* bash-completion: swapon: add options and fix argumentSami Kerola2013-04-091-4/+15
| | | | | | | | | The initial bash-completion missed swapon options -L and -U. Use of block device was proposed to be more appropriate than a path to a file. Requested-by: Karel Zak <kzak@redhat.com> References: http://marc.info/?l=util-linux-ng&m=136517310727426&w=2 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* bash-completion: setarch: use correct list for architecturesSami Kerola2013-04-091-8/+1Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* setarch: clean up usage()Sami Kerola2013-04-091-23/+21Star
| | | | | | Requested-by: Karel Zak <kzak@redhat.com> References: http://marc.info/?l=util-linux-ng&m=136516351523680&w=2 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libblkid: clean up DBG()Karel Zak2013-04-0834-361/+278Star
| | | | | | | | | - use stderr only - use BLKID_ prefix for debug masks - don't use \n in in messages and don't use printf(), but use generic blkid_debug(). Signed-off-by: Karel Zak <kzak@redhat.com>
* bash-completion: Symlink runuser symlink to su so it gets loaded on demand.Ville Skyttä2013-04-081-0/+7
| | | | | | | | Signed-off-by: Ville Skyttä <ville.skytta@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com> [kzak@redhat.com: - use '-runuser' in the install hook - use the hook only if runuser is enabled]
* bash-completion: Don't offer short options where corresponding long one exists.Ville Skyttä2013-04-0874-462/+461Star
| | | | | | | | | Users who know the short options can just hit the short option instead of tab, and it's not likely that it would be helpful to present a list of single character options to users who don't know them, doing so just unnecessarily trashes the list of suggestions. Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
* Spelling fixes.Ville Skyttä2013-04-083-5/+5
| | | | Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
* uuidd.8: Document --debug and --quiet long options.Ville Skyttä2013-04-081-2/+2
| | | | Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
* bash-completion: Avoid some unnecessary subshells.Ville Skyttä2013-04-087-12/+12
| | | | Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
* bash-completion: Don't offer any more completions after help or version.Ville Skyttä2013-04-0887-23/+353
| | | | Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
* logger: make socket initialization in main() more readableKarel Zak2013-04-081-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* logger: allow to log using tcp transport protocolSami Kerola2013-04-082-62/+113
| | | | | | | | | | | | | | | | | This commit fixes error in usage() text, which claimed TCP is default transport protocol. That was not true, and neither it should be. The syslog messages has traditionally sent using UDP. For the logger remains using UDP as first transport, but if it fails a TCP connection is attempted. If an user wishes remote logging can be forced to use either UDP or TCP. The service port for UDP is familiar 'syslog', for TCP the port 'syslog-conn' seems like reasonable default. [kzak@redhat.com: - rename myopenlog to unix_socket(), - always reset st to -1] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* fsfreeze: add note about atime to the man pageKarel Zak2013-04-081-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-bash-completionKarel Zak2013-04-052-0/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* bash-completion: rename shell-completion -> bash-completionKarel Zak2013-04-0592-92/+92
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'shell-completion' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2013-04-0594-3/+3435
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | * 'shell-completion' of git://github.com/kerolasa/lelux-utiliteetit: bash-completion: add completion files to Makefile.am bash-completion: text-utils bash-completion: term-utils bash-completion: sys-utils bash-completion: schedutils bash-completion: misc-utils bash-completion: login-utils bash-completion: fdisks bash-completion: disk-utils bash-completion: add bash completetion configure option
| * bash-completion: add completion files to Makefile.amSami Kerola2013-04-012-4/+252
| | | | | | | | | | | | And remove shell completion TODO item. Signed-off-by: Sami Kerola <kerolasa@iki.fi>