]> git.ipfire.org Git - thirdparty/systemd.git/commit
mount: make unit_start() mount ratelimiting check generic 28211/head
authorLennart Poettering <lennart@poettering.net>
Fri, 30 Jun 2023 13:56:40 +0000 (15:56 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 30 Jun 2023 20:01:02 +0000 (22:01 +0200)
commit472619672a731ac7daf28ad8002a03cb080432ad
tree249fab0d574b01a2b2750a2f018581b0fe6bdcff
parent56d83b74d45e0d6936ba44a524fe8b2c2237c833
mount: make unit_start() mount ratelimiting check generic

Let's move this into a vtable callout, so that unit.c doesn't check for
explicit unit types anymore.

(This is preparation for a future where we do a similar check for the
automount logic, or the swap logic.)
src/core/mount.c
src/core/unit.c
src/core/unit.h