From owner-freebsd-i386@FreeBSD.ORG Wed Oct 1 14:40:12 2003 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25E2116A4B3 for ; Wed, 1 Oct 2003 14:40:12 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C71C143FE5 for ; Wed, 1 Oct 2003 14:40:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h91Le9FY092480 for ; Wed, 1 Oct 2003 14:40:09 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h91Le9Eq092479; Wed, 1 Oct 2003 14:40:09 -0700 (PDT) (envelope-from gnats) Resent-Date: Wed, 1 Oct 2003 14:40:09 -0700 (PDT) Resent-Message-Id: <200310012140.h91Le9Eq092479@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Shon Elliott Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CCFE16A4B3 for ; Wed, 1 Oct 2003 14:29:49 -0700 (PDT) Received: from tsunami.misproductions.com (c-24-127-5-95.we.client2.attbi.com [24.127.5.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5C3F43FEC for ; Wed, 1 Oct 2003 14:29:48 -0700 (PDT) (envelope-from root@tsunami.misproductions.com) Received: from tsunami.misproductions.com (localhost.misproductions.com [127.0.0.1])h91LTlh2047717 for ; Wed, 1 Oct 2003 14:29:48 -0700 (PDT) (envelope-from root@tsunami.misproductions.com) Received: (from root@localhost)h91LTl0X047716; Wed, 1 Oct 2003 14:29:47 -0700 (PDT) Message-Id: <200310012129.h91LTl0X047716@tsunami.misproductions.com> Date: Wed, 1 Oct 2003 14:29:47 -0700 (PDT) From: Shon Elliott To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: i386/57480: Removing very large files using rm doesn't show the space being unallocated by the kernel and df. X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Shon Elliott List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Oct 2003 21:40:12 -0000 >Number: 57480 >Category: i386 >Synopsis: Removing very large files using rm doesn't show the space being unallocated by the kernel and df. >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 01 14:40:09 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Shon Elliott >Release: FreeBSD 4.8-RELEASE-p4 i386 >Organization: MiS Productions >Environment: System: FreeBSD tsunami.misproductions.com 4.8-RELEASE-p4 FreeBSD 4.8-RELEASE-p4 #23: Thu Sep 11 10:26:11 PDT 2003 root@tsunami.misproductions.com:/usr/obj/usr/src/sys/TSUNAMI i386 AMD K6-2 400, FreeBSD 4.8-RELEASE-p4, 192M Memory, 17GB HD. SiS Based board. >Description: When having a large file, sayt about 800 megs, and using rm on the file, it will be removed, however the space occupied by that file will not be released by the kernel/filesystem or shown by df. This has been noticed for UFS partitions, and not been extensively tested by me on any other filesystem. >How-To-Repeat: Create a large file, say 800 megs. then remove said file using the rm command. >Fix: To work around the problem, you can use the following commands: echo "." > filename.ext rm filename.ext That will cause the system to correctly report the freed space. If the UFS system using rm doesn't clear the space, the only way to recover that space seems to be a restart of the entire system. >Release-Note: >Audit-Trail: >Unformatted: