From owner-freebsd-bugs Sat Mar 9 06:50:05 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA29368 for bugs-outgoing; Sat, 9 Mar 1996 06:50:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA29344 Sat, 9 Mar 1996 06:50:02 -0800 (PST) Resent-Date: Sat, 9 Mar 1996 06:50:02 -0800 (PST) Resent-Message-Id: <199603091450.GAA29344@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, kelly@fsl.noaa.gov Received: from rosemary.fsl.noaa.gov (rosemary.fsl.noaa.gov [137.75.8.41]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA28874 for ; Sat, 9 Mar 1996 06:45:03 -0800 (PST) Received: (from kelly@localhost) by rosemary.fsl.noaa.gov (8.6.12/8.6.9) id HAA03571; Sat, 9 Mar 1996 07:44:57 -0700 Message-Id: <199603091444.HAA03571@rosemary.fsl.noaa.gov> Date: Sat, 9 Mar 1996 07:44:57 -0700 From: Sean Kelly Reply-To: kelly@fsl.noaa.gov To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/1070: /usr/bin/fstat doesn't display open, active pure text Sender: owner-bugs@freebsd.org X-Loop: owner-bugs@FreeBSD.ORG Precedence: bulk >Number: 1070 >Category: bin >Synopsis: /usr/bin/fstat doesn't display open, active pure text >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Mar 9 06:50:01 PST 1996 >Last-Modified: >Originator: Sean Kelly >Organization: Forecast Systems Laboratory >Release: FreeBSD 2.1-STABLE i386 >Environment: FreeBSD 2.1 installed via anon FTP in January '96. Fairly stock machine, as hosts go. More info avail on request. >Description: The fstat man page claims it'll display active pure text inodes for running processes. Under the FD column, it shows the file number in the per-process open file table or one of the following special names: wd, for current working directory; tr, for kernel trace file; root, for root inode; and text for pure text inode. After 1000 runs of fstat looking at a busy system, the `text' entry never appeared. Not necessarily proof, but an inductive argument is within reach. >How-To-Repeat: Run fstat | grep text and see no output until you're blue in the face. >Fix: Don't really know. fstat.c has some special handling for the CDIR, TRACE, and RDIR entries but none for the text. That might be it, but it also just might expect the text entry (-1) to appear in filedesc table. >Audit-Trail: >Unformatted: