Commit Graph

7733 Commits

Author SHA1 Message Date
Karel Zak ebff016a19 build-sys: consolidate systemd support
* systemd (since v209) uses only one library (when compiled
   without --enable-compat-libs)

 * all systemd build-sys stuff is merged into HAVE_SYSTEMD
  (automake) and HAVE_LIBSYSTEMD (C macro) now

 * all is controlled by --with-systemd, default is to automatically
   check for systemd libs

 * no more --enable-socket-activation and --enable-journald

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-09 12:23:30 +02:00
Karel Zak 4856a7bc01 build-sys: fix fstrim systemd stuff
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-08 19:19:14 +02:00
Karel Zak d9554c97e8 libsmartcols: rewrite test code to tree(1)-like util
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-08 12:13:02 +02:00
Karel Zak 11fe0448a0 libfdisk: (dos) make EBR parser more robust
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-08 10:14:12 +02:00
Karel Zak e2310281c7 libsmartcols: improve docs
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 14:07:49 +02:00
Karel Zak 4418714f47 libsmartcols: add debug and version functions
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 13:43:50 +02:00
Karel Zak 8d0ce083b1 libblkid: remove private function from docs
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 13:27:24 +02:00
Karel Zak 1024dd6acb build-sys: fix .h.in usage in libblkid and libmount
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 13:26:56 +02:00
Anton Blanchard 95bf26fd68 setarch: Fix ppc64le architectures
setarch currently fails on ppc64le because it tries to
use big endian architecture names. Fix it.

Signed-off-by: Anton Blanchard <anton@samba.org>
2014-04-07 12:38:22 +02:00
Jonathan Liu 8356d27d66 umount: fix typo in usage
Signed-off-by: Jonathan Liu <net147@gmail.com>
2014-04-07 12:38:20 +02:00
Thomas Bächler 877cd8944b fstrim: add systemd units
This adds a timer and a service for systemd that runs
fstrim -a once a day.

