Subject: kern/26374: Long delay before non-root users can write to softdep partitions
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jdc@coris.org.uk>
List: netbsd-bugs
Date: 07/20/2004 13:31:56
>Number:         26374
>Category:       kern
>Synopsis:       Long delay before non-root users can write to softdep partitions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 20 12:33:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Julian Coleman
>Release:        NetBSD 2.0G
>Organization:
>Environment:
System: NetBSD sirion 2.0G NetBSD 2.0G (ULTRA60) #0: Thu Jul 15 11:09:19 BST 2004 root@sirion:/usr/obj/sys/arch/sparc64/compile/ULTRA60 sparc64  
Architecture: sparc64      
Machine: sparc64

>Description:
	After a partition mounted with softdep has been filled to > 100%,
	it's not possible to write to the partition as a non-root user for
	some time after space has apparently been freed.

	fstab entry:
  /dev/sd1e	/usr/obj	ffs	rw,nodev,softdep	0	2

	full partition:
  Filesystem  1024-blocks     Used     Avail Capacity  Mounted on
  /dev/sd1e      6106568  5935606   -134366   102%    /usr/obj

	A non-root user could not write to this partition when space had been
	freed to:

  Filesystem  1024-blocks     Used     Avail Capacity  iused    ifree  %iused  Mounted on
  /dev/sd1e       6106568  4754166   1047074    81%   367514   392804    48%   /usr/obj

	For example:

  $ cat > zz
  fff
  /usr/obj: write failed: file system is full
  cat: stdout: No space left on device

	root could write to this partition with no problems.

	After some time (5 minutes or so), non-root users could write to
	this partition again.

>How-To-Repeat:
	Go over 100% full on a partition with softdeps enabled.
	Remove some files so that the partition is less than 100% full.
	Try to write to the partition as a non-root user without waiting
	for the softdeps "cache" to empty.

>Fix:
	Unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: