Bug 29097

Summary: rm/df/sync problem. cannot really know where the problem is.
Product: Base System Reporter: reel <reel>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-STABLE   
Hardware: Any   
OS: Any   

Description reel 2001-07-20 05:40:01 UTC
Once, i had 700mb to remove from the disk to free space. I df(1)'d to
know what was the size of each partition.

Here is what i typed with resulting outputs. Give a look at /usr.

reel@zeus% df -h
Filesystem    Size   Used  Avail Capacity  Mounted on
/dev/ad1s1a   116M    41M    66M    38%    /
/dev/ad0s1g   311M   129K   286M     0%    /source
/dev/ad1s1e   2.3G   1.4G   697M    67%    /usr
/dev/ad0s1e   678M   337M   287M    54%    /usr/src
/dev/ad0s1f   388M   4.2M   352M     1%    /var
procfs        4.0K   4.0K     0B   100%    /proc

reel@zeus% su root
Password:
(in /usr)
su-2.05# rm -r sounds/
su-2.05# df -h
Filesystem    Size   Used  Avail Capacity  Mounted on
/dev/ad1s1a   116M    41M    66M    38%    /
/dev/ad0s1g   311M   129K   286M     0%    /source
/dev/ad1s1e   2.3G   1.4G   697M    67%    /usr
/dev/ad0s1e   678M   337M   287M    54%    /usr/src
/dev/ad0s1f   388M   4.2M   352M     1%    /var
procfs        4.0K   4.0K     0B   100%    /proc
su-2.05# sync
su-2.05# df -h
Filesystem    Size   Used  Avail Capacity  Mounted on
/dev/ad1s1a   116M    41M    66M    38%    /
/dev/ad0s1g   311M   129K   286M     0%    /source
/dev/ad1s1e   2.3G  1015M   1.1G    48%    /usr
/dev/ad0s1e   678M   337M   287M    54%    /usr/src
/dev/ad0s1f   388M   4.1M   352M     1%    /var
procfs        4.0K   4.0K     0B   100%    /proc

is that normal?
i need to sync to know the real size of my partitions?

Fix: 

No. maybe it's an error with the buffer size or such. So many informations
kept in cache without being written to disk naturally. That's odd.
How-To-Repeat: Same distro/release date. Try to remove a big directory from a disk.
Comment 1 Gregory Bond 2001-07-20 05:45:21 UTC
[This sort of question is best posted to questions@freebsd.org rather tha=
n
cluttering up the GNATS pr database.]

> is that normal?
> i need to sync to know the real size of my partitions?

This is one of the side-effects of running softupdates.
Comment 2 dd freebsd_committer freebsd_triage 2001-07-20 08:35:50 UTC
State Changed
From-To: open->closed

This is expected behavior.  besides, questions like this don't belong 
in the pr database.