From owner-freebsd-bugs@FreeBSD.ORG Thu Apr 19 19:00:24 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A9F31065670 for ; Thu, 19 Apr 2012 19:00:24 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 67C2B8FC12 for ; Thu, 19 Apr 2012 19:00:24 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q3JJ0OMp027665 for ; Thu, 19 Apr 2012 19:00:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3JJ0Or9027663; Thu, 19 Apr 2012 19:00:24 GMT (envelope-from gnats) Resent-Date: Thu, 19 Apr 2012 19:00:24 GMT Resent-Message-Id: <201204191900.q3JJ0Or9027663@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mark Saad Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE17D106566B for ; Thu, 19 Apr 2012 18:51:09 +0000 (UTC) (envelope-from root@bguide2.ops.about.com) Received: from smtpapps.about.com (smtpapps.about.com [207.241.149.197]) by mx1.freebsd.org (Postfix) with SMTP id 72A098FC19 for ; Thu, 19 Apr 2012 18:51:09 +0000 (UTC) Received: (qmail 37392 invoked from network); 19 Apr 2012 18:51:03 -0000 Received: from 208.185.16.158.about.com (HELO bguide2.ops.about.com) (208.185.16.158) by smtpapps.about.com with SMTP; 19 Apr 2012 18:51:03 -0000 Received: from bguide2.ops.about.com (localhost [127.0.0.1]) by bguide2.ops.about.com (8.14.5/8.14.5) with ESMTP id q3JIovGB075155 for ; Thu, 19 Apr 2012 14:50:57 -0400 (EDT) (envelope-from root@bguide2.ops.about.com) Received: (from root@localhost) by bguide2.ops.about.com (8.14.5/8.14.5/Submit) id q3JIovmr075154; Thu, 19 Apr 2012 14:50:57 -0400 (EDT) (envelope-from root) Message-Id: <201204191850.q3JIovmr075154@bguide2.ops.about.com> Date: Thu, 19 Apr 2012 14:50:57 -0400 (EDT) From: Mark Saad To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/167105: mount_nfs can not handle source exports wiht more then 63 chars X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mark Saad List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2012 19:00:24 -0000 >Number: 167105 >Category: kern >Synopsis: mount_nfs can not handle source exports wiht more then 63 chars >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 19 19:00:23 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Mark Saad >Release: FreeBSD 9.0-STABLE amd64 >Organization: About.com >Environment: System: FreeBSD bguide2 9.0-STABLE FreeBSD 9.0-STABLE #2: Tue Apr 10 11:32:01 EDT 2012 root@blindness.ops.about.com:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When using a source nfs export that has more then 63 chars total , in the combination of the source host name + the exported path mount_nfs returns ENAMETOOLONG . >How-To-Repeat: With the following entry in /etc/fstab fstab entry: nyisilon2-13.grp2:/ifs/clients/www/csar884520456/files_cms-stage-BK/imagefield_default_images /mnt/csar nfs ro,tcp,intr 0 0 mount /mnt/csar faile with the following error mount_nfs: nyisilon2-13.grp2:/ifs/clients/www/csar884520456/files_cms-stage-BK/imagefield_default_images: File name too long >Fix: In mount_nfs.c removing the conditional check for this on line 734 - 738 appears to remove this limitation with no impact however am not sure why this check is in there. /* * if (strlen(hostp) + strlen(spec) + 1 > MNAMELEN) { * warnx("%s:%s: %s", hostp, spec, strerror(ENAMETOOLONG)); * return (0); * } */ Note this issue exists in 7-STABLE , 8-STABLE and 9-STABLE as well as their respective RELEASES >Release-Note: >Audit-Trail: >Unformatted: