[systemd-devel] [PATCH 2/2] fstab-generator: Do not check deviceless filesystems
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Mon Mar 23 21:08:16 PDT 2015
On Tue, Mar 24, 2015 at 12:53:00AM +0100, Tobias Hunger wrote:
> There is no need to check those.
> ---
> src/shared/generator.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/src/shared/generator.c b/src/shared/generator.c
> index 569b25b..c348ca2 100644
> --- a/src/shared/generator.c
> +++ b/src/shared/generator.c
> @@ -42,6 +42,11 @@ int generator_write_fsck_deps(
> assert(what);
> assert(where);
>
> + if (fstype_is_deviceless(fstype)) {
> + log_debug("Not checking deviceless filesystem \"%s\".", fstype);
> + return 0;
> + }
> +
> if (!is_device_path(what)) {
> log_warning("Checking was requested for \"%s\", but it is not a device.", what);
> return 0;
Applied.
Zbyszek
More information about the systemd-devel
mailing list