From harry@omnisec.de Thu Apr 5 09:16:59 2007 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D536216A401 for ; Thu, 5 Apr 2007 09:16:59 +0000 (UTC) (envelope-from harry@omnisec.de) Received: from host.omnisec.de (host.omnisec.de [62.245.232.135]) by mx1.freebsd.org (Postfix) with ESMTP id 58D5B13C469 for ; Thu, 5 Apr 2007 09:16:59 +0000 (UTC) (envelope-from harry@omnisec.de) Received: from tek.flintsbach.schmalzbauer.de (tek.flintsbach.schmalzbauer.de [172.21.2.3]) by host.omnisec.de (8.13.8/8.13.8) with ESMTP id l358cJTt009053 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 5 Apr 2007 10:38:25 +0200 (CEST) (envelope-from harry@titan.flintsbach.schmalzbauer.de) Received: from titan.flintsbach.schmalzbauer.de (titan.flintsbach.schmalzbauer.de [IPv6:fec0::1:0:0:1:1]) by tek.flintsbach.schmalzbauer.de (8.13.8/8.13.8) with ESMTP id l358cJw4013220 for ; Thu, 5 Apr 2007 10:38:19 +0200 (CEST) (envelope-from harry@titan.flintsbach.schmalzbauer.de) Received: (from harry@localhost) by titan.flintsbach.schmalzbauer.de (8.13.8/8.13.8/Submit) id l358cJju001866; Thu, 5 Apr 2007 10:38:19 +0200 (CEST) (envelope-from harry) Message-Id: <200704050838.l358cJju001866@titan.flintsbach.schmalzbauer.de> Date: Thu, 5 Apr 2007 10:38:19 +0200 (CEST) From: Harald Schmalzbauer Reply-To: Harald Schmalzbauer To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: unionfs fills up the underlaying layer (df) X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 111262 >Category: kern >Synopsis: [unionfs] unionfs fills up the underlaying layer (df) >Confidential: no >Severity: serious >Priority: high >Responsible: daichi >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 05 09:20:03 GMT 2007 >Closed-Date: Tue Oct 23 04:16:24 UTC 2007 >Last-Modified: Tue Oct 23 04:16:24 UTC 2007 >Originator: Harald Schmalzbauer >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD titan.flintsbach.schmalzbauer.de 6.2-STABLE FreeBSD 6.2-STABLE #0: Thu Apr 5 09:48:05 CEST 2007 compilator@titan.flintsbach.schmalzbauer.de:/usr/obj/usr/src/sys/TITAN i386 >Description: The rewritten unionfs implementation doesn't sync the used space with the underlaying layer. It occupies space but doesn't free it after the file written to the above layer has been deleted. >How-To-Repeat: mkdir /testunion mount_unionfs -o copymode=transparent /var /testunion dd if=/dev/zero of=/testunion/testfile bs=16k count=10k Now you should see the occupied space with df (depending on the size of your var) After removing /testunion/testfile df still shows the same usage. Only umounting /testunion corrects the /var usage!! >Fix: >Release-Note: >Audit-Trail: Responsible-Changed-From-To: freebsd-bugs->daichi Responsible-Changed-By: rodrigc Responsible-Changed-When: Thu Apr 5 20:25:21 UTC 2007 Responsible-Changed-Why: Over to maintainer. http://www.freebsd.org/cgi/query-pr.cgi?pr=111262 From: Harald Schmalzbauer To: FreeBSD-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org Cc: Subject: Re: kern/111262: unionfs fills up the underlaying layer (df) Date: Sun, 8 Apr 2007 23:02:25 +0200 I applied the latest patchset to 6.2-stable (http://people.freebsd.org/~daichi/unionfs/unionfs6-p18.diff) but the problem still persists. Any patches for testing are welcome, solving is far beyond my scope :( -Harry State-Changed-From-To: open->closed State-Changed-By: daichi State-Changed-When: Tue Oct 23 04:14:06 UTC 2007 State-Changed-Why: This issue has been fixed on FreeBSD 8-CURRENT, RELENG_7 and RELENG_6. Try latest branch. Thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=111262 >Unformatted: