summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* lsblk: Display mountpoint even for top-level deviceMilan Broz2015-07-311-2/+1Star
| | | | | | | | | | | | | | | | | | | | If a filesystem is mounted on top-level block device with existing partitions, the mountpoint is not displayed in the lsblk output. This situation can happen by a configuration mistake and lsblk could be used to detect such a mistake. This patch allows searching for a mountpoint for all displayed devices, not only for leaf nodes. (It should be pretty cheap operation, mtab is parsed only once.) For example: lsblk /dev/loop1 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop1 7:1 0 128M 0 loop /mnt/tst └─loop1p1 259:0 0 127M 0 loop Signed-off-by: Milan Broz <gmazyland@gmail.com>
* sfdisk: don't print extra linebreaks on --quietKarel Zak2015-07-301-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: allow to change partition type for extended partitionsKarel Zak2015-07-301-10/+51
| | | | | Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1248115 Signed-off-by: Karel Zak <kzak@redhat.com>
* hexdump: fix man page (-x vs. default output)Karel Zak2015-07-303-814/+835
| | | | | Reported-by: Reuti <reuti@staff.uni-marburg.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: make fsck.minix(8) more prettySami Kerola2015-07-301-50/+80
| | | | | | | | | Use real table to device list, add missing new paragraph markers, remove braces that cause reader to wonder if test is meant or not, squeeze error code list, move references to bottom of the manual, and use mail or web address macro when possible. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck.minix: introduce long options to the commandSami Kerola2015-07-303-95/+96
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck.minix: add minix v3 supportSami Kerola2015-07-301-13/+20
| | | | | Relates-to: a2657ae3ffb56616ac9c921886bcca8ef242499f Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck.minix: rename device file descriptor variableSami Kerola2015-07-301-20/+20
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* mkfs.minix: refactor root block content creationSami Kerola2015-07-301-21/+21
| | | | | | This does not belong to main() function. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* mkfs.minix: check requested blocks will not exceed available on deviceSami Kerola2015-07-301-30/+34
| | | | | | | | | | | | | | | | | | | | Earlier user could define more blocks than device, or backing file for loopback file system, had available. That lead to a system crash with following commands; fallocate --length 64KiB test-file mkfs.minix -3 -i 842160 test-file 104882174 mkdir test-file.d mount test-file test-file.d cp /etc/service test-file.d Killed sudo umount test-file.d The minix driver should probably not hang the whole kernel, but the least that mkfs.minix ought to do is not to let users to get that condition quite as easily. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* mkfs.minix: check user input carefullySami Kerola2015-07-302-31/+57
| | | | | | | File name lenght and version input needs to be checked against each other, which will determine what version of file system is in question. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* mkfs.minix: add fs_control structure, and remove most global variablesSami Kerola2015-07-301-190/+190
| | | | | | This allows better code structure in future. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* mkfs.minix: remove unuseful codeSami Kerola2015-07-301-8/+1Star
| | | | | | | | | | | | | Checks about inodes vs block sizes does not add much robustness. Both values are derived at compilation time from struct minix_inode size, and they form full definition circle. Bad block check for none-block devices should not be supressed, user requested it so let him have it. Check for st_rdev == 0x0300 || st_rdev == 0x0340 was unreachable. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* mkfs.minix: use is_mounted() from libcommonSami Kerola2015-07-301-23/+4Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* mkfs.minix: introduce long options to the commandSami Kerola2015-07-303-73/+78
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* mkfs.minix: increase maximum minix v2 and v3 file system sizesJoshua Hudson2015-07-301-4/+21
| | | | | | | | | | | | | | | | | | | | | | | mkfs.minix misbehaves when attempting to create a large v2 or v3 filesystem. I finally traced it down to attempting to create too many inodes so that the first zone is past 65535 blocks in. This obviously doesn't work as the on-disk superblock says this is a 16 bit integer. I wrote a patch that catches this, clamps to the absolute v2/v3 limit (like it already does for v1), and sets the blocks per inode to a more reasonable ratio when exceeding half a gigabyte. Having a half-gig filesystem with most files being smaller than 3k isn't really reasonable. I suppose if you don't want to adjust inode sizes automatically you could take that part out, and it will just crab sooner. Given the non-attention in the code, I suspect nobody ever had cause to try such a big minix filesystem. Well I have my reasons involving some deeply embedded work where ext2 would place too much strain on the hardware. Reviewed-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Joshua Hudson <joshudson@gmail.com>
* libmount: make mnt_get_filesystems() more robust [clang analyze]Karel Zak2015-07-301-2/+2
| | | | | | | | | The mnt_free_filesystems() relies on NULL as the last item in the filesystems array. It's necessary to keep NULL there after failed strdup() too, because we call mnt_free_filesystems() to deallocate after error. Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: cleanup {user,group}name usageKarel Zak2015-07-301-26/+27
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mcookie: fix -f usage [clang analyze]Karel Zak2015-07-291-3/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: make child-parent reference more robust [clang analyze]Karel Zak2015-07-291-5/+4Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: make static analyzes more happyKarel Zak2015-07-291-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: result of operation is garbage or undefined [clang analyze]Karel Zak2015-07-291-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: undefined or garbage value returned to caller [clang analyze]Karel Zak2015-07-291-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: value is never read [clang analyze]Karel Zak2015-07-291-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: value is never read [clang analyze]Karel Zak2015-07-291-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: value is never read [clang analyze]Karel Zak2015-07-291-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: value is never read [clang analyze]Karel Zak2015-07-291-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* po: update fr.po (from translationproject.org)David Prévot2015-07-291-419/+408Star
|
* po: update da.po (from translationproject.org)Joe Hansen2015-07-291-468/+530
|
* unshare: remove duplicate [make checkincludes]Karel Zak2015-07-291-2/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lslogins: remove duplicate [make checkincludes]Karel Zak2015-07-291-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: sort pseudo filesystems by LC_COLLATE=CKarel Zak2015-07-291-1/+1
| | | | | Addresses: https://github.com/karelzak/util-linux/issues/212 Signed-off-by: Karel Zak <kzak@redhat.com>
* tasts: add logger octet counting testKarel Zak2015-07-292-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* logger: Add support to logger for RFC6587 octet countingAlex Bligh2015-07-292-7/+22
| | | | | | | | | | | | | | | | | | | | | | | | This patch adds support to logger for RFC6587 octet counting. RFC6587 provides support for two sorts of framing: 1. Octet counting (at RFC6587 s3.4.1) In essence each frame is preceded by a decimal length and a space. 2. Non-transparent framing (at RFC6587 s3.4.2), also called 'octet stuffing' In essence each frame is terminated by a `\n` Prior to this patch, logger used option 2 (non-transparent framing) on TCP, and used no framing on UDP. After this patch, the default behaviour is unchanged, but if the '--octet-count' option is supplied, option 1 is used for both TCP and UDP. Arguably octet count framing makes little sense on UDP, but some servers provide it and this allows testing of those servers. Signed-off-by: Alex Bligh <alex@alex.org.uk>
* sfdisk: add --list-freeKarel Zak2015-07-283-1/+37
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add 'F' command to list free unpartitioned spaceKarel Zak2015-07-283-0/+130
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'test-fixes' of https://github.com/rudimeier/util-linuxKarel Zak2015-07-281-3/+0Star
|\
| * Revert "tests: start script/race test only when --force specified"Ruediger Meier2015-07-281-3/+0Star
| | | | | | | | | | | | | | | | | | This reverts commit 8ba3f35e07f736a0165669ac787b016b4311eb29. This test is not too slow anymore and BTW since last script refactoring it does work now even on slow/heavy-loaded systems. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | script: improve SIG{TERM,QUIT,KILL} sensitivityKarel Zak2015-07-281-3/+16
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | cfdisk: don't print obsolete CHS addressesKarel Zak2015-07-271-10/+0Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | cfdisk: make sure that output fits to terminal widthKarel Zak2015-07-271-2/+13
| | | | | | | | | | Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* | libsmartcols: reduce relative columns more aggressivelyKarel Zak2015-07-271-1/+4
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | fdisk: init libsmartcols debugKarel Zak2015-07-272-0/+3
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | cfdisk: remove extra line between menu and info lineKarel Zak2015-07-271-1/+1
| | | | | | | | | | Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* | cfdisk: spell "label" in lower caseBenno Schulenberg2015-07-271-1/+1
| | | | | | | | | | | | To be less shouty. It is not an abbreviation like "UUID". Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | cfdisk: allow an uppercase X to toggle the extra infoBenno Schulenberg2015-07-271-0/+1
| | | | | | | | | | | | | | To make true the help text line that says that all commands can be entered with either upper or lower case. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | build-sys: add --disable-calKarel Zak2015-07-271-1/+7
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | build-sys: fix test_colors buildKarel Zak2015-07-241-1/+1
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: update build-sys testsKarel Zak2015-07-2418-349/+364
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | libsmartcols: don't link with tinfoKarel Zak2015-07-248-71/+98
| | | | | | | | | | | | | | Let's move color names to sequence translation to separate file to make it usable without all the stuff in lib/colors.c. Signed-off-by: Karel Zak <kzak@redhat.com>