SUSE Support

Here When You Need Us

Autofs browse or ghost behavior broke beginning in SLES 15 SP3

This document (000021450) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 15 SP3
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP5

Situation

Starting in SLES 15 SP3, the "browse" behavior of autofs indirect maps unexpectedly changed.  Previously, when autofs was controlling indirect maps, the "keys" or subdirectories within the indirect map point could be seen even before they were mounted.  In other words, if /auto-mounts was the location of the indirect map, and "ls /auto-mounts" was executed, the subdirectory keys below that location would be displayed but they would not yet be mounted.  This is known as the "browse" option, previously also know as "--ghost".

However, beginning in SLES 15 SP3, doing a "ls" against the indirect map location causes the subdir mount points to actually be mounted.

Resolution

The change in behavior is due to changes to "ls" code, which is part of the coreutils package.

Update core-utils as follows:

SLES 15 SP3 LTSS or ESPOS:  coreutils-8.32-150300.3.8.1
SLES 15 SP4 LTSS or ESPOS:  coreutils-8.32-150400.9.6.1
SLES 15 SP5:  coreutils-8.32-150400.9.6.1

Cause

The code for "ls" was changed to use the newer "statx" function call instead of "stat" or "lstat" in various cases.  Some usages of "statx" can trigger an automount, so the usage of statx by "ls" had to be adjusted to prevent this.

Additional Information

It was also found that avoiding the "ls --color=<value>" option would prevent automounting in this situation.  However, "--color=tty" option is routinely added to the "ls" command by defined aliases, so most people are using this option even if they do not specify it.  If the "ls" command is executed by specifying the full path to the binary, then the aliases are avoided.  For example:
 
/usr/sbin/ls

The above will be executed without the additional options which aliases normally add.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000021450
  • Creation Date: 16-May-2024
  • Modified Date:16-May-2024
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.