summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | 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>
* | mount(8): point people to the proc(5) page for mount optionsMike Frysinger2018-01-191-3/+3
|/ | | | | | | This page is out of date wrt proc mount options, so point it to the proc(5) page which is kept up to date. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sfdisk: add hint about udev and flock to the man pageKarel Zak2018-01-171-0/+16
| | | | | Addresses: https://github.com/karelzak/util-linux/issues/563 Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: mark fincore/count as KNOWN_FAILKarel Zak2018-01-171-0/+4
| | | | | | | The test (or our expectations about Direct-IO) seems not robust enough. I guess this is not fincore problem. Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: add ISC licenceCarlos Santos2018-01-171-0/+11
| | | | | | | | | | | Save the top 21 lines of sys-utils/rfkill.c as COPYING.ISC. This is useful for Linux distributions an integration tools like Buildroot, to collect detailed legal information for each package. [kzak@redhat.com: - remove C-comments and rfkill header] Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Karel Zak <kzak@redhat.com>
* include/debug: introduce __UL_INIT_DEBUG_FROM_STRING()Karel Zak2018-01-1715-21/+26
| | | | | | | Let's make it possible to use debug.h without environment variables. Suggested-by: J William Piggott <elseifthen@gmx.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: rename --debug option to --verboseJ William Piggott2018-01-175-47/+66
| | | | | | | | | Warn on --debug; do not fallthrough because the message is lost in the verbose output. Coauthored-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: J William Piggott <elseifthen@gmx.com>
* cal: update man pageJ William Piggott2018-01-161-9/+74
| | | | | | | | | | Update cal.1 with the new options --reform and --iso. Also add information about the calendar systems used and the difference between the --julian option and the Julian calendar system. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* cal: add option to set Gregorian reform dateJ William Piggott2018-01-161-4/+49
| | | | | | | | | | | Create the new option: --reform <1752|gregorian|iso|julian> This adds the capability to display either the proleptic Gregorian or the Julian calendar systems exclusively. Also create the option --iso as alias of --reform=gregorian. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* cal: move REFORMATION_YEAR to control structJ William Piggott2018-01-151-37/+49
| | | | Signed-off-by: J William Piggott <elseifthen@gmx.com>
* include/debug: improve debug messageKarel Zak2018-01-121-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include/debug: print info when addresses suppressedKarel Zak2018-01-121-1/+3
| | | | | Suggested-by: Peter Cordes <peter@cordes.ca> Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: cleanup shortcuts in man page tooKarel Zak2018-01-121-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (script) be consistent in code with typesKarel Zak2018-01-121-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'mbsencode' of https://github.com/yontalcar/util-linuxKarel Zak2018-01-129-5/+183
|\ | | | | | | | | | | | | | | | | | | * 'mbsencode' of https://github.com/yontalcar/util-linux: tests: mark mbsencode as KNOWN_FAIL tests: mbsencode - test for HAVE_WIDECHAR lib/mbsalign: Fix escaping nonprintable multibyte characters tests: mbsencode - removed emoji, added control unicode character tests: add tests for encode functions from lib/mbsalign.c lib/mbsalign: escape "\x" when HAVE_WIDECHAR not defined
| * tests: mark mbsencode as KNOWN_FAILVaclav Dolezal2018-01-111-0/+3
| | | | | | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
| * tests: mbsencode - test for HAVE_WIDECHARVaclav Dolezal2018-01-111-8/+26
| | | | | | | | | | | | Test only safe-ascii as it should behave in the same way. Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
| * lib/mbsalign: Fix escaping nonprintable multibyte charactersVaclav Dolezal2018-01-111-1/+1
| | | | | | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
| * tests: mbsencode - removed emoji, added control unicode characterVaclav Dolezal2018-01-115-5/+5
| | | | | | | | | | | | | | Emojis are apparently too recent to be reliably recognised as printable on test machines. Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
| * tests: add tests for encode functions from lib/mbsalign.cVaclav Dolezal2018-01-108-0/+158
| | | | | | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
| * lib/mbsalign: escape "\x" when HAVE_WIDECHAR not definedVaclav Dolezal2017-12-221-4/+3Star
| | | | | | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
* | include/debug: don't print pointer address for SUID programsKarel Zak2018-01-1211-16/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * introduce new flag __UL_DEBUG_FL_NOADDR to suppress pointer address printing * use __UL_DEBUG_FL_NOADDR when SUID * move ul_debugobj() to debugobj.h, and require UL_DEBUG_CURRENT_MASK to provide access to the current mask from ul_debugobj(). It's better than modify all ul_debugobj() calls and use the global mask as argument. * remove never used UL_DEBUG_DEFINE_FLAG Reported-by: halfdog <me@halfdog.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* | libfdisk: allow to start freespace for zeroKarel Zak2018-01-113-1/+8
| | | | | | | | | | | | | | This is necessary for disk labels like SUN where whole disk is possible to address by partitions. Signed-off-by: Karel Zak <kzak@redhat.com>
* | libfdisk: (sun) fix n-1 bug and whole-diskKarel Zak2018-01-111-1/+5
| | | | | | | | | | | | | | | | * set whole_disk variable if SUN_TAG_WHOLEDISK specified * fix N-1 bug in add new partition according to template (script) Addresses: https://github.com/karelzak/util-linux/issues/555 Signed-off-by: Karel Zak <kzak@redhat.com>
* | Merge branch 'fixes' of https://github.com/rudimeier/util-linuxKarel Zak2018-01-111-1/+1
|\ \
| * | misc: fix printf i386 compiler warningsRuediger Meier2018-01-091-1/+1
| | | | | | | | | | | | | | | | | | sys-utils/lsns.c:683:2: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘ino_t’ [-Werror=format=] Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | | libblkid: Add support for stratisTony Asleson2018-01-114-0/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial support for stratis, ref. https://github.com/stratis-storage [kzak@redhat.com: - remove C++ comment] Signed-off-by: Tony Asleson <tasleson@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* | | libfdisk: (script) support R (RAID) and V (LVM) shortcutsKarel Zak2018-01-093-2/+21
| | | | | | | | | | | | | | | Addresses: https://github.com/karelzak/util-linux/issues/560 Signed-off-by: Karel Zak <kzak@redhat.com>
* | | libfdisk: (gpt) add VMware specific UUIDsKarel Zak2018-01-081-0/+7
| | | | | | | | | | | | | | | Addresses: https://github.com/karelzak/util-linux/issues/559 Signed-off-by: Karel Zak <kzak@redhat.com>
* | | libmount: fix mnt_table_is_fs_mounted() for rbindKarel Zak2018-01-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no difference between "bind" and "rbind" if we want to FS root to search for the FS in mountinfo file. fstab: /dev/sdc1 /mnt/foo xfs defaults 0 0 /mnt/foo /mnt/test none rw,rbind 0 0 use -a more than once: mount -a mount -a /proc/mounts (the current result): /dev/sdc1 /mnt/foo xfs rw,relatime,attr2,inode64,noquota 0 0 /dev/sdc1 /mnt/test xfs rw,relatime,attr2,inode64,noquota 0 0 /dev/sdc1 /mnt/test xfs rw,relatime,attr2,inode64,noquota 0 0 /dev/sdc1 /mnt/foo xfs rw,relatime,attr2,inode64,noquota 0 0 expected (fixed version) result: /dev/sdc1 /mnt/foo xfs rw,relatime,attr2,inode64,noquota 0 0 /dev/sdc1 /mnt/test xfs rw,relatime,attr2,inode64,noquota 0 0 Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1528959 Signed-off-by: Karel Zak <kzak@redhat.com>
* | | libfdisk: (dos) fix max headsKarel Zak2018-01-021-1/+1
| | | | | | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | | libfdisk: extend API to provide label specific geometry rangesKarel Zak2018-01-027-11/+138
| | | | | | | | | | | | | | | | | | | | | Now fdisk provides DOS specific geometry ranges in expert menu. Addresses: https://github.com/karelzak/util-linux/issues/556 Signed-off-by: Karel Zak <kzak@redhat.com>
* | | rtcwake: wait stdin to settle down before entering a system sleepSami Kerola2018-01-022-2/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This can delay entering to system sleep up to 0.28 seconds while discarding input, when stdin is interactive device. [kzak@redhat.com: - add note to the man page] Reference: https://github.com/karelzak/util-linux/issues/527 See-also: a85c39013491713ac0d9e24fd0f07b4fabdcfc17 Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* | | sfdisk: wait before re-readKarel Zak2018-01-021-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original old (v2.13) fdisk had sleep(2) beany ideafore re-read ioctl. It seems overkill, but short sleep is probably a good idea as we call re-read on sfdisk start and at the end. It's possible that sfdisk is too fast and the initial re-read is not gone yet. It would be nice to have something more elegant than sleep, any idea? Addresses: https://github.com/karelzak/util-linux/issues/557 Signed-off-by: Karel Zak <kzak@redhat.com>
* | | Merge branch 'patch-1' of https://github.com/kenyon/util-linuxKarel Zak2018-01-021-1/+1
|\ \ \
| * | | rename.1: fix typo, where -> wereKenyon Ralph2017-12-231-1/+1
| | |/ | |/|
* | | Merge branch 'master' of https://github.com/yurchor/util-linuxKarel Zak2018-01-021-1/+1
|\ \ \
| * | | Fix minor typo: priorty -> priorityYuri Chornoivan2017-12-311-1/+1
| |/ /
* / / lib/sha1: use proper WORDS_BIGENDIAN macroKarel Zak2018-01-021-6/+3Star
|/ / | | | | | | | | | | | | | | The original code uses BYTE_ORDER, but we use WORDS_BIGENDIAN in utl-linux. Reported-by: Andreas Schwab <schwab@linux-m68k.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* | lib/mbsalign: encode \x to \xecxKarel Zak2017-12-201-2/+8
| | | | | | | | | | | | | | Don't encode stand alone '\', our encoding is about \x<hex>, so we need to care about \x prefix only. Signed-off-by: Karel Zak <kzak@redhat.com>
* | libfdisk: (gpt) use fdisk_warn() for failed name settingKarel Zak2017-12-201-1/+1
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | Merge branch 'gpt-part-name' of https://github.com/yontalcar/util-linuxKarel Zak2017-12-202-23/+51
|\ \ | | | | | | | | | | | | | | | | | | | | | * 'gpt-part-name' of https://github.com/yontalcar/util-linux: libfdisk: return bytes processed from gpt_entry_set_name(), process rc libfdisk: allocate enough bytes for ucs2 to utf8 encoding libfdisk: gpt: properly encode string on rename lib/mbsalign: encode backslash to prevent ambiguity
| * | libfdisk: return bytes processed from gpt_entry_set_name(), process rcVaclav Dolezal2017-12-191-5/+8
| | | | | | | | | | | | | | | | | | | | | Made gpt_entry_set_name() return number of utf8 bytes processed on success, so info message about change can be accurate. Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
| * | libfdisk: allocate enough bytes for ucs2 to utf8 encodingVaclav Dolezal2017-12-181-7/+6Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | Allocate 3*number_of_ucs2_characters bytes for utf8 output. Also as we are using calloc there's no need to write terminating null byte. Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
| * | libfdisk: gpt: properly encode string on renameVaclav Dolezal2017-12-181-10/+36
| | | | | | | | | | | | | | | | | | | | | GPT partition name entry should be recorded as little endian UCS2, so I have written proper conversion (assuming UTF8 input). Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>