]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Merge branch 'patch-16' of https://github.com/mariobl/util-linux
authorKarel Zak <kzak@redhat.com>
Mon, 8 Jan 2024 09:24:58 +0000 (10:24 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 8 Jan 2024 09:24:58 +0000 (10:24 +0100)
* 'patch-16' of https://github.com/mariobl/util-linux:
  sfdisk: Fix markup in man page

misc-utils/hardlink.1.adoc
misc-utils/lsclocks.1.adoc
misc-utils/lsfd.1.adoc
sys-utils/hwclock.c
sys-utils/mount.8.adoc

index 91d986776e48c302be8f2ebbbc2d766382b6f00e..471cb1c7ddd1e87c67a9db385f48250bc4a9bd85 100644 (file)
@@ -55,7 +55,7 @@ way and I/O operation is done in the kernel. The size may be altered on the fly
 to fit a number of cached content checksums.
 
 *-d*, *--respect-dir*::
-Only try to link files with the same directory name. The top-level directory (as specified on the hardlink command line) is ignored. For example, *hardlink --respect-dir /foo /bar* will link _/foo/some/file_ with _/bar/some/file_, but not _/bar/other/file_. If combined with *--respect-name*, then entire paths (except the top-level directory) are compared.
+Only try to link files with the same directory name. The top-level directory (as specified on the *hardlink* command line) is ignored. For example, *hardlink --respect-dir /foo /bar* will link _/foo/some/file_ with _/bar/some/file_, but not _/bar/other/file_. If combined with *--respect-name*, then entire paths (except the top-level directory) are compared.
 
 *-f*, *--respect-name*::
 Only try to link files with the same (base)name. It's strongly recommended to use long options rather than *-f* which is interpreted in a different way by other *hardlink* implementations.
index 78548ed52552a8b2564c1dcedfa30c406a2bc9f8..12a425bf32dc2959d78688b89ef1c882cf0ab432 100644 (file)
@@ -18,7 +18,7 @@ lsclocks - display system clocks
 
 *lsclocks* is a simple command to display system clocks.
 
-It allows to display information like current time and resolutionof clocks like
+It allows to display information like current time and resolution of clocks like
 CLOCK_MONOTONIC, CLOCK_REALTIME and CLOCK_BOOTTIME.
 
 == OPTIONS
@@ -40,7 +40,7 @@ Output all columns.
 Use raw output format.
 
 *-r*, *--time* _clock_::
-Show current time of one specific clocks.
+Show current time of one specific clock.
 
 *--no-discover-dynamic*::
 Do not try to discover dynamic clocks.
@@ -85,7 +85,7 @@ ISO_TIME <``string``>::
 ISO8601 formatted version of *TIME*.
 
 RESOL_RAW <``number``>::
-Clock resolution as returned by *clock_getres()*.
+Clock resolution as returned by *clock_getres*(2).
 
 RESOL <``number``>::
 Human readable version of *RESOL_RAW*.
index ba12c86f2e65b2c752ee8fbcc66e2f8f5f8e6db2..09c181655ad05e6e617315e248c9c976a82e8d5f 100644 (file)
@@ -495,7 +495,7 @@ PTMX.TTY-INDEX <``number``>::
 TTY index of the counterpart.
 
 TUN.IFACE <``string``>::
-Network intrface behind the tun device.
+Network interface behind the tun device.
 
 TYPE <``string``>::
 Cooked version of STTYPE. It is same as STTYPE with exceptions.
@@ -550,7 +550,7 @@ opened of mapped for writing. This is also in _MODE_.
 mapped for executing the code. This is also in _MODE_.
 +
 [-D]:::
-deleted from  the file system. See also _DELETED._.
+deleted from  the file system. See also _DELETED_.
 +
 [-Ll]:::
 locked or leased. _l_ represents a read, a shared lock or a read lease.
@@ -561,9 +561,9 @@ descriptor, _L_ is used as the flag.
 [-m]:::
 Multiplexed. If the file descriptor is targeted by a eventpoll file
 or classical system calls for multiplexing (select, pselect, poll, and
-ppoll), this bit flag is set. Note that if an invocaiton of the
+ppoll), this bit flag is set. Note that if an invocation of the
 classical system calls is interrupted, *lsfd* may fail to mark _m_
-on the file descriptors monitored by the invocaiton.
+on the file descriptors monitored by the invocation.
 See *restart_syscall*(2).
 
 == FILTER EXAMPLES
index 35c73df1367249b3159a64aeaea37b56aca91835..7002708af21379048677d1df064f8c5b0ae0ec56 100644 (file)
@@ -624,7 +624,7 @@ set_hardware_clock_exact(const struct hwclock_control *ctl,
        }
 
        newhwtime = sethwtime