The Persistent=true option used will only work on systemd 212
or newer.
2014-04-07 12:38:18 +02:00
Ondrej Oprala 3aca66a54d login: fix minor typos in the man page
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-07 12:38:17 +02:00
Bjarni Ingi Gislason 9697975498 mkswap: Some minor typographical corrections to the manual
-- changed to \(en (an en-dash) if it is a dash (pause, separation)

  - changed to \- if it indicates an option

  A full stop (.), that begins or ends a string, protected with \&

  Space between sentences corrected to two word spaces

  -- changed to \-\- if it indicates an option

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 12:31:48 +02:00
Bjarni Ingi Gislason 2f52fc4feb mkfs.minix: Some typographical changes in the manual
- between numbers changed to \(en if it is a range

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 12:31:48 +02:00
Bjarni Ingi Gislason 10c70f0507 mkfs.cramfs: Some typographical corrections to the manual
The unit "MB" is ambigous.  Use "MiB" if "M" does not mean 10^6.
Otherwise add "(M = 10^6)" after it.

  Changes:

  Unpaddable space (\ ) added between a number and an unit.  A nuber
and a unit are not one word.  Is "16MB" written "sixteenmegabytes"?

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 12:31:48 +02:00
Bjarni Ingi Gislason cdd710a1e3 mkfs.bfs: One typographical correction to the manual
- between numbers changed to \(en  (an en-dash)

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 12:31:42 +02:00
Bjarni Ingi Gislason 920d44f5fd mkfs: Some typographical changes to the manual
- changed to \- if it means an option

  A full stop (.), that begins or ends a string, protected with \&

  No line adjustment used for section "SEE ALSO" (.na/.ad)

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 12:30:17 +02:00
Bjarni Ingi Gislason 98cd16d369 isosize: A few typographical changes to the manual
A full stop (.), that begins or ends a string, protected with \&

  A space between a number and an unit changed to an unpaddable space
"\ "

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 12:30:17 +02:00
Bjarni Ingi Gislason 897776a0d2 fsck.minix: A few typographical corrections to the manual
- between numbers changed to \(en if it means a range

  A full stop (.), that begins or ends a string, protected with \&

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 12:30:17 +02:00
Bjarni Ingi Gislason dbaa5fda4b fsck: Some typographical corrections to the manual
The word "kilobytes" is ambiguous.  Change it to "kibibytes" if kilo
does not mean 1000.  Otherwise add "(1000 B)" after it.

  A string, that begins or ends with a full stop (.), protected with \&

  - changed to \- if it shows an option

  -- change to \(en if it means a dash (pause, separation)

  Space between sentences is two word spaces in *roff.  Thus it is
better to begin each sentence on a new line when the file contains
formatting commands

  --- changed to \(en if it means a dash (pause, separation)

  Punctuation separated from a word with a space, if it is an argument
to a macro like "BR" (two font styles used alternately)

  Adjusting inhibited for the section "SEE ALSO" with ".na/.ad"

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 12:30:12 +02:00
Bjarni Ingi Gislason dce8463c56 fdformat: Some minor change to the manual
\- changed to - (code "hyphen-minus", rendered with the glyph hyphen
in troff) if it is a part of a compound name.  A minus is not used in
words.  People using UTF-8 and copy-and-pase can(?) (may?) use "info",
"man --ascii" or the command "man" should have an option to display the
- in names of options with the code (character name) "hyphen-minus"
(u002D) instead of "u2010" (code (character) name "hyphen")

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 12:21:24 +02:00
Bjarni Ingi Gislason 023dcba0f0 blockdev: Some minor corrections to the manual
Macro, that alternately changes the input between two font styles,
changed to the macro for one font style change, if there is only one
argument

 Text string, that begins or ends with a full stop (.) protected with \&

 -- changed to \-\- if it is an option

 - changed to \(en if it is a dash (pause, seperation)


Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 12:18:04 +02:00
Bjarni Ingi Gislason 0d05f1619d mount.8: Some typographical and prefix corrections to the manual
I forgot to add the patch to the attachment.

  Additional changes to "Changes:"

  " \(em " changed to " \(en ", as the em-dash with a word space on each
side is to long (troff)

  ".na/.ad" is not used but .nf/.fi for a long command line and it is
split into two lines

  Word "illegal" is changed to "invalid"

  Word "hyphen-separated" is changed to '"hyphen-minus"-separated' as
the meaning is the code and not the glyph (on the command line) (beware
of UTF-8)

--
Bjarni I. Gislason
2014-04-07 12:16:02 +02:00
Karel Zak b6bdccc710 mount: apply "nofail" to MNT_ERR_NOSOURCE libmount error
fstab:
     UUID=nonexist /mnt/nonexist1 ext4 nofail 0 1

 # mount -av
 mount: can't find UUID=nonexist

.. this is bug of course.

Reported-by: Patrick McLean <chutzpah@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 12:09:11 +02:00
Karel Zak 0ce2fe8738 umount: more robust success message for --all
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 12:00:51 +02:00
Karel Zak 8ab82185ee mount: fix --all and nofail return code
Now the "nofail" affects warnings warning messages only. That's wrong
and regression (against original non-libmount version). The nofail has
to control return code too.

Reported-by: Patrick McLean <chutzpah@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 11:53:05 +02:00
Karel Zak e0d4675789 kill: fix bug in --all semantic
Introduces by 2ab6683f59.

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 11:29:09 +02:00
Karel Zak 10ab72e7a1 kill: make kill-by-name more obvious in man page
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 11:22:12 +02:00
Karel Zak 6853d664a0 kill: add copyrights, etc.
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 11:12:14 +02:00
Karel Zak a01f4d4323 kill: return 64 on partial success
Return 64 (aka SOME_OK) when more than process specified and the
operation success only for subset of the processes.

 # kill -s 0 firefox mutt xxx; echo $?
 kill: cannot find process "xxx"
 64

We already use this concept for chcpu(8) or mount(8).

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 11:07:00 +02:00
Karel Zak d1f7edbe82 kill: tiny change in man page
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 10:35:30 +02:00
Karel Zak e497557f58 kill: coding style, simplify code
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 10:17:23 +02:00
Karel Zak 6ca933136f kill: rename printsig() to print_signal_name()
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 10:10:43 +02:00
Karel Zak dba96eedb8 docs: add pid alis to deprecated.txt
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 10:05:14 +02:00
Karel Zak abc7d9bfdf kill: rename printsignals() to print_all_signalsprint_all_signals()
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 10:03:50 +02:00
Karel Zak dff74debed kill: reorder functions to make it more readable
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 09:59:51 +02:00
Karel Zak f9de39eebd Merge branch 'kill' of git://github.com/kerolasa/lelux-utiliteetit
* 'kill' of git://github.com/kerolasa/lelux-utiliteetit:
  kill: move sigqueue inputs to control struct
  kill: add parse_arguments() function
  kill: tell what is wrong rather than output usage()
  kill: use control structure to pass user input to functions
  kill: deprecat invocation as 'pid' command name
  kill: make usage() not to return
  kill: move magic numbers in beginning of the file
  kill: flip all comparions to be in smaller - greater order
  kill: fix coding style
2014-04-07 09:37:34 +02:00
Karel Zak 9c7955dabe libfdisk: make qsort_r() optional
The function is no critical for fdisk functionality. The SUN label
verification will check for less issues. All the verification code is
optional ('v' fdisk command).

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-04 16:02:35 +02:00
Dave Reisner c7832fb8f1 switch_root: verify initramfs by f_type, not devno
As of linux 3.14, the initramfs device will have both major and
minor 0, causing our paranoia check to fail. Make this version agnostic
by checking the filesystem type, rather than a device number.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2014-04-04 14:55:13 +02:00
Karel Zak c830206931 libsmartcols: add missing COPYING file
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-04 13:53:50 +02:00
Karel Zak 71dbc865f8 libsmartcols: fix test
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-04 13:51:47 +02:00
Karel Zak 2a49c0165d build-sys: small fixes to libsmartcols
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-04 11:25:08 +02:00
Karel Zak 0925a9dd6c libsmartcols: clean up flags usage
* rename flags functions to scols_table_enable_*
 * rename *_no_foo() functions to _nofoo()
 * output formats are mutually exclusive, so don't use flags there
 * don't assume symbols in scols_new_table(), use scols_table_set_symbols()

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 16:09:57 +02:00
Karel Zak 7fa74cb098 fdisk: print table header as bold
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:43:36 +02:00
Karel Zak 5fd7160e83 libfdisk: fix freesapce detection for nested partitions
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:21 +02:00
Karel Zak c743bf744a cfdisk: clean up scols usage
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:21 +02:00
Karel Zak 7bae0563b8 libfdisk: clean up scols usage
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:21 +02:00
Karel Zak 98f87c507d wdctl: clean up scols usage
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:21 +02:00
Karel Zak e516634844 swapon: clean up scols usage
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:20 +02:00
Karel Zak 05186e79ff prlimit: clean up scols usage
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:20 +02:00