b26fa1a2fbcfee7d03b0c8fd15ec3aa64ae70b9f |
|
10-Feb-2016 |
Daniel Mack <daniel@zonque.org> |
tree-wide: remove Emacs lines from all files
This should be handled fine now by .dir-locals.el, so need to carry that
stuff in every file. |
709f6e46a35ec492b70eb92943d82a8d838ce918 |
|
05-Nov-2015 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: use the negative error codes returned by our functions
Our functions return negative error codes.
Do not rely on errno being set after calling our own functions. |
b5efdb8af40ea759a1ea584c1bc44ecc81dd00ce |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out allocation calls into alloc-util.[ch] |
f4f15635ec05293ffcc83a5b39f624bbabbd8fd0 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: move a number of fs operations into fs-util.[ch] |
c8b3094de58e3b1e37d06f3d56c9346cffbe320a |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out file attribute calls to chattr-util.[ch] |
0d39fa9c69b97a2ceb156053deef69c0866c2b97 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: move more file I/O related calls into fileio.[ch] |
c004493cdefc1f43a3956ca529e8070f8d70be56 |
|
26-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out IO related calls to io-util.[ch] |
3ffd4af22052963e7a29431721ee204e634bea75 |
|
25-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out fd-related operations into fd-util.[ch]
There are more than enough to deserve their own .c file, hence move them
over. |
07630cea1f3a845c09309f197ac7c4f11edd3b62 |
|
24-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split our string related calls from util.[ch] into its own file string-util.[ch]
There are more than enough calls doing string manipulations to deserve
its own files, hence do something about it.
This patch also sorts the #include blocks of all files that needed to be
updated, according to the sorting suggestions from CODING_STYLE. Since
pretty much every file needs our string manipulation functions this
effectively means that most files have sorted #include blocks now.
Also touches a few unrelated include files. |
a1e58e8ee1c84b633d6d6d651d5328d4dd4eba5b |
|
09-Sep-2015 |
Lennart Poettering <lennart@poettering.net> |
tree-wide: use coccinelle to patch a lot of code to use mfree()
This replaces this:
free(p);
p = NULL;
by this:
p = mfree(p);
Change generated using coccinelle. Semantic patch is added to the
sources. |
25300b5a1fcf54674a69d0f4ab08925be00b0227 |
|
24-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
util: make machine_name_is_valid() a macro and move it to hostname-util.h
As it turns out machine_name_is_valid() does the exact same thing as
hostname_is_valid() these days, as it just invoked that and checked the
name length was < 64. However, hostname_is_valid() checks the length
against HOST_NAME_MAX anyway (which is 64 on Linux), hence any
additional check is redundant.
We hence replace machine_name_is_valid() by a macro that simply maps it
to hostname_is_valid() but sets the allow_trailing_dot parameter to
false. We also move this this call to hostname-util.h, to the same place
as the hostname_is_valid() declaration. |
14bcf25c8b94b5c3556ba3983028a2b35ed0572f |
|
15-Jun-2015 |
Lennart Poettering <lennart@poettering.net> |
util: when creating temporary file names, allow including extra id string in it
This adds a "char *extra" parameter to tempfn_xxxxxx(), tempfn_random(),
tempfn_ranomd_child(). If non-NULL this string is included in the middle
of the newly created file name. This is useful for being able to
distuingish the kind of temporary file when we see one.
This also adds tests for the three call.
For now, we don't make use of this at all, but port all users over. |
1ed8f8c16da99551c6731764759878a0bc243fde |
|
08-Apr-2015 |
Lennart Poettering <lennart@poettering.net> |
util: merge change_attr_fd() and chattr_fd() |
d9e2daaf3d8649650cf9784b4fe9d9de4507da0c |
|
06-Apr-2015 |
Lennart Poettering <lennart@poettering.net> |
btrfs: support recursively removing btrfs snapshots |
c6878637502b1717a110a9a7e8bba32a8583fcdf |
|
06-Apr-2015 |
Lennart Poettering <lennart@poettering.net> |
util: rework rm_rf() logic
- Move to its own file rm-rf.c
- Change parameters into a single flags parameter
- Remove "honour sticky" logic, it's unused these days |
f85ef957e647c5182acf5e64298f68e4b7fbfe8f |
|
10-Mar-2015 |
Alban Crequy <alban@endocode.com> |
util: add rename_noreplace
renameat2() exists since Linux 3.15 but btrfs support for the flag
RENAME_NOREPLACE was added later.
This patch implements a fallback when renameat2() returns EINVAL.
EINVAL is the error returned when the filesystem does not support one of
the flags. |
587fec427c80b6c34dcf1d7570f891fcb652a7c5 |
|
09-Mar-2015 |
Lennart Poettering <lennart@poettering.net> |
importd: add API for exporting container/VM images
Also, expose it in machinectl. |
b6e676ce41508e2aeea22202fc8f234126177f52 |
|
05-Mar-2015 |
Lennart Poettering <lennart@poettering.net> |
importd: add new bus calls for importing local tar and raw images
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. |
26166c88e0b47b83972f32b5057ecbffe06bf904 |
|
03-Mar-2015 |
Lennart Poettering <lennart@poettering.net> |
importd: automatically grow /var/lib/machines/ loopback filesystem during 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%). |
63c372cb9df3bee01e3bf8cd7f96f336bddda846 |
|
03-Feb-2015 |
Lennart Poettering <lennart@poettering.net> |
util: rework strappenda(), and rename it strjoina()
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. |
7079cfeffb6d520f20ddff53fd78467e72e6cc94 |
|
23-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
importd: when listing transfers, show progress percentage
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. |
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3 |
|
22-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
import: introduce new mini-daemon systemd-importd, and make machinectl a 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. |
8b71fce8c2bb0e0a8c2317a34f8f114ff10e6aa6 |
|
21-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
import: minor cleanups for the tar and raw importers |
98c3800184cfc961b19d605f69d555d0cea8bb7a |
|
21-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
import: make verification code generic, in preparation for using it pull-tar |
3576d6315f3b6b686cdcf9f280d5e829e3d3daa0 |
|
21-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
import: add image verification using gpg
This also adds an initial keyring for the verification, that contains
Ubuntu's and Fedora's key. We should probably add more entries sooner or
later. |
8f6950587ab7b4d6fe1b51241759cc3a4682b96d |
|
20-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
import: make image verification optional |
85dbc41dc67ff49fd8a843dbac5b8b5cb0b61155 |
|
20-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
import: add a simple scheme for validating the SHA256 sums of downloaded raw files |
0d6e763b48cabe8899a20823b015c9a988e38659 |
|
20-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
import: port pull-raw to helper tools implemented for pull-tar
This allows us to reuse a lot more code, and simplify pull-raw
drastically. |
56ebfaf1ca185a93ffb372b6e1a1fa3a957d93cd |
|
20-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
import: add support for pulling raw tar balls as containers
Ubuntu provides their cloud images optionally as tarball, hence also
support downloading those. |
a2e0337875addaf08225fbf9b231435ba12a88b5 |
|
20-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
util: make http url validity checks more generic, and move them to util.c |
ec5cb56ee18f529a023deedd0806854f08499b6a |
|
19-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
import: clarify when we are unpacking the qcow2 device |
0716faad4a846d5f3cdce4bf37648d3254b9332f |
|
19-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
import: make sure don't leak the LZMA context |
1e20b41187ff7d27477b5322690e447753c66ace |
|
19-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
import: when downloading raw files, show simple progress reports |
2f64ba0e6ea4fe8bac69215290d16321ab820f54 |
|
19-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
import: simplify the code a bit |
ff6a74609b7c925834da1373d3adb9642ca51422 |
|
19-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
import-raw: when downloading raw images, generate sparse files if we can |
47bc4fd86d1119945be3d0217f3795c901b7ffff |
|
19-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
import-raw: set NOCOW flag on all raw images we create |
edce2aed3aa93b84f7b4c70412bdb665da2977b0 |
|
16-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
import: support importing qcow2 images
With this change the import tool will now unpack qcow2 images into
normal raw disk images, suitable for usage with nspawn.
This allows has the benefit of also allowing importing Ubuntu Cloud
images for usage with nspawn. |
49bb233bb734536b9617d838f09a7bf9b8336003 |
|
16-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
import: support downloading .xz compressed images
That way we can download fedora cloud raw images as-is and decompress
them on-the-fly. |
aceac2f0b652dff701e5815c51c2e372e8fee84d |
|
15-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
import: rename "gpt" disk image type to "raw"
After all, nspawn can now dissect MBR partition levels, too, hence
".gpt" appears a misnomer. Moreover, the the .raw suffix for these files
is already pretty popular (the Fedora disk images use it for example),
hence sounds like an OK scheme to adopt. |