summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * tests: added missing expected outputs for partx (atari)Vaclav Dolezal2018-01-242-0/+14
| | | | | | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
| * libblkid: atari - fix bad variable nameVaclav Dolezal2018-01-241-1/+1
| | | | | | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
| * tests: added test for libblkid atari ptVaclav Dolezal2018-01-234-0/+16
| | | | | | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
| * libblkid: Support for Atari partitioning schemeVaclav Dolezal2018-01-234-1/+263
| | | | | | | | | | Addresses: https://github.com/karelzak/util-linux/issues/517 Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
* | docs: update TODOKarel Zak2018-01-311-10/+0Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: update cal(1) testsKarel Zak2018-01-3080-2668/+1784Star
| | | | | | | | | | | | | | | | | | | | | | | | | | * remove extra space after year output f066c107ce6b76b4b11b239b9ab77561d4e0b84e * don't print blank space behind last char on row 8315a2ff1507571ef14d77beac867b34a7d5e6da * print just specified number of month for -1, -3 and -n 2bcf8f7934649a5ee7925cdfdb12ca5abbf59b38 Signed-off-by: Karel Zak <kzak@redhat.com>
* | cal: remove extra space after year outputKarel Zak2018-01-301-3/+0Star
| | | | | | | | | | Reported-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* | cal: don't use year header for -1, -3 or -nKarel Zak2018-01-301-1/+2
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | cal: follow terminal widthKarel Zak2018-01-301-9/+19
| | | | | | | | | | | | | | * modify number of months in row according to the terminal width * don't print blank space behind last char on row Signed-off-by: Karel Zak <kzak@redhat.com>
* | build-sys: (configure) fix bashismsMike Frysinger2018-01-301-4/+4
| | | | | | | | | | | | The `test` command only recognizes =, not ==. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* | zramctl: use xstrdup()Karel Zak2018-01-301-11/+5Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | Added the support for lz4hc, deflate, and 842Libor Bukata2018-01-242-15/+17
| | | | | | | | | | | | compression algorithms in zramctl utility. Signed-off-by: Libor Bukata <lbukata@gmail.com>
* | cal: do not set months_in_row with -3 optionJ William Piggott2018-01-241-1/+0Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Having the -3 option set months_in_row causes ordinal days to wrap; it overrides the automatic handling of months_in_row that falls back to 2 month columns for ordinal days. Before: cal -3j 2020 2020 July August September Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat 182 183 184 185 186 187 213 214 215 244 245 246 247 248 249 250 188 189 190 191 192 193 194 216 217 218 219 220 221 222 251 252 253 254 255 256 257 195 196 197 198 199 200 201 223 224 225 226 227 228 229 258 259 260 261 262 263 264 202 203 204 205 206 207 208 230 231 232 233 234 235 236 265 266 267 268 269 270 271 209 210 211 212 237 238 239 240 241 242 243 272 273 Patched: cal -3j 2020 2020 December January Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat 335 336 337 338 339 340 341 1 2 3 4 342 343 344 345 346 347 348 5 6 7 8 9 10 11 349 350 351 352 353 354 355 12 13 14 15 16 17 18 356 357 358 359 360 361 362 19 20 21 22 23 24 25 363 364 365 26 27 28 29 30 31 February Sun Mon Tue Wed Thu Fri Sat 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Signed-off-by: J William Piggott <elseifthen@gmx.com>
* | cal: honor num_months when only a year argumentJ William Piggott2018-01-241-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I don't know if this was an oversight or an overzealous interpretation of POSIX. Just in case, I'll address the POSIX possibility. POSIX description for cal(1) says: If only the year operand is given, cal shall produce a calendar for all twelve months in the given calendar year. It also says that cal(1) has no options, so in that context if an option is given then it should be expected to override POSIX behavior. Before patched all of these command displayed a full year: cal -1 2020 cal -3 2020 cal -n6 2020 Patched the number of months options are honored. This patch also fixes the -1 option which was a no-op. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* | mount(8): drop redundant filesystem-specific sectionsMike Frysinger2018-01-241-327/+8Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new section to the top of the filesystem-specific chapter to point people generally to the filesystem-specific man pages. This way we can delete all the redundant subsections that say the same thing. These subsections are deleted because they offer no options. Which is the same as all the filesystems the kernel supports but this man page doesn't explicitly list (of which there are a few). coherent minix ramfs romfs squashfs sysv xenix These subsections are deleted because they simply point to the respective <fs>(5) or mount.<fs>(8) page which we now document at the top. Some also discuss the syscall ABI, but that doesn't seem appropriate for this page. btrfs cifs ext2 ext3 ext4 nfs nfs4 proc smbfs tmpfs xfs Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* | rfkill: provide RFKILL_TYPE_FM if undefinedRuediger Meier2018-01-241-0/+5
| | | | | | | | | | | | | | | | | | | | As discussed last year it's nice to be compatible to 2.6.32 https://www.spinics.net/lists/util-linux-ng/msg13963.html BTW also re-define NUM_RFKILL_TYPES if needed, although we are not really using it. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: fix fincore/count KNOWN_FAILRuediger Meier2018-01-241-4/+3Star
| | | | | | | | | | | | It has to be set after calling ts_init. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: suppress warning for old sync(1)root2018-01-241-2/+2
| | | | | | | | | | | | | | | | | | Old sync(1) prints a warning which looks ugly among our test output: "sync: ignoring all arguments" Seen on travis, Ubuntu <= 14.04 (Trusty). Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | fsck.cramfs: fix error messageRuediger Meier2018-01-241-1/+6
| | | | | | | | | | | | errno is invalid in case that we just read(3) too short. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: rewrite fsck-bad-headerRuediger Meier2018-01-248-6/+243
| | | | | | | | | | | | | | Fix test for systems with pagesize != 4096 Loop over many combinations of sizes, endianness and blocksizes. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | fsck.cramfs: fix crash when superblock size is too smallRuediger Meier2018-01-243-4/+3Star
| | | | | | | | | | | | | | | | | | | | | | This hopefully fixes the original problem addressed by the reverted patch 7cb962c7. The bug was introduced by myself in f991dbd3 "fsck.cramfs: allow smaller superblock sizes" CC: Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | Revert "fsck.cramfs: Fix bus error on broken file system."Ruediger Meier2018-01-241-7/+6Star
|/ | | | | | | | | | | | | | | | | | This reverts commit 7cb962c77015e9383b53eeb22ce732cb5216bbc3. It can't be right that we mmap (start + super.size) bytes from a file which is usually only super.size bytes large. The patch "fixed" a problem when super.size is bad but now it fails for the correct case: $ mkdir -p root/subdir $ ./mkfs.cramfs -p root cramfs $ ./fsck.cramfs cramfs Bus error (core dumped) We will fix the original problem later. CC: Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: use subtests for weeknum cal(1) testsKarel Zak2018-01-2210-1540/+1459Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use subtests for weekarg cal(1) testsKarel Zak2018-01-2219-262/+202Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* test: use subtests for jan1753 cal(1) testKarel Zak2018-01-224-33/+34
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: merge year cal(1) testsKarel Zak2018-01-2212-442/+374Star
| | | | | | | * merge tests * use subtests for cal(1) calls Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: merge 1m and 3m cal(1) testsKarel Zak2018-01-2225-388/+208Star
| | | | | | | * merge tests * use subtests for cal(1) calls Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: merge sep1752 cal(1) testsKarel Zak2018-01-2228-392/+295Star
| | | | | | | * merge tests * use subtests for cal(1) calls Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use subtests for sep1752w testKarel Zak2018-01-2215-264/+275
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: simplify cal(1) sep1752w testKarel Zak2018-01-221-70/+35Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add cal(1) --week=40 1752Karel Zak2018-01-222-0/+15
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: fix first week calculationJ William Piggott2018-01-222-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Commit efafeaf set 1 Jan as week 1, but the change was missed in week_to_day() and in the man page. Before cal --week=40 --iso 1752 October 1752 Su Mo Tu We Th Fr Sa 41 1 2 3 4 5 6 7 42 8 9 10 11 12 13 14 43 15 16 17 18 19 20 21 44 22 23 24 25 26 27 28 45 29 30 31 Patched cal --week=40 --iso 1752 September 1752 Su Mo Tu We Th Fr Sa 36 1 2 37 3 4 5 6 7 8 9 38 10 11 12 13 14 15 16 39 17 18 19 20 21 22 23 40 24 25 26 27 28 29 30 Signed-off-by: J William Piggott <elseifthen@gmx.com>
* cal: fix week calculations for 1752J William Piggott2018-01-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | Before: cal --week=39 1752 September 1752 Su Mo Tu We Th Fr Sa 36 1 2 14 15 16 37 17 18 19 20 21 22 23 38 24 25 26 27 28 29 30 Patched: cal --week=39 1752 October 1752 Su Mo Tu We Th Fr Sa 39 1 2 3 4 5 6 7 40 8 9 10 11 12 13 14 41 15 16 17 18 19 20 21 42 22 23 24 25 26 27 28 43 29 30 31 Signed-off-by: J William Piggott <elseifthen@gmx.com>
* Merge branch 'patch-2' of https://github.com/sourcejedi/util-linuxKarel Zak2018-01-221-2/+2
|\ | | | | | | | | * 'patch-2' of https://github.com/sourcejedi/util-linux: mount(8): umount does not (anymore?) say `none busy'
| * mount(8): umount does not (anymore?) say `none busy'Alan Jenkins2018-01-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | The closest I can get is with `mount`, so refer to that instead. # mount none -t proc /proc mount: /proc: none already mounted or mount point busy. # umount /proc umount: /proc: target is busy. # (cd /root; umount proc) umount: /proc: target is busy. Signed-off-by: Alan Jenkins <alan.christopher.jenkins@gmail.com>
* | mount: be more accurate in man page about propagation flagsKarel Zak2018-01-221-7/+8
| | | | | | | | | | Addresses: https://github.com/karelzak/util-linux/issues/565 Signed-off-by: Karel Zak <kzak@redhat.com>
* | Merge branch 'master' of https://github.com/rluzynski/util-linuxKarel Zak2018-01-223-2/+85
|\ \ | | | | | | | | | | | | * 'master' of https://github.com/rluzynski/util-linux: cal: Use ALTMON_* correctly
| * | cal: Use ALTMON_* correctlyRafal Luzynski2018-01-223-2/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cal: use ALTMON_* and _NL_ABALTMON_* constants to display months in a standalone form correctly. These constants have just been newly added to glibc. ALTMON_x has been used in BSD family since 1990s and has been accepted as the future POSIX extension. _NL_ABALTMON_* is exclusively a GNU extension but it is expected to be added to POSIX in future. More info: https://sourceware.org/bugzilla/show_bug.cgi?id=10871
* | | lscpu: (arm) cleanup codeKarel Zak2018-01-221-19/+37
| | | | | | | | | | | | | | | | | | | | | | | | * check for strtol() errors * fix indention * fix coding style Signed-off-by: Karel Zak <kzak@redhat.com>
* | | lscpu: move ARM decoding to lscpu-arm.cKarel Zak2018-01-224-47/+44Star
| | | | | | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | | lscpu: move struct lscpu_desc header fileKarel Zak2018-01-223-157/+162
| | | | | | | | | | | | | | | | | | | | | The lscpu code is growing and it seems better to allow to make code more structured. Signed-off-by: Karel Zak <kzak@redhat.com>
* | | Merge branch 'arm-cpus' of https://github.com/suihkulokki/util-linuxKarel Zak2018-01-224-0/+240
|\ \ \ | |/ / |/| | | | | | | | * 'arm-cpus' of https://github.com/suihkulokki/util-linux: lscpu: Decode ARM CPUs
| * | lscpu: Decode ARM CPUsRiku Voipio2018-01-194-0/+240
| | | | | | | | | | | | | | | | | | | | | | | | Since the kernel developers have refused to make /proc/cpuinfo user understandable, implement mapping in userspace. lscpu is available for most users via util-linux, so store the information here. Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
* | | cal: fix julian calendars for large yearsJ William Piggott2018-01-221-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before: cal --r julian 31 12 2147483646 December 2147483646 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Patched: cal --r julian 31 12 2147483646 December 2147483646 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Signed-off-by: J William Piggott <elseifthen@gmx.com>
* | | build-sys: remove redundant EXTRA_DIST filesRuediger Meier2018-01-225-9/+5Star
| | | | | | | | | | | | | | | | | | | | | The sources of AC_CONFIG_FILES (*.in) are automatically distributed. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | | build-sys: avoid using prog_DEPENDENCIESRuediger Meier2018-01-225-13/+7Star
| | | | | | | | | | | | | | | | | | | | | Use EXTRA_prog_DEPENDENCIES to have the benefit of automake's automatic prog_DEPENDENCIES. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | | build-sys: remove unneeded dependencies on bla.h.inRuediger Meier2018-01-224-8/+4Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have already automakes's automatic dependencies like bla.h.in -> bla.h -> foo.o -> bar.la An explicit direct dependency bla.h.in -> bar.la is redundant and useless anyways. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | | build-sys: automake is able to find headers in builddir ...Ruediger Meier2018-01-224-4/+4
| | | | | | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | | build-sys: remove generated headers from dist tar ballRuediger Meier2018-01-225-18/+5Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Headers should only be listed in either *_HEADERS or *_SOURCES, especially when we want nodist_*_HEADERS. Since all the generated headers are made by configure we don't even need to use BUILT_SOURCES or other tricks. Also see automake docs 9.4.1 Built Sources Example: case "Build bindir.h from configure" Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | | hwclock: add --ul-debug implementing debug.hJ William Piggott2018-01-222-18/+45
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Undocumented at this time, because it is a skeleton implementation. More debugging points are to be added after refactoring is complete, or ad hoc in the mean time. When fully implemented, enough time may have passed that the deprecated --debug could be used to replace --ul-debug. [kzak@redhat.com: - use __UL_INIT_DEBUG_FROM_STRING() to initialize the mask - add hwclock_init_debug()] Coauthored-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: J William Piggott <elseifthen@gmx.com> Signed-off-by: Karel Zak <kzak@redhat.com>