mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
treewide: fix typos and remove accidental repetition of words
This commit is contained in:
parent
d6cdc4cd4b
commit
61233823aa
4
NEWS
4
NEWS
@ -569,7 +569,7 @@ CHANGES WITH 228:
|
||||
the service.
|
||||
|
||||
* Timer units gained support for a new RemainAfterElapse=
|
||||
setting which takes a boolean argument. It defaults on on,
|
||||
setting which takes a boolean argument. It defaults on,
|
||||
exposing behaviour unchanged to previous releases. If set to
|
||||
off, timer units are unloaded after they elapsed if they
|
||||
cannot elapse again. This is particularly useful for
|
||||
@ -5236,7 +5236,7 @@ CHANGES WITH 192:
|
||||
* We do not mount the "cpuset" controller anymore together with
|
||||
"cpu" and "cpuacct", as "cpuset" groups generally cannot be
|
||||
started if no parameters are assigned to it. "cpuset" hence
|
||||
broke code that assumed it it could create "cpu" groups and
|
||||
broke code that assumed it could create "cpu" groups and
|
||||
just start them.
|
||||
|
||||
* journalctl -f will now subscribe to terminal size changes,
|
||||
|
4
TODO
4
TODO
@ -126,7 +126,7 @@ Features:
|
||||
* docs: bring http://www.freedesktop.org/wiki/Software/systemd/MyServiceCantGetRealtime up to date
|
||||
|
||||
* mounting and unmounting mount points manually with different source
|
||||
devices will result in collected collected on all devices used.
|
||||
devices will result in collected on all devices used.
|
||||
http://lists.freedesktop.org/archives/systemd-devel/2015-April/030225.html
|
||||
|
||||
* add a job mode that will fail if a transaction would mean stopping
|
||||
@ -554,7 +554,7 @@ Features:
|
||||
- systemctl enable: fail if target to alias into does not exist? maybe show how many units are enabled afterwards?
|
||||
- systemctl: "Journal has been rotated since unit was started." message is misleading
|
||||
- better error message if you run systemctl without systemd running
|
||||
- systemctl status output should should include list of triggering units and their status
|
||||
- systemctl status output should include list of triggering units and their status
|
||||
|
||||
* unit install:
|
||||
- "systemctl mask" should find all names by which a unit is accessible
|
||||
|
@ -69,7 +69,7 @@
|
||||
#
|
||||
|
||||
#
|
||||
# Sort by by brand, model
|
||||
# Sort by brand, model
|
||||
|
||||
#########################################
|
||||
# Dell
|
||||
|
@ -93,7 +93,7 @@
|
||||
|
||||
<listitem>
|
||||
<para>As the first step, the update script should check if the
|
||||
<filename>/system-update</filename> symlink points to the the location used by that update
|
||||
<filename>/system-update</filename> symlink points to the location used by that update
|
||||
script. In case it does not exists or points to a different location, the script must exit
|
||||
without error. It is possible for multiple update services to be installed, and for multiple
|
||||
update scripts to be launched in parallel, and only the one that corresponds to the tool
|
||||
|
@ -169,7 +169,7 @@ int copy_bytes(int fdf, int fdt, uint64_t max_bytes, bool try_reflink) {
|
||||
/* sendfile accepts at most SSIZE_MAX-offset bytes to copy,
|
||||
* so reduce our maximum by the amount we already copied,
|
||||
* but don't go below our copy buffer size, unless we are
|
||||
* close the the limit of bytes we are allowed to copy. */
|
||||
* close the limit of bytes we are allowed to copy. */
|
||||
m = MAX(MIN(COPY_BUFFER_SIZE, max_bytes), m - n);
|
||||
}
|
||||
|
||||
|
@ -1067,7 +1067,7 @@ int fflush_and_check(FILE *f) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* This is much like like mkostemp() but is subject to umask(). */
|
||||
/* This is much like mkostemp() but is subject to umask(). */
|
||||
int mkostemp_safe(char *pattern, int flags) {
|
||||
_cleanup_umask_ mode_t u = 0;
|
||||
int fd;
|
||||
|
@ -104,7 +104,7 @@ int fd_is_mount_point(int fd, const char *filename, int flags) {
|
||||
*
|
||||
* As last fallback we do traditional fstat() based st_dev
|
||||
* comparisons. This is how things were traditionally done,
|
||||
* but unionfs breaks breaks this since it exposes file
|
||||
* but unionfs breaks this since it exposes file
|
||||
* systems with a variety of st_dev reported. Also, btrfs
|
||||
* subvolumes have different st_dev, even though they aren't
|
||||
* real mounts of their own. */
|
||||
|
@ -876,7 +876,7 @@ int strv_extend_n(char ***l, const char *value, size_t n) {
|
||||
if (n == 0)
|
||||
return 0;
|
||||
|
||||
/* Adds the value value n times to l */
|
||||
/* Adds the value n times to l */
|
||||
|
||||
k = strv_length(*l);
|
||||
|
||||
|
@ -458,7 +458,7 @@ int take_etc_passwd_lock(const char *root) {
|
||||
*
|
||||
* Note that shadow-utils also takes per-database locks in
|
||||
* addition to lckpwdf(). However, we don't given that they
|
||||
* are redundant as they they invoke lckpwdf() first and keep
|
||||
* are redundant as they invoke lckpwdf() first and keep
|
||||
* it during everything they do. The per-database locks are
|
||||
* awfully racy, and thus we just won't do them. */
|
||||
|
||||
|
@ -1658,7 +1658,7 @@ int manager_setup_cgroup(Manager *m) {
|
||||
/* 3. Install agent */
|
||||
if (unified) {
|
||||
|
||||
/* In the unified hierarchy we can can get
|
||||
/* In the unified hierarchy we can get
|
||||
* cgroup empty notifications via inotify. */
|
||||
|
||||
m->cgroup_inotify_event_source = sd_event_source_unref(m->cgroup_inotify_event_source);
|
||||
|
@ -2827,7 +2827,7 @@ void exec_context_dump(ExecContext *c, FILE* f, const char *prefix) {
|
||||
bool exec_context_maintains_privileges(ExecContext *c) {
|
||||
assert(c);
|
||||
|
||||
/* Returns true if the process forked off would run run under
|
||||
/* Returns true if the process forked off would run under
|
||||
* an unchanged UID or as root. */
|
||||
|
||||
if (!c->user)
|
||||
|
@ -130,7 +130,7 @@ struct ExecContext {
|
||||
|
||||
bool ignore_sigpipe;
|
||||
|
||||
/* Since resolving these names might might involve socket
|
||||
/* Since resolving these names might involve socket
|
||||
* connections and we don't want to deadlock ourselves these
|
||||
* names are resolved on execution only and in the child
|
||||
* process. */
|
||||
|
@ -80,7 +80,7 @@ static bool ignore_proc(pid_t pid, bool warn_rootfs) {
|
||||
get_process_comm(pid, &comm);
|
||||
|
||||
if (r)
|
||||
log_notice("Process " PID_FMT " (%s) has been been marked to be excluded from killing. It is "
|
||||
log_notice("Process " PID_FMT " (%s) has been marked to be excluded from killing. It is "
|
||||
"running from the root file system, and thus likely to block re-mounting of the "
|
||||
"root file system to read-only. Please consider moving it into an initrd file "
|
||||
"system instead.", pid, strna(comm));
|
||||
|
@ -3594,7 +3594,7 @@ int config_parse_protect_home(
|
||||
assert(data);
|
||||
|
||||
/* Our enum shall be a superset of booleans, hence first try
|
||||
* to parse as as boolean, and then as enum */
|
||||
* to parse as boolean, and then as enum */
|
||||
|
||||
k = parse_boolean(rvalue);
|
||||
if (k > 0)
|
||||
@ -3637,7 +3637,7 @@ int config_parse_protect_system(
|
||||
assert(data);
|
||||
|
||||
/* Our enum shall be a superset of booleans, hence first try
|
||||
* to parse as as boolean, and then as enum */
|
||||
* to parse as boolean, and then as enum */
|
||||
|
||||
k = parse_boolean(rvalue);
|
||||
if (k > 0)
|
||||
|
@ -303,7 +303,7 @@ int machine_id_commit(const char *root) {
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to determine whether %s is a mount point: %m", etc_machine_id);
|
||||
if (r == 0) {
|
||||
log_debug("%s is is not a mount point. Nothing to do.", etc_machine_id);
|
||||
log_debug("%s is not a mount point. Nothing to do.", etc_machine_id);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1444,7 +1444,7 @@ int main(int argc, char *argv[]) {
|
||||
/*
|
||||
* Do a dummy very first call to seal the kernel's time warp magic.
|
||||
*
|
||||
* Do not call this this from inside the initrd. The initrd might not
|
||||
* Do not call this from inside the initrd. The initrd might not
|
||||
* carry /etc/adjtime with LOCAL, but the real system could be set up
|
||||
* that way. In such case, we need to delay the time-warp or the sealing
|
||||
* until we reach the real system.
|
||||
|
@ -373,7 +373,7 @@ static int transaction_verify_order_one(Transaction *tr, Job *j, Job *from, unsi
|
||||
delete = NULL;
|
||||
for (k = from; k; k = ((k->generation == generation && k->marker != k) ? k->marker : NULL)) {
|
||||
|
||||
/* logging for j not k here here to provide consistent narrative */
|
||||
/* logging for j not k here to provide consistent narrative */
|
||||
log_unit_warning(j->unit,
|
||||
"Found dependency on %s/%s",
|
||||
k->unit->id, job_type_to_string(k->type));
|
||||
@ -392,7 +392,7 @@ static int transaction_verify_order_one(Transaction *tr, Job *j, Job *from, unsi
|
||||
|
||||
if (delete) {
|
||||
const char *status;
|
||||
/* logging for j not k here here to provide consistent narrative */
|
||||
/* logging for j not k here to provide consistent narrative */
|
||||
log_unit_warning(j->unit,
|
||||
"Breaking ordering cycle by deleting job %s/%s",
|
||||
delete->unit->id, job_type_to_string(delete->type));
|
||||
|
@ -3790,7 +3790,7 @@ bool unit_is_pristine(Unit *u) {
|
||||
/* Check if the unit already exists or is already around,
|
||||
* in a number of different ways. Note that to cater for unit
|
||||
* types such as slice, we are generally fine with units that
|
||||
* are marked UNIT_LOADED even even though nothing was
|
||||
* are marked UNIT_LOADED even though nothing was
|
||||
* actually loaded, as those unit types don't require a file
|
||||
* on disk to validly load. */
|
||||
|
||||
|
@ -811,7 +811,7 @@ static int process_socket(int fd) {
|
||||
goto finish;
|
||||
}
|
||||
|
||||
/* Make sure we we got all data we really need */
|
||||
/* Make sure we got all data we really need */
|
||||
assert(context[CONTEXT_PID]);
|
||||
assert(context[CONTEXT_UID]);
|
||||
assert(context[CONTEXT_GID]);
|
||||
|
@ -1607,7 +1607,7 @@ static int dispatch_notify_event(sd_event_source *es, int fd, uint32_t revents,
|
||||
/* Dispatch one stream notification event */
|
||||
stdout_stream_send_notify(s->stdout_streams_notify_queue);
|
||||
|
||||
/* Leave us enabled if there's still more to to do. */
|
||||
/* Leave us enabled if there's still more to do. */
|
||||
if (s->send_watchdog || s->stdout_streams_notify_queue)
|
||||
return 0;
|
||||
|
||||
|
@ -1438,7 +1438,7 @@ static int add_directory(sd_journal *j, const char *prefix, const char *dirname)
|
||||
if (j->toplevel_fd < 0)
|
||||
d = opendir(path);
|
||||
else
|
||||
/* Open the specified directory relative to the the toplevel fd. Enforce that the path specified is
|
||||
/* Open the specified directory relative to the toplevel fd. Enforce that the path specified is
|
||||
* relative, by dropping the initial slash */
|
||||
d = xopendirat(j->toplevel_fd, skip_slash(path), 0);
|
||||
if (!d) {
|
||||
|
@ -181,7 +181,7 @@ static void *message_extend_fields(sd_bus_message *m, size_t align, size_t sz, b
|
||||
if (!np)
|
||||
goto poison;
|
||||
} else {
|
||||
/* Initially, the header is allocated as part of of
|
||||
/* Initially, the header is allocated as part of
|
||||
* the sd_bus_message itself, let's replace it by
|
||||
* dynamic data */
|
||||
|
||||
@ -2865,7 +2865,7 @@ static int bus_message_close_header(sd_bus_message *m) {
|
||||
|
||||
/* The actual user data is finished now, we just complete the
|
||||
variant and struct now (at least on gvariant). Remember
|
||||
this position, so that during parsing we know where to to
|
||||
this position, so that during parsing we know where to
|
||||
put the outer container end. */
|
||||
m->user_body_size = m->body_size;
|
||||
|
||||
|
@ -197,7 +197,7 @@ int device_set_syspath(sd_device *device, const char *_syspath, bool verify) {
|
||||
return -errno;
|
||||
}
|
||||
} else {
|
||||
/* everything else just just needs to be a directory */
|
||||
/* everything else just needs to be a directory */
|
||||
if (!is_dir(syspath, false))
|
||||
return -ENODEV;
|
||||
}
|
||||
|
@ -619,7 +619,7 @@ _public_ const char *udev_device_get_syspath(struct udev_device *udev_device)
|
||||
*
|
||||
* Get the kernel device name in /sys.
|
||||
*
|
||||
* Returns: the name string of the device device
|
||||
* Returns: the name string of the device
|
||||
**/
|
||||
_public_ const char *udev_device_get_sysname(struct udev_device *udev_device)
|
||||
{
|
||||
|
@ -303,7 +303,7 @@ void manager_gc(Manager *m, bool drop_not_started) {
|
||||
machine_get_state(machine) != MACHINE_CLOSING)
|
||||
machine_stop(machine);
|
||||
|
||||
/* Now, the stop stop probably made this referenced
|
||||
/* Now, the stop probably made this referenced
|
||||
* again, but if it didn't, then it's time to let it
|
||||
* go entirely. */
|
||||
if (!machine_check_gc(machine, drop_not_started)) {
|
||||
|
@ -30,7 +30,7 @@ static int operation_done(sd_event_source *s, const siginfo_t *si, void *userdat
|
||||
assert(o);
|
||||
assert(si);
|
||||
|
||||
log_debug("Operating " PID_FMT " is now complete with with code=%s status=%i",
|
||||
log_debug("Operating " PID_FMT " is now complete with code=%s status=%i",
|
||||
o->pid,
|
||||
sigchld_code_to_string(si->si_code), si->si_status);
|
||||
|
||||
@ -59,7 +59,7 @@ static int operation_done(sd_event_source *s, const siginfo_t *si, void *userdat
|
||||
}
|
||||
|
||||
} else {
|
||||
/* The default default operaton when done is to simply return an error on failure or an empty success
|
||||
/* The default operation when done is to simply return an error on failure or an empty success
|
||||
* message on success. */
|
||||
if (r < 0)
|
||||
goto fail;
|
||||
|
@ -2173,7 +2173,7 @@ static int link_set_ipv6_forward(Link *link) {
|
||||
if (!link_ipv6_forward_enabled(link))
|
||||
return 0;
|
||||
|
||||
/* On Linux, the IPv6 stack does not not know a per-interface
|
||||
/* On Linux, the IPv6 stack does not know a per-interface
|
||||
* packet forwarding setting: either packet forwarding is on
|
||||
* for all, or off for all. We hence don't bother with a
|
||||
* per-interface setting, but simply propagate the interface
|
||||
|
@ -123,7 +123,7 @@ int create_subcgroup(pid_t pid, bool unified_requested) {
|
||||
int unified, r;
|
||||
CGroupMask supported;
|
||||
|
||||
/* In the unified hierarchy inner nodes may only only contain
|
||||
/* In the unified hierarchy inner nodes may only contain
|
||||
* subgroups, but not processes. Hence, if we running in the
|
||||
* unified hierarchy and the container does the same, and we
|
||||
* did not create a scope unit for the container move us and
|
||||
|
@ -96,7 +96,7 @@ enum nss_status _nss_myhostname_gethostbyname4_r(
|
||||
return NSS_STATUS_TRYAGAIN;
|
||||
}
|
||||
|
||||
/* We respond to our local host name, our our hostname suffixed with a single dot. */
|
||||
/* We respond to our local host name, our hostname suffixed with a single dot. */
|
||||
if (!streq(name, hn) && !streq_ptr(startswith(name, hn), ".")) {
|
||||
*errnop = ENOENT;
|
||||
*h_errnop = HOST_NOT_FOUND;
|
||||
|
@ -702,7 +702,7 @@ void dns_answer_order_by_scope(DnsAnswer *a, bool prefer_link_local) {
|
||||
if (a->items[i].rr->key->class == DNS_CLASS_IN &&
|
||||
((a->items[i].rr->key->type == DNS_TYPE_A && in_addr_is_link_local(AF_INET, (union in_addr_union*) &a->items[i].rr->a.in_addr) != prefer_link_local) ||
|
||||
(a->items[i].rr->key->type == DNS_TYPE_AAAA && in_addr_is_link_local(AF_INET6, (union in_addr_union*) &a->items[i].rr->aaaa.in6_addr) != prefer_link_local)))
|
||||
/* Order address records that are are not preferred to the end of the array */
|
||||
/* Order address records that are not preferred to the end of the array */
|
||||
items[end--] = a->items[i];
|
||||
else
|
||||
/* Order all other records to the beginning of the array */
|
||||
|
@ -691,7 +691,7 @@ int dns_cache_put(
|
||||
return 0;
|
||||
|
||||
/* See https://tools.ietf.org/html/rfc2308, which say that a
|
||||
* matching SOA record in the packet is used to to enable
|
||||
* matching SOA record in the packet is used to enable
|
||||
* negative caching. */
|
||||
r = dns_answer_find_soa(answer, key, &soa, &flags);
|
||||
if (r < 0)
|
||||
|
@ -1642,7 +1642,7 @@ static int dnssec_nsec_in_path(DnsResourceRecord *rr, const char *name) {
|
||||
if (r <= 0)
|
||||
return r;
|
||||
|
||||
/* If the name we we are interested in is not a prefix of the common suffix of the NSEC RR's owner and next domain names, then we can't say anything either. */
|
||||
/* If the name we are interested in is not a prefix of the common suffix of the NSEC RR's owner and next domain names, then we can't say anything either. */
|
||||
r = dns_name_common_suffix(dns_resource_key_name(rr->key), rr->nsec.next_domain_name, &common_suffix);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
@ -520,7 +520,7 @@ int dns_query_make_auxiliary(DnsQuery *q, DnsQuery *auxiliary_for) {
|
||||
assert(q);
|
||||
assert(auxiliary_for);
|
||||
|
||||
/* Ensure that that the query is not auxiliary yet, and
|
||||
/* Ensure that the query is not auxiliary yet, and
|
||||
* nothing else is auxiliary to it either */
|
||||
assert(!q->auxiliary_for);
|
||||
assert(!q->auxiliary_queries);
|
||||
|
@ -88,7 +88,7 @@ static int user_data_dir(char **ret, const char *suffix) {
|
||||
assert(suffix);
|
||||
|
||||
/* We don't treat /etc/xdg/systemd here as the spec
|
||||
* suggests because we assume that that is a link to
|
||||
* suggests because we assume that is a link to
|
||||
* /etc/systemd/ anyway. */
|
||||
|
||||
e = getenv("XDG_DATA_HOME");
|
||||
|
@ -1418,7 +1418,7 @@ static int parse_line(const char *fname, unsigned line, const char *buffer) {
|
||||
}
|
||||
|
||||
if (!IN_SET(action[0], ADD_USER, ADD_GROUP, ADD_MEMBER, ADD_RANGE)) {
|
||||
log_error("[%s:%u] Unknown command command type '%c'.", fname, line, action[0]);
|
||||
log_error("[%s:%u] Unknown command type '%c'.", fname, line, action[0]);
|
||||
return -EBADMSG;
|
||||
}
|
||||
|
||||
|
@ -249,7 +249,7 @@ subst:
|
||||
|
||||
if (event->program_result == NULL)
|
||||
break;
|
||||
/* get part part of the result string */
|
||||
/* get part of the result string */
|
||||
i = 0;
|
||||
if (attr != NULL)
|
||||
i = strtoul(attr, &rest, 10);
|
||||
|
@ -5,7 +5,7 @@
|
||||
# the Free Software Foundation; either version 2.1 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
# See sysctl.d(5) and core(5) for for documentation.
|
||||
# See sysctl.d(5) and core(5) for documentation.
|
||||
|
||||
# To override settings in this file, create a local file in /etc
|
||||
# (e.g. /etc/sysctl.d/90-override.conf), and put any assignments
|
||||
|
@ -10,7 +10,7 @@
|
||||
Q /var/lib/machines 0700 - - -
|
||||
|
||||
# Remove old temporary snapshots, but only at boot. Ideally we'd have
|
||||
# "self-destroying" btrfs snapshots that go away if the last last
|
||||
# "self-destroying" btrfs snapshots that go away if the last
|
||||
# reference to it does. To mimic a scheme like this at least remove
|
||||
# the old snapshots on fresh boots, where we know they cannot be
|
||||
# referenced anymore. Note that we actually remove all temporary files
|
||||
|
Loading…
Reference in New Issue
Block a user