[systemd-devel] [PATCH] Circumvent autofs_v5_packet_union size bug

Alexander E. Patrakov patrakov at gmail.com
Sat Sep 17 22:09:27 PDT 2011


16.09.2011 18:09, Thomas Meyer wrote:
> +        if (pkt_len % 8) {
> +                if (strcmp(un.machine, "alpha") == 0 ||
> +                    strcmp(un.machine, "ia64") == 0 ||
> +                    strcmp(un.machine, "x86_64") == 0 ||
> +                    strcmp(un.machine, "ppc64") == 0)
> +                        pkt_len += 4;

[the words below are not based on any tests]

Won't this fail if my initramfs runs systemd (and thus everything else) 
under the linux32 wrapper?

IMHO the kernel should be fixed, even if this means creating a new 
version of the packet structure or an ioctl that returns the correct 
size even under linux32.

-- 
Alexander E. Patrakov



More information about the systemd-devel mailing list