Typos found with codespell.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
if (!npa)
return -ENOMEM;
- if (dflt_size == size) /* default is to fillin all free space */
+ if (dflt_size == size) /* default is to fill in all free space */
fdisk_partition_end_follow_default(npa, 1);
else
fdisk_partition_set_size(npa, secs);
* No copyright is claimed. This code is in the public domain; do with
* it what you wish.
*
- * Evaluting a list of configuration filenames which have to be handled/parsed.
+ * Evaluating a list of configuration filenames which have to be handled/parsed.
*
* The order of this file list has been defined by
* https://github.com/uapi-group/specifications/blob/main/specs/configuration_files_specification.md
#include "list.h"
/**
- * ul_configs_file_list - Evaluting a list of sorted configuration filenames which have to be handled
+ * ul_configs_file_list - Evaluating a list of sorted configuration filenames which have to be handled
* in the correct order.
*
* @file_list: List of filenames which have to be parsed in that order
#include <inttypes.h>
/*
- * File descritors based mount API
+ * File descriptors based mount API
*/
#ifdef HAVE_MOUNTFD_API
* This program is freely distributable.
*
* This set of netlink callbacks kernel and creates
- * and/or maintains a linked list of requested type. Using callback fuctions
- * and custom data, it could be used for arbitraty purpose.
+ * and/or maintains a linked list of requested type. Using callback functions
+ * and custom data, it could be used for arbitrary purpose.
*
*/
ul_nl_callback callback_pre; /* Function to process ul_netaddrq_data */
ul_nl_callback callback_post; /* Function to process ul_netaddrq_data */
void *callback_data; /* Arbitrary data for callback */
- struct list_head ifaces; /* The intefaces list */
+ struct list_head ifaces; /* The interfaces list */
/* ifaces_change_* has to be changed by userspace when processed. */
bool ifaces_change_4; /* Any changes in the IPv4 list? */
bool ifaces_change_6; /* Any changes in the IPv6 list? */
* joins message parts into a single structure and calls callback.
*
* To do something useful, callback for a selected message type has to be
- * defined. Using callback fuctions and custom data, it could be used for
- * arbitraty purpose.
+ * defined. Using callback functions and custom data, it could be used for
+ * arbitrary purpose.
*
* The code is incomplete. More could be implemented as needed by its use
* cases.
/*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
- * Very simple multibyte buffer editor. Allows to maintaine the current
+ * Very simple multibyte buffer editor. Allows to maintain the current
* position in the string, add and remove chars on the current position.
*
* This file may be distributed under the terms of the
* This program is freely distributable.
*
* This set of netlink callbacks kernel and creates
- * and/or maintains a linked list of requested type. Using callback fuctions
- * and custom data, it could be used for arbitraty purpose.
+ * and/or maintains a linked list of requested type. Using callback functions
+ * and custom data, it could be used for arbitrary purpose.
*
*/
static UL_DEBUG_DEFINE_MASK(netaddrq);
UL_DEBUG_DEFINE_MASKNAMES(netaddrq) =
{
- { "all", ULNETADDRQ_DEBUG_ALL, "complete adddress processing" },
+ { "all", ULNETADDRQ_DEBUG_ALL, "complete address processing" },
{ "help", ULNETADDRQ_DEBUG_HELP, "this help" },
{ "addrq", ULNETADDRQ_DEBUG_ADDRQ, "address rating" },
{ "list", ULNETADDRQ_DEBUG_LIST, "list processing" },
static int callback_post(struct ul_nl_data *nl)
{
- /* If not processing dump, process the change immediatelly by the
+ /* If not processing dump, process the change immediately by the
* callback. */
if (!nl->dumping)
{
* This program is freely distributable.
*
* This set of functions processes netlink messages from kernel and creates
- * and/or maintains a linked list of requested type. Using callback fuctions
- * and custom data, it could be used for arbitraty purpose.
+ * and/or maintains a linked list of requested type. Using callback functions
+ * and custom data, it could be used for arbitrary purpose.
*
* The code here just processes the netlink stream. To do something useful,
* callback for a selected message type has to be defined.
len = nh->nlmsg_len - NLMSG_LENGTH(sizeof(*ifaddr));
for (attr = IFA_RTA(ifaddr); RTA_OK(attr, len);
attr = RTA_NEXT(attr, len)) {
- /* Proces most common rta attributes */
+ /* Process most common rta attributes */
DBG(ADDR, ul_debugobj(attr, "processing rtattr"));
switch (attr->rta_type) {
case IFA_ADDRESS:
} else if (argc == 4 && strcmp(argv[1], "--stralnumcmp") == 0) {
printf("%s\n", ul_stralnumcmp(argv[2], argv[3]) == 0 ?
- "match" : "dismatch");
+ "match" : "mismatch");
return EXIT_SUCCESS;
} else if (argc == 4 && strcmp(argv[1], "--cstrcasecmp") == 0) {
struct nvs_header_t {
char nvh_encoding; /* encoding method */
- char nvh_endian; /* endianess */
+ char nvh_endian; /* endianness */
char nvh_reserved1;
char nvh_reserved2;
uint32_t nvh_reserved3;
/*
* Label supports XDR encoding, reject for any other unsupported format. Also
- * endianess can be 0 or 1, reject garbage value. Moreover, check if first
+ * endianness can be 0 or 1, reject garbage value. Moreover, check if first
* nvpair encode size is non-zero.
*/
if (!label || label->nvh_encoding != 0x1 || !be32_to_cpu(label->nvh_first_size) ||
(void) zfs_extract_guid_name(pr, label, VDEV_PHYS_SIZE, false);
/*
- * Zero out whole nvlist header including fisrt nvpair size
+ * Zero out whole nvlist header including first nvpair size
*/
if (blkid_probe_set_magic(pr, offset, sizeof(struct nvs_header_t),
(unsigned char *) label))
mnt_fs_get_root(fs);
mnt_fs_print_debug(fs, stdout);
- /* read all mising data */
+ /* read all missing data */
mnt_fs_fetch_statmount(fs, 0);
mnt_fs_print_debug(fs, stdout);
* The move/attach/detach status depends on how @fs has been used by the library.
* The status is not set when working with fstab, etc.
*
- * Returns: 1 if the filesystem has been dettached.
+ * Returns: 1 if the filesystem has been detached.
*/
int mnt_fs_is_detached(struct libmnt_fs *fs)
{
*
* This ID is provided by statmount() since Linux kernel since v6.8.
*
- * Returns: parent mount ID or 0 if not avalable
+ * Returns: parent mount ID or 0 if not available
*/
uint64_t mnt_fs_get_parent_uniq_id(struct libmnt_fs *fs)
{
*
* This ID is provided by statmount() since Linux kernel since v6.10
*
- * Returns: parent namespace ID or 0 if not avalable.
+ * Returns: parent namespace ID or 0 if not available.
*
* Since: 2.41
*/
*
* Returns: 0 or <0 in case of error.
*
- * Sinse: 2.41
+ * Since: 2.41
*/
int mnt_fs_set_ns(struct libmnt_fs *fs, uint64_t id)
{
* @sm: statmount setting
* @mask: default mask for statmount() or 0
*
- * Returns: 0 on succees or or <0 on error.
+ * Returns: 0 on success or or <0 on error.
*/
int mnt_statmnt_set_mask(struct libmnt_statmnt *sm, uint64_t mask)
{
/*
* Ensure that, if signatures are supported, we only reuse the device if the previous mount
* used the same settings, so that a previous unsigned mount will not be reused if the user
- * asks to use signing for the new one, and viceversa.
+ * asks to use signing for the new one, and vice-versa.
*/
#ifdef HAVE_CRYPT_ACTIVATE_BY_SIGNED_KEY
if (!!hash_sig != !!(crypt_params.flags & CRYPT_VERITY_ROOT_HASH_SIGNATURE)) {
#include "monitor.h"
/*
- * The fanotify info header is suppported since kernel v5.1 (commit 5e469c830fdb5).
+ * The fanotify info header is supported since kernel v5.1 (commit 5e469c830fdb5).
*
* We do not provide fallback for so old systems. There is fallback only for
* missing "struct fanotify_event_info_mnt" (since v6.15, commit 0f46d81f2bce9).
* mnt_monitor_enable_fanotify:
* @mn: monitor
* @enable: 0 or 1
- * @ns: namespace file descritor (use -1 for default /proc/self/ns/mnt)
+ * @ns: namespace file descriptor (use -1 for default /proc/self/ns/mnt)
*
* Enables or disables kernel VFS monitoring based on fanotify (since Linux
* 6.15). This monitor can return mount IDs of changed mount points. It's also
status = 0;
else {
if (e->mask & IN_DELETE_SELF) {
- DBG(MONITOR, ul_debugobj(mn, " reseting watch"));
+ DBG(MONITOR, ul_debugobj(mn, " resetting watch"));
userspace_free_data(me);
}
if (ls->nmaps + 1 >= MNT_OL_MAXMAPS)
return -ERANGE;
- DBG(OPTLIST, ul_debugobj(ls, "registr map %p", map));
+ DBG(OPTLIST, ul_debugobj(ls, "register map %p", map));
ls->maps[ls->nmaps++] = map;
return 0;
}
* @chld: NULL or returns the next child filesystem
*
* Since version 2.40, the filesystems are returned in the order specified by
- * @itr. In the old versions the derection is always MNT_ITER_FORWARD.
+ * @itr. In the old versions the direction is always MNT_ITER_FORWARD.
*
* Returns: 0 on success, negative number in case of error or 1 at the end of list.
*/
* listmount() syscall. The default is to read all filesystems; use
* statx(STATX_MNT_ID_UNIQUE) for subdirectory.
*
- * Returns: 0 on sucess, < 0 on error
+ * Returns: 0 on success, < 0 on error
* Since: 2.41
*/
int mnt_table_listmount_set_id(struct libmnt_table *tb, uint64_t id)
*
* Set namespace ID for listmount().
*
- * Returns: 0 on sucess, < 0 on error
+ * Returns: 0 on success, < 0 on error
* Since: 2.41
*/
int mnt_table_listmount_set_ns(struct libmnt_table *tb, uint64_t ns)
* @tb: mount table
* @sz: number of nodes read by one libmount() call
*
- * Returns: 0 on sucess, < 0 on error
+ * Returns: 0 on success, < 0 on error
* Since: 2.41
*/
int mnt_table_listmount_set_stepsiz(struct libmnt_table *tb, size_t sz)
/*
* num + OP_BULK provides a local cache in each application.
* Start with a small cache size to cover short running applications
- * and adjust the cache size over the runntime.
+ * and adjust the cache size over the runtime.
*/
if ((uuidd_cache.last_used == uuidd_cache.cache_size) && (uuidd_cache.cache_size < CS_MAX))
uuidd_cache.cache_size *= CS_FACTOR;
#ifdef USE_PTY
struct ul_pty *pty; /* pseudo terminal handler (for --pty) */
#endif
- bool runuser, /* flase=su, true=runuser */
+ bool runuser, /* false=su, true=runuser */
runuser_uopt, /* runuser -u specified */
isterm, /* is stdin terminal? */
fast_startup, /* pass the `-f' option to the subshell. */
fputs(_(" --output-all output all columns\n"), out);
fputs(_(" -r, --raw use raw output format\n"), out);
fputs(_(" -R, --recursive recursively check all files in directories\n"), out);
- fputs(_(" -C, --cachestat force useage of cachestat syscall\n"), out);
+ fputs(_(" -C, --cachestat force usage of cachestat syscall\n"), out);
fputs(USAGE_SEPARATOR, out);
fprintf(out, USAGE_HELP_OPTIONS(23));
return rc;
}
-/* reads filesystems from @tb (libmount) and fillin @table (output table) */
+/* reads filesystems from @tb (libmount) and fills in @table (output table) */
static int create_treenode(struct libscols_table *table, struct libmnt_table *tb,
struct libmnt_fs *fs, struct libscols_line *parent_line, struct findmnt *findmnt)
{
DBG(DEV, ul_debugobj(dev, "%s <- child done", dev->name));
}
- /* apply highligther */
+ /* apply highlighter */
if (ln && lsblk->hlighter) {
int status = 0;
if (zram_lock(zram, LOCK_EX))
err(EXIT_FAILURE, _("%s: failed to lock"), zram->devname);
- /* Writting 'reset' attribute is refused by the kernel when the device node is opened.
+ /* Writing 'reset' attribute is refused by the kernel when the device node is opened.
* Hence, we cannot keep the lock, unfortunately. */
zram_unlock(zram);
} else { /* regular (auto)login */
if ((options.flags & F_NOHOSTNAME) == 0 &&
getlogindefs_bool("LOGIN_PLAIN_PROMPT", 0) == 1)
- /* /etc/login.defs enbles --nohostname too */
+ /* /etc/login.defs enables --nohostname too */
options.flags |= F_NOHOSTNAME;
if (options.autolog) {
/* TODO:
* Two pass processing for eval_issue_file()
* Implement pass 1: Just evaluate list of netlink_groups (IP protocols) and
- * intefaces to monitor.
+ * interfaces to monitor.
* That is why again label is here: netlink_groups will be re-evaluated and
* dump will be performed again.
*/
struct list_head *current = NULL;
char *name = NULL;
- /* Reading all issue files and concatinating all contents to one content.
+ /* Reading all issue files and concatenating all contents to one content.
* The ordering rules are defineded in:
* https://github.com/uapi-group/specifications/blob/main/specs/configuration_files_specification.md
*
-the string meets expecations
+the string meets expectations
struct ptype_class {
const char *name;
- /* Covert to a string representation.
+ /* Convert to a string representation.
* A caller must free the returned value with free(3) after using. */
char *(*sprint)(const union value *value);
(void)close(fd);
if (dup2(0, fd) < 0)
errx(EXIT_FAILURE,
- "faild to reserve fd with dup2(%d, %d)", 0, fd);
+ "failed to reserve fd with dup2(%d, %d)", 0, fd);
}
static void *nop(const struct factory *factory _U_, struct fdesc fdescs[] _U_,
free_arg(&path);
if (iserver_shutdown < 0 || iserver_shutdown > 3)
- errx(EXIT_FAILURE, "the server shudown specification in unexpected range");
+ errx(EXIT_FAILURE, "the server shutdown specification in unexpected range");
if (iclient_shutdown < 0 || iclient_shutdown > 3)
- errx(EXIT_FAILURE, "the client shudown specification in unexpected range");
+ errx(EXIT_FAILURE, "the client shutdown specification in unexpected range");
ssd = socket(AF_UNIX, type, 0);
if (ssd < 0)
return ret;
}
-/* sigemptyset may not be defiend and/or declared in asm/signal.h */
+/* sigemptyset may not be defined and/or declared in asm/signal.h */
static void clear_sigset(sigset_t *sigset)
{
memset(sigset, 0, sizeof(*sigset));
if read -u ${SIGSTATE[0]} PID; then
"$TS_CMD_KILL" -USR1 "$PID"
if read -u ${SIGSTATE[0]} ACK; then
- # The taget process is in its signal handler for USR1.
+ # The target process is in its signal handler for USR1.
# Sending one more USR1 is for making the signal pending state.
"$TS_CMD_KILL" -USR1 "$PID"
"$TS_CMD_KILL" -d "$PID" | {
#
# Read *.cols from the tarball, but the expected output is not used
- # from the tarball due to changes in lsblk fomatting etc. We keep up to
+ # from the tarball due to changes in lsblk formatting etc. We keep up to
# date version in tests/expected/lsblk.
#
for cols_file in $(ls $dumpdir/$name/*.cols | sort); do
ts_init "$*"
ts_skip_nonroot
-[[ -e /dev/net/tun ]] || ts_skip "/dev/net/tun doest not exist"
+[[ -e /dev/net/tun ]] || ts_skip "/dev/net/tun does not exist"
ts_check_test_command "$TS_CMD_LSFD"
ts_check_test_command "$TS_HELPER_MKFDS"
$TS_CMD_MCOOKIE -f /etc/services |
# The sed will convert only 32 characters long hexadecimal string
# to expected string, but nothing else.
- sed 's/^[0-9a-f]\{32\}$/the string meets expecations/' >> $TS_OUTPUT 2>> $TS_ERRLOG
+ sed 's/^[0-9a-f]\{32\}$/the string meets expectations/' >> $TS_OUTPUT 2>> $TS_ERRLOG
ts_finalize
ts_check_prog "tee"
ts_check_prog "sed"
-# If coresched cannot succesfully run, skip the test suite
+# If coresched cannot successfully run, skip the test suite
CORESCHED_TEST_KERNEL_SUPPORT_CMD=$($TS_CMD_CORESCHED 2>&1)
if [[ $CORESCHED_TEST_KERNEL_SUPPORT_CMD == *"CONFIG_SCHED_CORE"* ]]; then
ts_skip "Kernel has no CONFIG_SCHED_CORE support or SMT is not available"
if [ $new_rev -gt $old_rev ]; then
if [ "$DRYRUN" = "true" ]; then
- echo " updated (ingore, dry-run)"
+ echo " updated (ignore, dry-run)"
else
echo " updated"
git_commit $POFILE "$PODIR: update $POFILENAME (from translationproject.org)"