NetBSD Problem Report #30962

From jukka@mx1.salmi.ch  Wed Aug 10 13:43:30 2005
Return-Path: <jukka@mx1.salmi.ch>
Received: from mx1.salmi.ch (mx1.salmi.ch [212.254.26.68])
	by narn.netbsd.org (Postfix) with ESMTP id 9411163B104
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 10 Aug 2005 13:43:30 +0000 (UTC)
Message-Id: <20050810134324.5AB8F34848@mx1.salmi.ch>
Date: Wed, 10 Aug 2005 15:43:24 +0200 (CEST)
From: j+nbsd@2005.salmi.ch
Reply-To: jukka@mx1.salmi.ch
To: gnats-bugs@netbsd.org
Subject: `du: fts_read: No such file or directory' with fdesc mounted
X-Send-Pr-Version: 3.95

>Number:         30962
>Category:       misc
>Synopsis:       `du: fts_read: No such file or directory' with fdesc mounted
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 10 13:44:00 +0000 2005
>Originator:     Jukka Salmi
>Release:        NetBSD 2.0_STABLE
>Environment:
System: NetBSD grouper.salmi.ch 2.0_STABLE NetBSD 2.0_STABLE (GROUPER) #0: Mon Aug 8 21:35:52 UTC 2005 root@moray.salmi.ch:/build/nbsd/i386/sys/arch/i386/compile/GROUPER i386
Architecture: i386
Machine: i386
>Description:
When using the file-descriptor file system, du(1) under some
circumstances fails, printing `du: fts_read: No such file or directory'.
>How-To-Repeat:
If not already mounted, mount fdesc on /dev:

	$ mount -t fdesc -r -o union fdesc /dev

Change to a directory other than `/' and `/dev', e.g.

	$ cd /root

Run du(1) to print a summary for the whole file system hierarchy:

	$ du -s /
	du: fts_read: No such file or directory
>Fix:
Don't know. `errno' is set to ENOENT in fts_safe_changedir() (which
is called from fts_read()) because of different inode and device
numbers.

Calling fts_open() with FTS_NOCHDIR in du.c seems to work around the
problem. However, I doubt that to be a good sulution...

NetBSD Home
NetBSD PR Database Search

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