From owner-freebsd-current@FreeBSD.ORG Thu Nov 20 06:34:54 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C690316A4CE for ; Thu, 20 Nov 2003 06:34:54 -0800 (PST) Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE03343F75 for ; Thu, 20 Nov 2003 06:34:52 -0800 (PST) (envelope-from Alexander@Leidinger.net) Received: from fwd02.aul.t-online.de by mailout05.sul.t-online.com with smtp id 1AMptT-0004eu-02; Thu, 20 Nov 2003 15:34:51 +0100 Received: from Andro-Beta.Leidinger.net (VmYohYZCwe7dJiEora0EMmsX5URSY4TMG3e05NilDSYZhBDcExpwkd@[217.83.25.128]) by fmrl02.sul.t-online.com with esmtp id 1AMptK-0hpvOq0; Thu, 20 Nov 2003 15:34:42 +0100 Received: from Magelan.Leidinger.net (Magellan [192.168.1.1]) hAKEYf94028726 for ; Thu, 20 Nov 2003 15:34:41 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magelan.Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.10/8.12.10) with SMTP id hAKEYeEw042805 for ; Thu, 20 Nov 2003 15:34:40 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Thu, 20 Nov 2003 15:34:40 +0100 From: Alexander Leidinger To: current@freebsd.org Message-Id: <20031120153440.047a772c.Alexander@Leidinger.net> X-Mailer: Sylpheed version 0.9.6claws (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Seen: false X-ID: VmYohYZCwe7dJiEora0EMmsX5URSY4TMG3e05NilDSYZhBDcExpwkd@t-dialin.net Subject: mount problems: file name too long with a 79 character name? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Nov 2003 14:34:54 -0000 Hi, ---snip--- {71} [M87:~netchild/FreeBSD/SystemOnCD] (62) root@ttyp0 # realpath work/SystemOnCD-1/usr/ports/distfiles |wc -c 79 {0} [M87:~netchild/FreeBSD/SystemOnCD] (63) root@ttyp0 # realpath /space/distfiles |wc -c 17 {0} [M87:~netchild/FreeBSD/SystemOnCD] (64) root@ttyp0 # mount -t unionfs -o -b /space/distfiles work/SystemOnCD-1/usr/ports/distfiles unionfs: /space/distfiles: File name too long {71} [M87:~netchild/FreeBSD/SystemOnCD] (65) root@ttyp0 # mount -t unionfs -o -b /space/distfiles /mnt ---snip--- The same happens with nullfs, but not with ntfs. I can't find a documented limitation in the man pages (expect ENAMETOOLONG in mount(2), but the name is shorter than 255 characters). I also can't find ENAMETOOLONG in /sys/fs/unionfs/* (as mount_unionfs returns EX_OSERR, so it isn't the mount_unionfs utility which rejects the mount). This is with a pre-statfs-changes current. Does this problem still exists in a recent current? If yes: where does this ENAMETOOLONG come from? Bye, Alexander. P.S.: I don't complain about the wrong path printed with the error, looking at the source makes it obvious why this happens and it's easy to fix this without help. -- It's not a bug, it's tradition! http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7