From root@bguide2.ops.about.com  Thu Apr 19 18:51:09 2012
Return-Path: <root@bguide2.ops.about.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DE17D106566B
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <msaad@about.com>
Reply-To: Mark Saad <msaad@about.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: mount_nfs can not handle source exports wiht more then 63 chars
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         167105
>Category:       kern
>Synopsis:       [nfs] mount_nfs can not handle source exports wiht more then 63 chars
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-fs
>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:  Tue Sep 11 08:20:04 UTC 2012
>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:

From: Mark Saad <msaad@about.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/167105: mount_nfs can not handle source exports wiht more
 then 63 chars
Date: Thu, 19 Apr 2012 19:32:17 +0000 (UTC)

   I have a small typo that should be 88 chars not 63 . The check is
 for the host + export path to be greater then MNAMELEN which is
 88 not 63.
 
 
 ---
 Mark Saad
 DataCenter Operations
 About.com | Need. Know. Accomplish.
 
 About.com is part of The New York Times Company
 
 O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Apr 23 03:02:13 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=167105 

From: Harald Schmalzbauer <h.schmalzbauer@omnilan.de>
To: bug-followup@FreeBSD.org, msaad@about.com
Cc:  
Subject: Re: kern/167105: [nfs] mount_nfs can not handle source exports wiht
 more then 63 chars
Date: Tue, 11 Sep 2012 10:11:40 +0200

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enigB2627C577733DCDF42FE5E42
 Content-Type: text/plain; charset=ISO-8859-15
 Content-Transfer-Encoding: quoted-printable
 
  I've been hitten by the same constraint also for destionation node.
 Any news about the sense of this limit? Or if it's planned to relax it?
 
 Thanks,
 
 -Harry
 
 
 --------------enigB2627C577733DCDF42FE5E42
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.18 (FreeBSD)
 
 iEYEARECAAYFAlBO8jwACgkQLDqVQ9VXb8ix7QCeJM1dOcsWS2uPqEgFV6hVTPh2
 WiQAoM7bPCxin+RNABocVPqCi/STGlNG
 =G+sn
 -----END PGP SIGNATURE-----
 
 --------------enigB2627C577733DCDF42FE5E42--
>Unformatted:
