From: Matthias Koenig Subject: [PATCH] autofs fails to recognize filesystems given with LABEL or UUID Date: Tue, 06 Mar 2007 15:40:42 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: autofs mailing list --=-=-= Hi, after applying the patch autofs-4.1.4-dont_create_remote_dirs.patch we noticed that autofs does not create mountpoints for filessystems, which are specified in fstab with LABEL or UUID. This is because the contained_in_local_fs() function does not recognize the keywords. This also happens in autofs 5.0.1. Patch to fix this is below. Matthias --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=autofs-4.1.4-fix_contained_check.patch Index: autofs-4.1.4/lib/mounts.c =================================================================== --- autofs-4.1.4.orig/lib/mounts.c +++ autofs-4.1.4/lib/mounts.c @@ -315,7 +315,9 @@ int contained_in_local_fs(const char *pa ret = 1; } else ret = 1; - } + } else if (!strncmp("LABEL=", this->fs_name, 6) || + !strncmp("UUID=", this->fs_name, 5)) + ret = 1; break; } } --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs --=-=-=--