NetBSD Problem Report #43670

From  Mon Jul 26 13:33:02 2010
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id C4F4563BAE5
	for <>; Mon, 26 Jul 2010 13:33:02 +0000 (UTC)
Message-Id: <>
Date: Mon, 26 Jul 2010 15:32:59 +0200 (CEST)
Subject: msdos claims support for filenames longer than {NAME_MAX}, but fails
X-Send-Pr-Version: 3.95

>Number:         43670
>Category:       kern
>Synopsis:       msdosfs claims support for filenames longer than {NAME_MAX}, but fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    hannken
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 26 13:35:01 +0000 2010
>Closed-Date:    Sat Jul 23 08:03:48 +0000 2011
>Last-Modified:  Sat Jul 23 08:03:48 +0000 2011
>Originator:     Nicolas Joly
>Release:        NetBSD 5.99.37
Insitut Pasteur
System: NetBSD 5.99.37 NetBSD 5.99.37 (LANFEUST) #5: Mon Jul 26 12:17:38 CEST 2010 amd64
Architecture: x86_64
Machine: amd64
While msdosfs claims to support filenames longer than {NAME_MAX}
(pathconf(2) _PC_NO_TRUNC returns 0), it fails with ENAMETOOLONG
(at least with default mount flags).
run tests


From: "Juergen Hannken-Illjes" <>
Subject: PR/43670 CVS commit: src
Date: Wed, 20 Jul 2011 11:52:00 +0000

 Module Name:	src
 Committed By:	hannken
 Date:		Wed Jul 20 11:52:00 UTC 2011

 Modified Files:
 	src/sys/fs/msdosfs: msdosfs_vnops.c
 	src/tests/fs/vfs: t_vnops.c

 Log Message:
 Even though msdosfs never truncates file names it advertises _PC_NO_TRUNC
 as zero.  Make it advertise one (no_trunc == true).

 Names longer than NAME_MAX (255) will never pass namei() btw.

 Fixes PR #43670 (msdosfs claims support for filenames longer than {NAME_MAX},
                  but fails)

 To generate a diff of this commit:
 cvs rdiff -u -r1.77 -r1.78 src/sys/fs/msdosfs/msdosfs_vnops.c
 cvs rdiff -u -r1.24 -r1.25 src/tests/fs/vfs/t_vnops.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: kern-bug-people->hannken
Responsible-Changed-When: Sat, 23 Jul 2011 08:03:48 +0000

State-Changed-From-To: open->closed
State-Changed-When: Sat, 23 Jul 2011 08:03:48 +0000
Fixed with fs/msdosfs/msdosfs_vnops.c Rev. 1.78


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.