From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 27 17:50:06 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73D7C16A423 for ; Fri, 27 Jan 2006 17:50:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED19043D5A for ; Fri, 27 Jan 2006 17:50:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k0RHo5pI031103 for ; Fri, 27 Jan 2006 17:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k0RHo5ZS031102; Fri, 27 Jan 2006 17:50:05 GMT (envelope-from gnats) Resent-Date: Fri, 27 Jan 2006 17:50:05 GMT Resent-Message-Id: <200601271750.k0RHo5ZS031102@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jean-Sebastien Roy Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 531B716A4D8 for ; Fri, 27 Jan 2006 17:47:26 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9ADC043F68 for ; Fri, 27 Jan 2006 17:14:34 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k0RHEYMK009596 for ; Fri, 27 Jan 2006 17:14:34 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k0RHEYBO009595; Fri, 27 Jan 2006 17:14:34 GMT (envelope-from nobody) Message-Id: <200601271714.k0RHEYBO009595@www.freebsd.org> Date: Fri, 27 Jan 2006 17:14:34 GMT From: Jean-Sebastien Roy To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/92432: negative used disk space X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2006 17:50:06 -0000 >Number: 92432 >Category: kern >Synopsis: negative used disk space >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 27 17:50:05 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jean-Sebastien Roy >Release: 6.0 Stable >Organization: >Environment: FreeBSD durandal.root 6.0-STABLE FreeBSD 6.0-STABLE #3: Thu Jan 26 22:07:13 CET 2006 root@durandal.root:/opt/obj/usr/src/sys/DURANDAL i386 >Description: df often returns a negative used space. For example: $ df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 1012974 77358 854580 8% / devfs 1 1 0 100% /dev /dev/ad0s1g 10154158 4319874 5021952 46% /home /dev/ad0s1h 99572614 74780342 16826464 82% /opt /dev/ad0s1d 10154158 -42764 9384590 -0% /tmp /dev/ad0s1f 10154158 4525194 4816632 48% /usr /dev/ad0s1e 10154158 161980 9179846 2% /var procfs 4 4 0 100% /proc While I understand "available" space could be negative, a negative "used" space is quite strange. >How-To-Repeat: I dont really know how to repeat the problem. It is systematic on my config. For information here is the fstab: /dev/ad0s1b none swap sw 0 0 /dev/ad0s1a / ufs rw 1 1 /dev/ad0s1g /home ufs rw 2 2 /dev/ad0s1h /opt ufs rw 2 2 /dev/ad0s1d /tmp ufs rw,async 2 2 /dev/ad0s1f /usr ufs rw 2 2 /dev/ad0s1e /var ufs rw 2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 proc /proc procfs rw 0 0 And mount -v: /dev/ad0s1a on / (ufs, local, soft-updates, fsid b8068943846f46ff) devfs on /dev (devfs, local, fsid 00ff000101000000) /dev/ad0s1g on /home (ufs, local, soft-updates, fsid b806894354f761a8) /dev/ad0s1h on /opt (ufs, local, soft-updates, fsid b9068943e5aaa703) /dev/ad0s1d on /tmp (ufs, asynchronous, local, fsid c10689430924adf9) /dev/ad0s1f on /usr (ufs, local, soft-updates, fsid c206894315da6ca5) /dev/ad0s1e on /var (ufs, local, soft-updates, fsid c3068943871a60b6) procfs on /proc (procfs, local, fsid 01ff000404000000) >Fix: >Release-Note: >Audit-Trail: >Unformatted: