Commit Graph

15606 Commits

Author SHA1 Message Date
Karel Zak d77714dcb9 scriptlive: (man) add missing parenthesis
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-23 11:35:20 +02:00
Karel Zak ad0963685b Merge branch 'fix-misspellings' of https://github.com/rffontenelle/util-linux 2021-04-23 10:49:10 +02:00
Karel Zak a51aadb348 Merge branch 'master' of https://github.com/mariobl/util-linux
* 'master' of https://github.com/mariobl/util-linux:
  po-man: Fix typos in de.po and po4a.cfg
  hardlink: fix typo
2021-04-23 10:44:46 +02:00
Karel Zak 638d1277cc docs: update TODO
Addresses: https://github.com/karelzak/util-linux/issues/1291
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-23 10:43:06 +02:00
Karel Zak da5d1468c1 build-sys: add .stamp to gitignore
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-23 10:39:35 +02:00
Karel Zak 5e42ec32fb build-sys: fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-23 10:38:31 +02:00
Rafael Fontenelle 993556aaa5 Fix misspellings 2021-04-22 20:31:05 -03:00
Mario Blättermann 74699e0e94 po-man: Fix typos in de.po and po4a.cfg 2021-04-22 18:50:46 +02:00
Mario Blättermann 113f0b3464 Merge remote-tracking branch 'upstream/master' 2021-04-22 18:41:50 +02:00
Karel Zak a73035dc74 build-sys: disable po-man by default, cleanup summary
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-22 15:59:54 +02:00
Karel Zak 64936a9ddb build-sys: add uninstall to po-man
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-22 15:23:42 +02:00
Karel Zak 8f5fff5350 build-sys: add targets to generated translated man pages
* add --enable-poman (disabled by default)
* add po-man/Makefile.am for "make all" and "make install"
* install man pages to $mandir/$lang/man{1,3,5,8}

Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-22 15:23:42 +02:00
Karel Zak 2b84ac2dbd Merge branch 'topic/po4a' of https://github.com/mariobl/util-linux
* 'topic/po4a' of https://github.com/mariobl/util-linux:
  mount.a.adoc: Fix markup
  Asciidoc: Add missing macro definition in uclampset.1
  Asciidoc: Fix markup in example man page
  Asciidoc: Fix markup
  Asciidoc: Remove artifact from merge conflict
  Asciidoc: Convert man-common/README to Markdown
  po-man: Fix the example man page
  po-man: Fix typos in po-man/README.md
  po-man: Update the example man page
  po-man: Add po-man/README.md
  po-man: Add (incomplete) de.po for testing purposes
  po-man: Add (incomplete) de.po for testing purposes
  po-man: Adjust paths in po4a.cfg and update .pot file
  po-man: Move Po4a config file and translation template to po-man
2021-04-22 15:23:27 +02:00
Karel Zak e5bde19ae2 build-sys: cleanup Makefiles
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-20 14:39:32 +02:00
Karel Zak 0216836e8b build-sys: fix test_loopdev build
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-20 14:22:34 +02:00
Karel Zak d4423cce9b lib/loopdev: fix is_loopdev() to be usable with partitions
The current implementation of the function does not care if the device
is whole-disk device or partition, all is loopdev. This is regression
as the original is_loopdev() version was based on whole-disk devices
major numbers only.

Fixes: https://github.com/karelzak/util-linux/issues/1202
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-20 13:20:12 +02:00
Karel Zak 01480c61e1 hardlink: fix typo again
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-19 15:30:57 +02:00
Karel Zak 9f17b992e3 libfdisk: do not reset default if undefined by script
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-19 13:19:23 +02:00
Karel Zak 35d5db6ebb hardlink: fix typo
Reported-by: Mario Blättermann <mario.blaettermann@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-19 10:10:17 +02:00
Karel Zak 20ac96ffe2 Merge branch 'fix-swapon-summary-heading-alignment' of https://github.com/sebras/util-linux
* 'fix-swapon-summary-heading-alignment' of https://github.com/sebras/util-linux:
  swapon: Keep headings and fields aligned in summary output.
2021-04-19 10:05:05 +02:00
Karel Zak 7c35325c49 Merge branch 'fix-typo' of https://github.com/sebras/util-linux
* 'fix-typo' of https://github.com/sebras/util-linux:
  Fix typo in help message.
2021-04-19 10:00:42 +02:00
Karel Zak 60f2d1f0a7 Merge branch 'fix-first-lba' of https://github.com/samueldr/util-linux
* 'fix-first-lba' of https://github.com/samueldr/util-linux:
  libfdisk: Include table-length in first-lba checks
2021-04-19 09:59:42 +02:00
Karel Zak a7ca670346 Merge branch 'lsblk-E-completion' of https://github.com/scop/util-linux
* 'lsblk-E-completion' of https://github.com/scop/util-linux:
  bash-completion: (lsblk) fix -E/-M arg (non-)completion
2021-04-19 09:33:28 +02:00
Karel Zak fcff5b4f9b Merge branch 'update-lsns-man-page' of https://github.com/masatake/util-linux
* 'update-lsns-man-page' of https://github.com/masatake/util-linux:
  man: add ioctl_ns(2) to SEE ALSO of lsns(2)
