summaryrefslogtreecommitdiff
path: root/src/machine
Commit message (Collapse)AuthorAge
* Add (void) where we don't care about return valueZbigniew Jędrzejewski-Szmek2015-03-15
|
* tree-wide: there is no ENOTSUP on linuxDavid Herrmann2015-03-13
| | | | Replace ENOTSUP by EOPNOTSUPP as this is what linux actually uses.
* shared: the btrfs quota field is called "referenced" not "referred"Lennart Poettering2015-03-10
|
* man: document "machinectl export-tar" and "export-raw"Lennart Poettering2015-03-10
|
* machinectl: remove unused variablesThomas Hindoe Paaboel Andersen2015-03-09
|
* importd: add API for exporting container/VM imagesLennart Poettering2015-03-09
| | | | Also, expose it in machinectl.
* machine: do not rely on asprintf setting arg on errorZbigniew Jędrzejewski-Szmek2015-03-07
| | | | | Strictly speaking, the output variable is undefined if asprintf fails. We use the return value not the arg everywhere, and should we do here.
* machinectl: minor --help text improvementsLennart Poettering2015-03-05
|
* importd: add new bus calls for importing local tar and raw imagesLennart Poettering2015-03-05
| | | | | | | | This also adds "machinectl import-raw" and "machinectl import-tar" to wrap these new bus calls. THe commands basically do for local files that "machinectl pull-raw" and friends do for remote files.
* importd: automatically grow /var/lib/machines/ loopback filesystem during ↵Lennart Poettering2015-03-03
| | | | | | | | | | | downloads If /var/lib/machines is mounted as btrfs loopback file system in /var/lib/machines.raw with this change we automatically grow the file system as it fills up. After each 10M we write to it during imports, we check the free disk space, and if the fill level grows beyond 66% we increase the size of the file system to 3x the fill level (thus lowering it to 33%).
* machined: also set up /var/lib/machines as btrfs, if "machinectl set-limit" ↵Lennart Poettering2015-03-02
| | | | is called
* machinectl: update --help text to clarify that set-limit can also change ↵Lennart Poettering2015-03-02
| | | | pool size
* machined: use x-machine-unix prefix for the container bus on dbus1Benjamin Franzke2015-03-01
| | | | | | | | This fixes "machinectl login" on systems configured with --disable-kdbus. The error was: machinectl login foo Failed to get machine PTY: Input/output error
* machined: if /var/lib/machines is backed by a loop file, resize it on ↵Lennart Poettering2015-02-26
| | | | | | | | | "machinectl set-limit" When the pool size limit is altered with "machinectl set-limit", then not only set the subvolume quota of the /var/lib/machine subvolume, but also resize the backing loop file and the btrfs file system on it dynamically.
* machined,machinectl: add calls for changing container/VM quotasLennart Poettering2015-02-25
|
* machined: fix check if host directory could be openedThomas Hindoe Paaboel Andersen2015-02-24
| | | | CID#1271351
* machined/machinectl: when "machinectl image-status" is used without ↵Lennart Poettering2015-02-24
| | | | arguments show statistics about pool
* machined: actually open up methods to unprivileged clients on dbus1Lennart Poettering2015-02-24
| | | | | | | | Many of machined's operations are now opened up to unprivileged clients via PolicyKit. Open up the dbus policy so that we can actually make these calls. kdbus doesn't reuqire this, hence this wasn't noticed before.
* remove unused includesThomas Hindoe Paaboel Andersen2015-02-23
| | | | | | This patch removes includes that are not used. The removals were found with include-what-you-use which checks if any of the symbols from a header is in use.
* nspawn: when connected to pipes for stdin/stdout, pass them as-is to PID 1Lennart Poettering2015-02-18
| | | | | | | | | | | Previously we always invoked the container PID 1 on /dev/console of the container. With this change we do so only if nspawn was invoked interactively (i.e. its stdin/stdout was connected to a TTY). In all other cases we directly pass through the fds unmodified. This has the benefit that nspawn can be added into shell pipelines. https://bugs.freedesktop.org/show_bug.cgi?id=87732
* logind: open up most bus calls for unpriviliged processes, using PolicyKitLennart Poettering2015-02-18
| | | | | | Also, allow clients to alter their own objects without any further priviliges. i.e. this allows clients to kill and lock their own sessions without involving PK.
* machinectl: issue all bus commands while allowing interactive authLennart Poettering2015-02-18
|
* machined: open up most of machined's commands to unprivileged clients via ↵Lennart Poettering2015-02-18
| | | | PolicyKit
* machined: make "machinectl copy-to" and "machinectl copy-from" server side ↵Lennart Poettering2015-02-17
| | | | | | operations This way, any bus client can make use of these calls.
* machined: various simplificationsLennart Poettering2015-02-17
|
* machined: move logic for bind mounting into containers from machinectl to ↵Lennart Poettering2015-02-17
| | | | | | | machined This extends the bus interface, adding BindMountMachine() for bind mounting directories from the host into the container.
* Revert "tree-wide: Always use recvmsg with MSG_CMSG_CLOEXEC"Lennart Poettering2015-02-12
| | | | | | | This reverts commit d6d810fbf8071f8510450dbacd1d083f37603656. It's apparently not OK to pass MSG_CMSG_CLOEXEC to recvmsg() of raw sockets.
* tree-wide: whenever we include libgen.h, immediately undefine basename()Lennart Poettering2015-02-11
| | | | Also, document in adjacent comments and in CODING_STYLE why we do that.
* tree-wide: Always use recvmsg with MSG_CMSG_CLOEXECCristian Rodríguez2015-02-10
|
* util: rework strappenda(), and rename it strjoina()Lennart Poettering2015-02-03
| | | | | | After all it is now much more like strjoin() than strappend(). At the same time, add support for NULL sentinels, even if they are normally not necessary.
* remove unused variablesThomas Hindoe Paaboel Andersen2015-02-02
|
* treewide: fix multiple typosTorstein Husebø2015-01-26
|
* machinectl: fix typoZbigniew Jędrzejewski-Szmek2015-01-24
|
* importd: when listing transfers, show progress percentageLennart Poettering2015-01-23
| | | | | | | | With this change the pull protocol implementation processes will pass progress data to importd which then passes this information on via the bus. We use sd_notify() as generic transport for this communication, making importd listen to them, while matching the incoming messages to the right transfer.
* machinectl: fix handling of --verify= argument for dkr downloadsLennart Poettering2015-01-23
|
* machinectl: when downloading an image, clarify that C-c will not cancel the ↵Lennart Poettering2015-01-22
| | | | download, but continue it in the background
* machinectl: minor simplificationLennart Poettering2015-01-22
|
* machinectl: parse verify setting client-sideLennart Poettering2015-01-22
|
* machinectl: various minor updates to the --help textLennart Poettering2015-01-22
|
* import: rename --verify=sum to --verify=checksumLennart Poettering2015-01-22
| | | | This is how we call it internally, and also a bit more descriptive.
* import: introduce new mini-daemon systemd-importd, and make machinectl a ↵Lennart Poettering2015-01-22
| | | | | | | | | | | | | | client to it The old "systemd-import" binary is now an internal tool. We still use it as asynchronous backend for systemd-importd. Since the import tool might require some IO and CPU resources (due to qcow2 explosion, and decompression), and because we might want to run it with more minimal priviliges we still keep it around as the worker binary to execute as child process of importd. machinectl now has verbs for pulling down images, cancelling them and listing them.
* machined: refer to the disk space allocated for an image to "usage" rather ↵Lennart Poettering2015-01-19
| | | | | | | than "size" After all, it's closer to the "du"-reported value than to the file sizes...
* machinectl: fix minor memory leakLennart Poettering2015-01-14
|
* machinectl: use GNU basename, not the XPG versionCristian Rodríguez2015-01-13
|
* machined: refuse certain operation on non-container machines, since they ↵Lennart Poettering2015-01-13
| | | | cannot work elsewhere
* loginctl: port to generic verbs.h APILennart Poettering2015-01-08
|
* man: bring machinectl man page up-to-dateLennart Poettering2015-01-08
|
* systemctl,loginctl: start polkit agent for all polkit enabled operationsLennart Poettering2015-01-08
|
* machinectl: given that machinectl invokes a number of polkit enabled ↵Lennart Poettering2015-01-08
| | | | methods, start the polkit agent on terminals
* machinectl: show most recent log output in "machinectl status", tooLennart Poettering2015-01-08
|