Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Apr 2007 10:38:19 +0200 (CEST)
From:      Harald Schmalzbauer <harry@omnisec.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/111262: unionfs fills up the underlaying layer (df)
Message-ID:  <200704050838.l358cJju001866@titan.flintsbach.schmalzbauer.de>
Resent-Message-ID: <200704050920.l359K4qN096889@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         111262
>Category:       kern
>Synopsis:       unionfs fills up the underlaying layer (df)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 05 09:20:03 GMT 2007
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704050838.l358cJju001866>