2021-04-19 09:32:12 +02:00
Mario Blättermann b4c04b3dab mount.a.adoc: Fix markup 2021-04-18 12:16:37 +02:00
Mario Blättermann 0a1cd4c1e2 hardlink: fix typo 2021-04-18 09:17:31 +02:00
Sebastian Rasmussen 5fba3d7b4e swapon: Keep headings and fields aligned in summary output.
Because the headings are aligned with tabs the fields must
always be a multiple of 8 characters. Moreover if the field
values are shorter than 8 characters, extra tabs must be
inserted before the succeding field to keep alignment.

swapon parses /proc/swaps, generated by the Linux kernel in
mm/swapfile.c. Its function swap_show() and its recent fix in
commit 6f7939405f61de7d0da7f6c90182e96c4f5ff6c1 were used as
inspiration for this commit.

Additionally inform the translators about the requirements of
formatting and relationship between the heading and entry strings.
2021-04-18 03:48:57 +02:00
Samuel Dionne-Riel fb64d93288 libfdisk: Include table-length in first-lba checks
Otherwise, sfdisk would error out on its own dump, as first-lba would be
earlier than "plausible" assuming the default table size.

This is because it did not look for `table-length` when using an sfdisk
script. This means that using `--dump` on a valid image, could not be
unserialized back into a valid image.

This is helpful in exotic situations, where a partition has to be
created earlier than the conventional "first-lba" (2048). For example,
on Allwinner A64 boards, where a firmware is stored at LBA16. With this
it is possible to ask for `first-lba` at or earlier than 16, by reducing
the number of entries to e.g. 48.
2021-04-17 16:15:19 -04:00
Sebastian Rasmussen 9b825bde80 Fix typo in help message. 2021-04-17 14:40:13 +02:00
Ville Skyttä ca59e01e39 bash-completion: (lsblk) fix -E/-M arg (non-)completion
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
2021-04-16 22:08:48 +03:00
Masatake YAMATO 64e8df5d47 man: add ioctl_ns(2) to SEE ALSO of lsns(2)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2021-04-17 00:23:22 +09:00
Karel Zak 1c75a85101 libfdisk: use open(O_EXCL) to detect if device is used
It's seems detection by BLKRRPART is broken in recent kernels
(probably regression), and it's also overkill to force kernel re-read
all and generate all the events. It seems more elegant to use O_EXCL.

Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-15 15:14:52 +02:00
Karel Zak dee0c29c6f fdisk: warn if disk in use
Fixes: https://github.com/karelzak/util-linux/issues/1278
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-15 14:43:15 +02:00
Karel Zak d527e8cf70 cfdisk: warn if disk on use
Fixes: https://github.com/karelzak/util-linux/issues/1278
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-15 14:39:11 +02:00
Karel Zak 82e5156a38 docs: add kernel version and commit to info about mountinfo workaround
Fixes: https://github.com/karelzak/util-linux/issues/1280
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-15 12:29:27 +02:00
Karel Zak aac716f503 libsmartcols: make buffers append function more robust
Fixes: https://github.com/karelzak/util-linux/issues/1279
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-14 16:25:30 +02:00
Karel Zak 91f6895fff prlimit: make code more robust
The prlimit description are always defined as static strings, but it
seems better to make the code more readable and robust for static
analyzers and readers.

Fix also missing gettext() call for description help.

Fixes: https://github.com/karelzak/util-linux/issues/1277
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-14 16:19:01 +02:00
Karel Zak e741653d22 tests: small change to the lsns/ioctl_ns
* make description short
* chmod a+x to make script executable

Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-13 10:40:00 +02:00
Karel Zak 9698f39942 Merge branch 'ioctl_ns' of https://github.com/masatake/util-linux
* 'ioctl_ns' of https://github.com/masatake/util-linux:
  lsns: add columns for parent namespaces and owner namespaces
2021-04-13 10:34:49 +02:00
Karel Zak 724d844c12 po: use msgmerge --previous
Reported-by: Mario Blättermann <mario.blaettermann@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-13 10:23:26 +02:00
Chris Hofstaedtler fdf734f7f3 hexdump: add "hd" program name to man page
Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
Bug-Debian: https://bugs.debian.org/978977
2021-04-13 10:20:42 +02:00
Masatake YAMATO d652d4c666 lsns: add columns for parent namespaces and owner namespaces
See ioctl_ns(2) about parent and owner namespaces.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2021-04-13 06:22:51 +09:00
Karel Zak a96932103e chrt: non-Linux fix
Reported-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-12 16:21:18 +02:00
Karel Zak e51c9822a9 lslogins: non-Linux fix
Reported-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-12 16:20:01 +02:00
Karel Zak 331584dbbf build-sys: fix typo
s/Aug/Apr/ ... move back in time ;-)

Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-12 12:46:51 +02:00
Karel Zak e90e5e7e12 build-sys: release++ (v2.37-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-12 11:26:02 +02:00
Karel Zak 6ae1e6b3d7 po: update
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-12 11:22:53 +02:00
Karel Zak ef3f006c6c docs: fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-12 11:22:37 +02:00
Karel Zak c0246ce059 mesg: use only stat() to get the current terminal status
open()+stat() does not work for example after su(1) (from root to
non-root). It seems better to use only stat() to get the current
terminal status.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1906157
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-12 09:39:59 +02:00
Mario Blättermann 56af5af405 Asciidoc: Add missing macro definition in uclampset.1 2021-04-09 22:55:21 +02:00