-                   + ceil(time_diff(nowsystime, refsystime)
+                   + round(time_diff(nowsystime, refsystime)
                            - delay /* don't count this */);
        if (ctl->verbose)
                printf(_("%"PRId64".%06"PRId64" is close enough to %"PRId64".%06"PRId64" (%.6f < %.6f)\n"
index eadbaf666a1524650f4d17126cfe03afced4c673..1eb2f8ce625ba9dd8410defaede6a216393e9287 100644 (file)
@@ -329,11 +329,11 @@ Note that *mount* does not pass this option to the **/sbin/mount.**__type__ help
 (Used in conjunction with *-a*.) Fork off a new incarnation of *mount* for each device. This will do the mounts on different devices or different NFS servers in parallel. This has the advantage that it is faster; also NFS timeouts proceed in parallel. A disadvantage is that the order of the mount operations is undefined. Thus, you cannot use this option if you want to mount both _/usr_ and _/usr/spool_.
 
 *-f, --fake*::
-Causes everything to be done except for the mount-related system calls. The --fake option was originally designed to write an entry to /etc/mtab without actually mounting.
+Causes everything to be done except for the mount-related system calls. The *--fake* option was originally designed to write an entry to _/etc/mtab_ without actually mounting.
 +
-The /etc/mtab is no longer maintained in userspace, and starting from version 2.39, the mount operation can be a complex chain of operations with dependencies between the syscalls. The --fake option forces libmount to skip all mount source preparation, mount option analysis, and the actual mounting process.
+The _/etc/mtab_ is no longer maintained in userspace, and starting from version 2.39, the mount operation can be a complex chain of operations with dependencies between the syscalls. The *--fake* option forces libmount to skip all mount source preparation, mount option analysis, and the actual mounting process.
 +
-The difference between fake and non-fake execution is huge. This is the reason why the --fake option has minimal significance for the current mount(8) implementation and it is maintained mostly for backward compatibility.
+The difference between fake and non-fake execution is huge. This is the reason why the *--fake* option has minimal significance for the current *mount*(8) implementation and it is maintained mostly for backward compatibility.
 
 *-i, --internal-only*::
 Don't call the **/sbin/mount.**__filesystem__ helper even if it exists.
@@ -391,7 +391,7 @@ Note that the order of the options matters, as the last option wins if there are
 For more details, see the *FILESYSTEM-INDEPENDENT MOUNT OPTIONS* and *FILESYSTEM-SPECIFIC MOUNT OPTIONS* sections.
 
 *--onlyonce*::
-Forces mount command to check if the filesystem is already mounted. This behavior is the default for *--all*; otherwise, it depends on the kernel filesystem driver. Some filesystems may be mounted more than once on the same mount point (e.g. tmpfs).
+Forces *mount* command to check if the filesystem is already mounted. This behavior is the default for *--all*; otherwise, it depends on the kernel filesystem driver. Some filesystems may be mounted more than once on the same mount point (e.g. tmpfs).
 
 *--options-mode* _mode_::
 Controls how to combine options from _fstab_/_mtab_ with options from the command line. _mode_ can be one of *ignore*, *append*, *prepend* or *replace*. For example, *append* means that options from _fstab_ are appended to options from the command line. The default value is *prepend* -- it means command line options are evaluated after _fstab_ options. Note that the last option wins if there are conflicting ones.
@@ -697,7 +697,7 @@ The _list_ is a comma-separated list of the filesystem names. The
 automatic filesystem detection is triggered by the "auto" filesystem type or
 when the filesystem type is not specified.
 +
-Thy _list_ follows how mount
+The _list_ follows how mount
 evaluates type patterns (see *-t* for more details). Only specified filesystem
 types are allowed, or all specified types are forbidden if the list is prefixed
 by "no". 
@@ -1627,7 +1627,7 @@ The command *mount* does not pass the mount options *unbindable*, *runbindable*,
 == ENVIRONMENT
 
 *LIBMOUNT_FORCE_MOUNT2*={always|never|auto}::
-force to use classic mount(2) system call (requires support for new file descriptors based mount API). The default is *auto*; in this case, libmount tries to be smart and use classic mount(2) only for well-known issues. If the new mount API is unavailable, libmount can still use traditional mount(2), although LIBMOUNT_FORCE_MOUNT2 is set to *never*.
+force to use classic *mount*(2) system call (requires support for new file descriptors based mount API). The default is *auto*; in this case, libmount tries to be smart and use classic *mount*(2) only for well-known issues. If the new mount API is unavailable, libmount can still use traditional *mount*(2), although LIBMOUNT_FORCE_MOUNT2 is set to *never*.
 
 *LIBMOUNT_FSTAB*=<path>::
 overrides the default location of the _fstab_ file (ignored for suid)