summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2012-10-26journal: introduce entry array chain cacheLennart Poettering
When traversing entry array chains for a bisection or for retrieving an item by index we previously always started at the beginning of the chain. Since we tend to look at the same chains repeatedly, let's cache where we have been the last time, and maybe we can skip ahead with this the next time. This turns most bisections and index lookups from O(log(n)*log(n)) into O(log(n)). More importantly however, we seek around on disk much less, which is good to reduce buffer cache and seek times on rotational disks.
2012-10-26test: extend test-send to send some weirder dataLennart Poettering
2012-10-26journal: properly determine cutoff max dateLennart Poettering
2012-10-26sysctl: parse all keys in a config fileMichal Sekletar
https://bugzilla.redhat.com/show_bug.cgi?id=869779
2012-10-26udev: kmod - fix typoKay Sievers
2012-10-25udev: kmod, hwdb - do not fail if databases are not availableKay Sievers
2012-10-25udev: hwdb - exit if no database is availableKay Sievers
2012-10-25udev: hwdb validate() return when the database is not openedKay Sievers
2012-10-25udev: hwdb - remove run_onceKay Sievers
2012-10-25udev: hwdb - properly initialize search structureKay Sievers
2012-10-25udev: set optind = 0, not the usual 1, to reset getopt_long()s internal stateKay Sievers
2012-10-25job: avoid recursion into transaction code from job cancelationMichal Schmidt
I hit an "assert(j->installed)" failure in transaction_apply(). Looking into the backtrace I saw what happened: 1. The system was booting. var.mount/start was an installed job. 2. I pressed Ctrl+Alt+Del. 3. reboot.target was going to be isolated. 4. transaction_apply() proceeded to install a var.mount/stop job. 5. job_install() canceled the conflicting start job. 6. Depending jobs ended recursively with JOB_DEPENDENCY, among them was local-fs.target/start. 7. Its OnFailure action triggered - emergency.target was now going to be isolated. 8. We recursed back into transaction_apply() where the half-installed var.mount/stop job confused us. Recursing from job installation back into the transaction code cannot be a good idea. Avoid the problem by canceling the conflicting job non-recursively in job_install(). I don't think we'll miss anything by not recursing here. After all, we are called from transaction_apply(). We will not be installing just this one job, but all jobs from a transaction. All requirement dependencies will be included in it and will be installed separately. Every transaction job will get a chance to cancel its own conflicting installed job.
2012-10-25job: add comments to JobResult valuesMichal Schmidt
2012-10-25journal: properly serialize fields with multiple values into JSONLennart Poettering
This now matches the JSON serialization spec from: http://www.freedesktop.org/wiki/Software/systemd/json
2012-10-24remove Fedora hostname, locale, vconsole legacy file supportKay Sievers
2012-10-24journalctl: remove left-over log messageLennart Poettering
2012-10-23tmpfiles: allow Age to be set to 0Tom Gundersen
Mostly useful for testing purposes. Setting Age to 1s works just as well, but it is surprising that using 0s (or just 0) does not work. Also clarify this in the documentation.
2012-10-23cgls: correctly ellipsize command lines for PIDs >= 1000000Mantas MikulÄ—nas
2012-10-23udev: add hardware database supportKay Sievers
2012-10-23mount: make sure m->where is set before unit_add_exec_dependencies()Will Woods
If you enter unit_add_exec_dependencies with m->where = NULL, you'll very likely end up aborting somewhere under socket_needs_mount. (When systemd goes to check to see if the journald socket requires your mount, it'll do path_startswith(path, m->where)... *kaboom*) This patch should ensure that: a) both branches in mount_add_one() set m->where, and b) mount_add_extras() calls unit_add_exec_dependencies() *after* setting m->where.
2012-10-23systemctl: refer to systemctl -n, to not overwhelm the adminLennart Poettering
2012-10-22readahead: fix fd validity checkMichal Schmidt
https://bugzilla.redhat.com/show_bug.cgi?id=868603
2012-10-22shared: strbuf - add descriprionKay Sievers
2012-10-22shared: move sparse-endian.h from journalKay Sievers
2012-10-22shared: strbuf - add descriptionKay Sievers
2012-10-22udev: use strbuf to store rules stringsKay Sievers
2012-10-22shared: strbuf - add string de-duplication facilityKay Sievers
2012-10-22util: add (x)bsearch_r(), the missing counterpart of qsort_r()Kay Sievers
2012-10-21hostnamectl: add more really basic system info to the status outputLennart Poettering
2012-10-21journal: use le64_t instead of uint64_t where this is appropriateLennart Poettering
2012-10-20journal: link up documentation with the file structure headerLennart Poettering
2012-10-19shared/install: fix typo in commentChristian Hesse
2012-10-19systemctl: fix return code in chrootChristian Hesse
If 'systemctl enable' (and friends) is run inside chroot it always exits with a bad return code. unit_file_enable() returns the number of symlink rules that were supposed to be created. So resetting r to 0 and exiting gracefully should be the correct way.
2012-10-19make sure __NR_name_to_handle_at is correctly definedMichael Olbrich
341 is only valid for x86, so don't use it for other architectures. Add the correct numbers for ARM and PowerPC while at it.
2012-10-19random-seed: fix error message typoUmut Tezduyar
The file node is /dev/urandom, not /dev/random.
2012-10-19journal: add tool to extract coredumpsZbigniew Jędrzejewski-Szmek
'systemd-coredumpctl' will list available coredumps: PID UID GID sig exe 32452 500 500 11 /home/zbyszek/systemd/build/journalctl 32666 500 500 11 /usr/lib64/valgrind/memcheck-amd64-linux ... 'systemd-coredumpctl dump PID' will write the coredump to specified file or stdout.
2012-10-19keymap: Tolerate invalid entries in keymapsMartin Pitt
Some keymaps apply to a large range of computer models, not all of which have all of the scan codes in the maps. If a single scan code is invalid, do not abort but continue with the next entry in the map. Instead just show the error message for that particular scan code, to help with debugging.
2012-10-19keymap: Fix parsing of hex scan codes in tablesMartin Pitt
Commit b1f87c76b1 changed sscanf from %i to %u, as scan codes are unsigned numbers which can be > 0x7FFFFFFF. However, sscanf doesn't accept hexadecimal numbers for %u. It works fine with %i, so revert this back.
2012-10-19README.keymap.txt: Drop fdi2rules.py documentationMartin Pitt
This was removed ages ago.
2012-10-19locale: add client tool localectl similar to hostnamectl/timedatectlLennart Poettering
2012-10-19systemctl: modernizationLennart Poettering
2012-10-19util: change endswith() to return a pointer to the suffixLennart Poettering
2012-10-19set: introduce strv_sort()Lennart Poettering
2012-10-19set: introduce set_get_strv()Lennart Poettering
2012-10-19timedatectl,hostnamectl: rework --help textLennart Poettering
2012-10-19journald.conf: remove MinSize= settingsLennart Poettering
There's no point in making this configurable, so let's drop it in order to simplify configuration a bit.
2012-10-19systemctl: remove --follow optionLennart Poettering
Given that "journalctl -u" exists now there's no need to duplicate this functionality in systemctl, so let's drop this, especially given that it always felt a bit awkward to overload "-f" to both --force and --follow, and to have continues output with a status header for this. systemctl status -f avahi-daemon now becomes: journalctl -fu avahi-daemon Which is shorter and a lot less redundant.
2012-10-19util: unify line caching and column cachingLennart Poettering
2012-10-19util: unify usage of on_tty() in util.cLennart Poettering
2012-10-19util: simplify column caching logicLennart Poettering