Daan De Meyer [Wed, 17 Nov 2021 16:44:21 +0000 (16:44 +0000)]
journal: Use separate variable for Data object in sd_journal_get_data()
A little cleanup to make the next change easier. We're not moving to a
new Entry object in the for loop so there's no danger of changing the
Entry object window.
Daan De Meyer [Wed, 17 Nov 2021 15:54:35 +0000 (15:54 +0000)]
journal: Skip over corrupt entry items in enumerate_data()
Similar to sd_journal_next(), if trying to access an entry item
offset's data results in EBADMSG, skip to the next entry item so
we handle corruption better.
Fixes #21407
Luca Boccassi [Wed, 17 Nov 2021 17:28:54 +0000 (17:28 +0000)]
getty-generator: add kernel cmdline and env vars to disable it
systemd.getty_auto/rd.systemd.getty_auto/SYSTEMD_GETTY_AUTO can be used
to disable the generator. Enabled by default.
Lennart Poettering [Thu, 18 Nov 2021 09:13:26 +0000 (10:13 +0100)]
Merge pull request #21401 from poettering/open-mkdir-at
add open_mkdir_at() helper and use it
Zbigniew Jędrzejewski-Szmek [Wed, 17 Nov 2021 12:58:53 +0000 (13:58 +0100)]
meson: add check:true/false to all run_command() invocations
meson-0.59.4-1.fc35.noarch says:
WARNING: You should add the boolean check kwarg to the run_command call.
It currently defaults to false,
but it will default to true in future releases of meson.
See also: https://github.com/mesonbuild/meson/issues/9300
dependabot[bot] [Wed, 17 Nov 2021 10:15:28 +0000 (10:15 +0000)]
build(deps): bump github/codeql-action from 1.0.22 to 1.0.23
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1.0.22 to 1.0.23.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/
5581e08a65fc3811c3ac78939dd59e7a8adbf003...
a627e9fa504113bfa8e90a9b429b157a38b1cdbd)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Lennart Poettering [Wed, 17 Nov 2021 20:55:31 +0000 (21:55 +0100)]
Merge pull request #21421 from poettering/homed-recovery-pw
homed: handle password changing for accounts that have recovery keys correctly
Lennart Poettering [Tue, 16 Nov 2021 14:24:07 +0000 (15:24 +0100)]
tree-wide: port various places over to open_mkdir_at()
Lennart Poettering [Tue, 16 Nov 2021 14:23:29 +0000 (15:23 +0100)]
fs-util: add new helper open_mkdir_at()
Luca Boccassi [Wed, 17 Nov 2021 14:08:52 +0000 (14:08 +0000)]
hwdb: voidify call to mkdir_parents_label
CID#
1466060
Lennart Poettering [Wed, 17 Nov 2021 16:45:21 +0000 (17:45 +0100)]
pam_systemd_home: prompt user for recovery key if homed asks for it
For accoutns that have no passwords but only a recovery key homed might
ask explicitly for that. Honour the request and ask the user for it.
Lennart Poettering [Wed, 17 Nov 2021 16:42:12 +0000 (17:42 +0100)]
homectl: if homed asks for the recovery key to be supplied, query the user for it
Fixes: #21103
Evgeny Vereshchagin [Tue, 16 Nov 2021 12:09:14 +0000 (12:09 +0000)]
ci: switch to weekly dependabot updates
Apparently some dependencies get updated much more often
than I would have exepected.
It can always be triggered manually at https://github.com/systemd/systemd/network/dependencies
if there are any urgent updates
dependabot[bot] [Wed, 17 Nov 2021 09:21:30 +0000 (09:21 +0000)]
build(deps): bump github/super-linter from 4.8.3 to 4.8.4
Bumps [github/super-linter](https://github.com/github/super-linter) from 4.8.3 to 4.8.4.
- [Release notes](https://github.com/github/super-linter/releases)
- [Changelog](https://github.com/github/super-linter/blob/main/docs/release-process.md)
- [Commits](https://github.com/github/super-linter/compare/
7d5dc989c55aaba9d3b7194a7496cdfaa4866af3...
563be7dc5568017515b9e700329e9c6d3862f2b7)
---
updated-dependencies:
- dependency-name: github/super-linter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Luca Boccassi [Tue, 16 Nov 2021 22:44:06 +0000 (22:44 +0000)]
CONTAINER_INTERFACE: clarify that /proc/sys can be writable with namespacing
When user and network namespaces are enabled, the kernel
makes the global keys read-only, and makes the namespaced
ones available for the guest already.
Evgeny Vereshchagin [Tue, 16 Nov 2021 10:46:16 +0000 (10:46 +0000)]
ci: run codeql on PRs from Dependabot
To make sure PRs like https://github.com/systemd/systemd/pull/21409
don't break anything.
Frantisek Sumsal [Wed, 17 Nov 2021 08:39:32 +0000 (08:39 +0000)]
Merge pull request #21406 from yuwata/test-network-debug-udev
test-network: check alternative name
Yu Watanabe [Wed, 17 Nov 2021 03:56:06 +0000 (12:56 +0900)]
test-network: check if actually alternative name is set
Fixes #21404.
Yu Watanabe [Tue, 16 Nov 2021 23:32:45 +0000 (08:32 +0900)]
test-network: make udevd also generate debugging logs
Yu Watanabe [Tue, 16 Nov 2021 13:50:35 +0000 (22:50 +0900)]
network: accept all values provided by kernel
Follow-up for
af493fb742bece2cafcdbab9238c711ac9090c9f.
The kernel sends FRA_SUPPRESS_IFGROUP attribute with -1, that must be
handled by networkd.
For FRA_SUPPRESS_PREFIXLEN, we already handled -1, but ignored values
larger than 128. We should not configure rules with such a meaningless
value, but should manage such rules when received from kernel. It can
occur when created by other tools mistakenly. If networkd ignores them,
then networkd cannot remove them.
Lennart Poettering [Tue, 16 Nov 2021 21:55:11 +0000 (22:55 +0100)]
Merge pull request #21326 from poettering/mkdir-tweaks
various tweaks to mkdir code
Lennart Poettering [Tue, 16 Nov 2021 21:53:24 +0000 (22:53 +0100)]
Merge pull request #21391 from poettering/homed-minimize
homed: add ability to "minimize" home dirs, i.e. shrink to smallest possible size
Lennart Poettering [Tue, 16 Nov 2021 14:24:25 +0000 (15:24 +0100)]
coredump: tweak which dir we create
Lennart Poettering [Tue, 16 Nov 2021 14:25:02 +0000 (15:25 +0100)]
tree-wide: use WRITE_STRING_FILE_MKDIR_0755 at more places
Zbigniew Jędrzejewski-Szmek [Tue, 16 Nov 2021 17:57:04 +0000 (18:57 +0100)]
Merge pull request #21392 from keszybz/memleak-fix-and-assorted-fs-code-cleanups
Memleak fix and assorted fs code cleanups
Lennart Poettering [Tue, 16 Nov 2021 09:51:35 +0000 (10:51 +0100)]
test: add grow/shrink/minimize test for homed
Let's add testing for the stuff we just added.
Lennart Poettering [Fri, 29 Oct 2021 07:58:53 +0000 (09:58 +0200)]
homework: beef up luks resize logic to allow "minimizing" homes
Lennart Poettering [Thu, 28 Oct 2021 18:16:42 +0000 (20:16 +0200)]
user-record: relax rules on diskSize user record field
Let's not refuse low or high disk sizes unnecessarily early. They disk
sizes are subject fs limits anyway, hence there's no point in adding
another limit.
Relaxing thhe rules here as the advantage that we can later allow
"homectl resize lennart 0" as a generic way to minimize disk space.
Lennart Poettering [Fri, 15 Oct 2021 15:53:48 +0000 (17:53 +0200)]
resize-fs: add helper that checks if the specified fs can do online grow/shrink
There's only one that can do this (btrfs), but let's abstract that fact,
a bit in case the other file systems learn this too one day.
Lennart Poettering [Wed, 13 Oct 2021 15:43:11 +0000 (17:43 +0200)]
homework: make sync of identies when resizing homes optional
This is preparation for resizing automatically at login and logout.
Lennart Poettering [Fri, 12 Nov 2021 14:44:50 +0000 (15:44 +0100)]
shared: clean up mkdir.h/label.h situation
Previously the mkdir_label() family of calls was implemented in
src/shared/mkdir-label.c but its functions partly declared ins
src/shared/label.h and partly in src/basic/mkdir.h (!!). That's weird
(and wrong).
Let's clean this up, and add a proper mkdir-label.h matching the .c
file.
Lennart Poettering [Fri, 12 Nov 2021 14:18:06 +0000 (15:18 +0100)]
mkdir: drop mkdir_errno_wrapper(), use mkdirat_errno_wrapper() instead
Let's reduce our code duplication, and let's focus on using xyzat()
style APIs more, hence drop mkdir_errno_wrapper() and stick to
mkdirar_errno_wrapper() wherever we can, it's a true superset of
functionality after all.
Lennart Poettering [Fri, 12 Nov 2021 14:16:19 +0000 (15:16 +0100)]
tree-wide: don't use mkdir_errno_wrapper() without reason
Simple mkdir() is fine, too, no need to use the wrapper
Lennart Poettering [Fri, 12 Nov 2021 14:14:52 +0000 (15:14 +0100)]
mkdir-label: make mkdir_label() a wrapper around mkdirat_label()
Lennart Poettering [Tue, 16 Nov 2021 14:24:38 +0000 (15:24 +0100)]
sysext: fix tmpfs mount source
It's "sysext", not "sysexit".
The string passed here is pure decoration, and noone will see it, since
it's only in our private mount namespace. But still, it's a typo, let's
fix it
Lennart Poettering [Fri, 12 Nov 2021 14:13:37 +0000 (15:13 +0100)]
selinux: make mac_selinux_create_file_prepare() at wrapper around _at()
Let's make sure mac_selinux_create_file_prepare_at() works fine with
AT_FDCWD, and then make mac_selinux_create_file_prepare() just a inline
wrapper around it.
Lennart Poettering [Fri, 12 Nov 2021 14:12:23 +0000 (15:12 +0100)]
smack make mac_smack_fix_at() useful when called with dir_fd=AT_FDCWD
Lennart Poettering [Fri, 12 Nov 2021 13:49:49 +0000 (14:49 +0100)]
mkdir: use chase_symlinks_and_stat() where appropriate
Lennart Poettering [Fri, 12 Nov 2021 13:49:34 +0000 (14:49 +0100)]
mkdir: make sure mode is set
Lennart Poettering [Fri, 12 Nov 2021 13:48:52 +0000 (14:48 +0100)]
mkdir: tighten permission check
Let's complain about any bit that is set in the existing inode but no in
the mask we are supposed to use.
Franck Bui [Tue, 16 Nov 2021 08:28:41 +0000 (09:28 +0100)]
TEST-08: don't force ext4 for /
Forcing a specific fs for the image is usually a bad idea because the initrd
(borrowed from the host) is likely to include only support for the filesystem
used by the host's rootfs.
Since the point of this test is to check aliases on mount units, there's no
specific need for ext4, hence drop any parts that request or rely on ext4.
Daan De Meyer [Tue, 16 Nov 2021 09:52:39 +0000 (09:52 +0000)]
meson: Downgrade unused function from error to warning in local builds
When working on systemd, it's often useful to be able to comment out
a function to see how a build behaves without it. Currently, when doing
this with a static function that's only used once, the build fails because
the function then becomes unused. As such, Let's downgrade the unused
function error to a warning in local builds.
Zbigniew Jędrzejewski-Szmek [Tue, 16 Nov 2021 11:52:21 +0000 (12:52 +0100)]
tmpfiles: split out config for systemd-resolve
This mirrors what was done in
564761fcaeda8c013210f7c6934847a6d0228ec9
for sysusers.d. If we allow separating resolved sysusers config
in a subpackage, we should do the same for the symlink that is
only useful when resolved is installed.
Related to #21317.
Lennart Poettering [Tue, 16 Nov 2021 15:55:47 +0000 (16:55 +0100)]
Merge pull request #21275 from keszybz/makefs-quiet
Makefs quiet output
Lennart Poettering [Tue, 16 Nov 2021 15:54:47 +0000 (16:54 +0100)]
Merge pull request #21386 from keszybz/binfmt-later
Order binfmt.service after local-fs.target
Takashi Sakamoto [Tue, 16 Nov 2021 08:05:07 +0000 (17:05 +0900)]
hwdb: ieee1394-unit-function: add entry for MOTU Track 16
In Linux kernel 5.16 prepatch, MOTU Track 16 is newly supported by ALSA
firewire-motu driver.
This commit adds hwdb entry for the device.
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=
411ac2982cb6
Yu Watanabe [Tue, 16 Nov 2021 07:24:35 +0000 (16:24 +0900)]
network: tuntap: drop unnecessary minus
Lennart Poettering [Tue, 16 Nov 2021 15:53:26 +0000 (16:53 +0100)]
Merge pull request #21383 from yuwata/network-address-scope
network: use route_scope_from_string() at one more place
Lennart Poettering [Tue, 16 Nov 2021 15:52:57 +0000 (16:52 +0100)]
Merge pull request #21380 from poettering/homed-test-qemu
homed: make sure homed tests actually run in qemu, too
Lennart Poettering [Tue, 16 Nov 2021 09:09:29 +0000 (10:09 +0100)]
umount: fix log message
The sentence wasn't correct English language, let's fix that. More
importantly: if the mount options are empty we'd display "(null)" here.
Fix that. (And they can be empty IRL, see CI results)
Zbigniew Jędrzejewski-Szmek [Tue, 16 Nov 2021 13:24:46 +0000 (14:24 +0100)]
analyze: supress bogus compiler warning
Zbigniew Jędrzejewski-Szmek [Sat, 13 Nov 2021 15:47:40 +0000 (16:47 +0100)]
man: document fs types known to makefs
Zbigniew Jędrzejewski-Szmek [Sat, 13 Nov 2021 15:40:46 +0000 (16:40 +0100)]
makefs: add "support" for f2fs
The man page doesn't quite match what --help says, and I needed to use "-f" to
write a wiped partition. This all feels a bit experimental, but the fs has some
adherents, and we should make it easy to use.
(Also, an empty 256MB device formatted and mounted shows up as
Filesystem Size Used Avail Use% Mounted on
/dev/loop0 254M 85M 170M 34% /var/tmp/mount
which also seems a bit over the top…)
Requested in https://github.com/systemd/systemd/pull/21275#issuecomment-
967928690.
Zbigniew Jędrzejewski-Szmek [Fri, 12 Nov 2021 14:56:56 +0000 (15:56 +0100)]
makefs: fix too-long swap labels
Apparently mkswap has it's own limit, and it seems to be one lower than the one
for ext2/3/4.
$ for i in ext2 ext3 ext4 btrfs xfs vfat swap minix; do
echo $i && wipefs -q -a '/var/tmp/głąbźśńćąśððð.img'
build/systemd-makefs $i '/var/tmp/głąbźśńćąśððð.img'
done
ext2
/var/tmp/głąbźśńćąśððð.img successfully formatted as ext2 (label "głąbźśńćą", uuid
7626bc5c-8ac4-43cf-87b7-
1b2761272dd3)
ext3
/var/tmp/głąbźśńćąśððð.img successfully formatted as ext3 (label "głąbźśńćą", uuid
0da22cad-0dbf-4a7a-962d-
12cd39d006b5)
ext4
/var/tmp/głąbźśńćąśððð.img successfully formatted as ext4 (label "głąbźśńćą", uuid
dded267b-8955-4d19-82a5-
1f231d446059)
btrfs
/var/tmp/głąbźśńćąśððð.img successfully formatted as btrfs (label "głąbźśńćąśððð.img", uuid
9e2e89f1-010d-4ab6-80f3-
f9e215dbc225)
xfs
/var/tmp/głąbźśńćąśððð.img successfully formatted as xfs (label "głąbźśń", uuid
2cc937af-4c41-465c-8f52-
aab2304bd860)
vfat
mkfs.fat 4.2 (2021-01-31)
/var/tmp/głąbźśńćąśððð.img successfully formatted as vfat (label "G__B_______", uuid
a3a9e028)
swap
...
LABEL=głąbźśńć, UUID=
0ab787aa-37a6-4b32-978b-
d71efc6e6098
/var/tmp/głąbźśńćąśððð.img successfully formatted as swap (label "głąbźśńć", uuid
0ab787aa-37a6-4b32-978b-
d71efc6e6098)
minix
...
/var/tmp/głąbźśńćąśððð.img successfully formatted as minix (no label or uuid specified)
Zbigniew Jędrzejewski-Szmek [Fri, 12 Nov 2021 13:22:58 +0000 (14:22 +0100)]
makefs: fix too-long ext2/3/4 labels
Zbigniew Jędrzejewski-Szmek [Tue, 9 Nov 2021 07:52:19 +0000 (08:52 +0100)]
makefs: fix label for vfat filesystems
I was testing with a "test1.img" and mkfs.vfat rejects "TEST1.IMG" with the
error "Labels with characters *?.,;:/\|+=<>[]" are not allowed". So let's
replace those characters with "_".
Zbigniew Jędrzejewski-Szmek [Fri, 12 Nov 2021 09:27:13 +0000 (10:27 +0100)]
basic/utf8: add function to convert to ASCII
The conversion must be lossy because ASCII doesn't have enough chars.
Zbigniew Jędrzejewski-Szmek [Tue, 16 Nov 2021 11:32:07 +0000 (12:32 +0100)]
basic: f2fs can do discard
Zbigniew Jędrzejewski-Szmek [Tue, 16 Nov 2021 11:31:57 +0000 (12:31 +0100)]
basic: cramfs is also a read-only fs
Zbigniew Jędrzejewski-Szmek [Tue, 16 Nov 2021 11:24:27 +0000 (12:24 +0100)]
zsh: drop unused code
The verbs were commented, so the completion functions wouldn't be
invoked anyway.
Zbigniew Jędrzejewski-Szmek [Tue, 16 Nov 2021 11:23:11 +0000 (12:23 +0100)]
zsh: add hints for more systemd-analyze verbs and options
Zbigniew Jędrzejewski-Szmek [Tue, 16 Nov 2021 11:20:26 +0000 (12:20 +0100)]
shell-completion: fix indentation
Zbigniew Jędrzejewski-Szmek [Tue, 16 Nov 2021 11:20:17 +0000 (12:20 +0100)]
analyze: clarify return value
In this case, EXIT_SUCCESS is the same as 0, but we shouldn't use it
in a function that returns negative on error.
Zbigniew Jędrzejewski-Szmek [Tue, 16 Nov 2021 11:19:42 +0000 (12:19 +0100)]
analyze: add --quiet option
This is useful for shell completion, but also for users who don't care
about the extra output.
Lennart Poettering [Mon, 15 Nov 2021 15:21:37 +0000 (16:21 +0100)]
test: make homed test run in qemu
Zbigniew Jędrzejewski-Szmek [Tue, 16 Nov 2021 09:32:09 +0000 (10:32 +0100)]
basic/generate-fs-switch-case: inline comments
Let's keep the comments together with the lines they describe, this is easier
to read and probably more maintainable in the long run.
Also, () → {} for idiomaticity.
Lennart Poettering [Mon, 15 Nov 2021 16:55:47 +0000 (17:55 +0100)]
homed: wait for luks devices to go away
Let's make sure LUKS volumes are really definitely gone before we retun
in the deactivation logic.
Zbigniew Jędrzejewski-Szmek [Tue, 16 Nov 2021 09:27:21 +0000 (10:27 +0100)]
Merge pull request #21373 from poettering/filesystems-more-groups
some file system tables/magic love
Zbigniew Jędrzejewski-Szmek [Tue, 16 Nov 2021 09:25:22 +0000 (10:25 +0100)]
analyze: fix memleak
Zbigniew Jędrzejewski-Szmek [Tue, 16 Nov 2021 08:19:07 +0000 (09:19 +0100)]
units: delay binfmt processing until after local-fs.target
Users may use rules that refer to binaries e.g. in /opt or /usr/local,
and those directories may be separate mount points. We don't need the
binfmt rules in early boot, so let's delay the service so that we can
rely on the full local filesystem being visible.
Fixes #21178.
Zbigniew Jędrzejewski-Szmek [Tue, 16 Nov 2021 08:15:29 +0000 (09:15 +0100)]
man: add markup
Zbigniew Jędrzejewski-Szmek [Tue, 16 Nov 2021 08:08:12 +0000 (09:08 +0100)]
basic/errno-util: adjust indentation
It was bothering me that this backslash wasn't aligned with the
ones below.
Lennart Poettering [Mon, 15 Nov 2021 08:32:41 +0000 (09:32 +0100)]
docs: mention RET_NERRNO() in CODING_STYLE.md
Lennart Poettering [Sun, 14 Nov 2021 21:40:49 +0000 (22:40 +0100)]
tree-wide: use new RET_NERRNO() helper at various places
Lennart Poettering [Sun, 14 Nov 2021 21:31:27 +0000 (22:31 +0100)]
macro: add new helper RET_NERRNO()
This new helper converts libc style syscall return values into
systemd-kernel (actually: kernel style) negative errno values.
It's implemented as macro-like inline function, and propagates return
values >= 0 as themselves and returns -errno for negative error returns.
THis is supposed to be little more than syntactic sugar so that we can
reduce a lot of (short, but still) boilerplate code whever we convert
libc style error handling into our own.
As discussed here:
https://github.com/systemd/systemd/pull/21326#discussion_r748413537
Lennart Poettering [Sun, 14 Nov 2021 21:30:57 +0000 (22:30 +0100)]
cgroup-util: laccess() returns negative errno already
Yu Watanabe [Tue, 16 Nov 2021 06:16:14 +0000 (15:16 +0900)]
network: address: explicitly mention that the address is localhost
Yu Watanabe [Tue, 16 Nov 2021 06:11:15 +0000 (15:11 +0900)]
network: address: use route_scope_from_string()
Lennart Poettering [Mon, 15 Nov 2021 15:21:59 +0000 (16:21 +0100)]
units: relax sandbox so that uidmap stuff can work
The uidmap suff requires additional caps and userns to work in some
cases. Allow it.
Follow-up for:
1147c538bbb6a2d3d5ba2e40f1437bcbeb22b33e
Lennart Poettering [Mon, 15 Nov 2021 20:40:04 +0000 (21:40 +0100)]
homed: reset HomeSetup.undo_dm field when deactivating home dir the official way
There are two ways to deactivate a home dir: the official way if someone
calls "homectl deactivate" or something similar. Or the
error-case/side-effect code path, where we unwind exactly what we
already set up.
The .undo_dm field is supposed to tell us whether we shall still detach
the DM device. We forgot to update it in the official code path. Add
that. (We did it correctly in the error case codepath already).
(The issue is minor: if we forget to reset it in the clean code path,
then we'll try to unmount again what is already unmounted in the error
code paths, but since we ignore errors there — to not "stack" errors –
we never noticed and there's no bad effect of it)
Yu Watanabe [Tue, 16 Nov 2021 01:33:48 +0000 (10:33 +0900)]
Merge pull request #21377 from poettering/slow-math
meson: stop using -ffast-math
Yu Watanabe [Tue, 16 Nov 2021 01:27:01 +0000 (10:27 +0900)]
Merge pull request #21344 from yuwata/network-ignore-carrier-loss-timespan
network: make IgnoreCarrierLoss= also take a timespan
Yu Watanabe [Tue, 16 Nov 2021 01:25:33 +0000 (10:25 +0900)]
Merge pull request #21235 from bacher09/slava/supress_ifgroup
Add suppress_ifgroup option in routing policy
Lennart Poettering [Mon, 15 Nov 2021 21:54:15 +0000 (22:54 +0100)]
filesystems: apparently f2fs is als reasonably common
As suggested:
https://github.com/systemd/systemd/pull/21373#discussion_r749523677
Lennart Poettering [Mon, 15 Nov 2021 21:53:25 +0000 (22:53 +0100)]
filesystems: add ntfs/ntfs3 magic and add it current version to group
As suggested:
https://github.com/systemd/systemd/pull/21373#discussion_r749523677
Lennart Poettering [Mon, 15 Nov 2021 13:14:54 +0000 (14:14 +0100)]
filesystems: add comments to gperf file anomalies
Some file systems have non-unique names or non-unique magics. Let's add
some comments explaining that.
Lennart Poettering [Mon, 15 Nov 2021 13:15:40 +0000 (14:15 +0100)]
filesystems: fix magic of "smb3" fs
smb3 is an alias for modern CIFS, not the old SMB fs (see kmod alias list, i.e. modinfo fs-smb3).
(the old smbfs has long been removed from the kernel actually, it's dead
and obsolete)
Lennart Poettering [Mon, 15 Nov 2021 13:10:50 +0000 (14:10 +0100)]
filesystems: list rpc_pipefs as auxiliary kernel API VFS
Lennart Poettering [Mon, 15 Nov 2021 13:10:04 +0000 (14:10 +0100)]
filesystems: list orangefs as network fs
it's the new name or pvfs2, hence we might as well list it, given we
list that already.
Lennart Poettering [Mon, 15 Nov 2021 13:09:09 +0000 (14:09 +0100)]
devtmpfs is a primary API fs
Lennart Poettering [Mon, 15 Nov 2021 13:05:31 +0000 (14:05 +0100)]
analyze: don't list filesystems among ungrouped that are aliases
There are a bunch of filesystems that actually are just aliases for
other filesystems. So far we listed them as "ungrouped", suggesting they
should be added to some file system group. But that's not really
something needed, since they are after all not file systems in their own
right, but aliases only (and usually legacy at that).
hence, let's hide them from display (but debug log about them)
Lennart Poettering [Mon, 15 Nov 2021 10:25:34 +0000 (11:25 +0100)]
homed: replace home-grown fs magic translation with fs_type_to_string()
Lennart Poettering [Mon, 15 Nov 2021 10:24:14 +0000 (11:24 +0100)]
filesystems: add three more file system types
devtmpfs and cpuset are not actual filesystems of their own. cpuset used
to be but is now an alias for cgroupsfs. devtmpfs is the same as tmpfs
as its just a "named superblock", i.e. a specific instance of tmpfs, but
not a file system of its own.
Lennart Poettering [Mon, 15 Nov 2021 10:23:26 +0000 (11:23 +0100)]
analyze: show fs magic info in 'systemd-analyze filesystem'
Let's show this information, since its quite useful. Moreover it allows
us to highlight file system aliases.
Lennart Poettering [Mon, 15 Nov 2021 10:22:43 +0000 (11:22 +0100)]
filesystems: add internal APIs to convert fs magic to name
We previously had tooling for the opposite direction, let's complete the
work.
Lennart Poettering [Fri, 12 Nov 2021 22:30:38 +0000 (23:30 +0100)]
mountpoint-util: sort list of read-only fs again
Lennart Poettering [Fri, 12 Nov 2021 22:30:59 +0000 (23:30 +0100)]
filesystems: add group for "application" file system
This group shall cover file systems whose job is to make stuff that
isn't actually storing anything in itself, and isn't just an API file
system, but allows exposing stuff with special semantics in the VFS.
Lennart Poettering [Fri, 12 Nov 2021 22:31:03 +0000 (23:31 +0100)]
filesystems: add binfmt_misc to auxiliary API VFS group
Lennart Poettering [Fri, 12 Nov 2021 22:27:59 +0000 (23:27 +0100)]
filesystems: add ceph to network file systems group
Lennart Poettering [Fri, 12 Nov 2021 22:09:45 +0000 (23:09 +0100)]
filesystems: slightly update common block device groups