Special map type "-hosts" no longer works

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

The last patches pushed to the git repository break the special -hosts
map:

automount[29770]: ghosting enabled
automount[29770]: master_do_mount: mounting /net
automount[29770]: automount_path_to_fifo: fifo name /run/autofs.fifo-net
automount[29770]: lookup_nss_read_map: reading map hosts (null)
automount[29770]: mount_autofs_indirect: failed to read map for /net
automount[29770]: handle_mounts: mount of /net failed!
automount[29770]: master_do_mount: failed to startup mount
systemd[1]: Started Automounts filesystems on demand.

> 518 int lookup_nss_read_map(struct autofs_point *ap, struct map_source *source, time_t age)
> 519 {
(...)
> 545                 if (map->type) {
> 546                         if (!strncmp(map->type, "multi", 5))
> 547                                 debug(ap->logopt, "reading multi map");
> 548                         else
> 549                                 debug(ap->logopt,
> 550                                       "reading map %s %s",
> 551                                        map->type, map->argv[0]);

=> Prints "reading map hosts (null)"

> 552                         result = lookup_map_read_map(ap, map, age);
> 553                         map = map->next;
> 554                         continue;
> 555                 }

Then lookup_map_read_map() will return NSS_STATUS_UNKNOWN because argv[0] is
NULL.

> 416 static int lookup_map_read_map(struct autofs_point *ap,
> 417                                struct map_source *map, time_t age)
> 418 {
> 419         char *path;
> 420
> 421         if (!map->argv[0])
> 422                 return NSS_STATUS_UNKNOWN;

The culprit is probably commit e40bff4fb ("fix map source with type lookup").

Leonardo
--
To unsubscribe from this list: send the line "unsubscribe autofs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux