| Summary: | disk usage after "strip" is wrong | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Vivek Khera <khera> |
| Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | CC: | khera |
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Vivek Khera
1999-12-15 22:40:00 UTC
This does indeed seem to be soft-update related. The same sequence of actions performed with soft-updates disabled works as expected with ls and df reporting proper number of blocks. Conveniently, fsck will clean up the "lost" blocks on the soft-update enabled file systems, so all is not lost (and I don't need to dump/restore them!) Responsible Changed From-To: gnats-admin->freebsd-bugs Misfiled PR. State Changed From-To: open->feedback Does this problem still occur in newer versions of FreeBSD, such as 4.3-RELEASE? Adding to Audit-Trail. ----- Forwarded message from Vivek Khera <khera@kciLink.com> ----- X-UIDL: 88d495a52bb9681eae082a78b8e7806c Delivered-To: mike@freebsd.org From: Vivek Khera <khera@kciLink.com> Date: Mon, 23 Jul 2001 15:21:37 -0400 To: <mike@FreeBSD.org> Cc: freebsd-bugs@FreeBSD.org Subject: Re: kern/15508: disk usage after "strip" is wrong In-Reply-To: <200107211823.f6LIN1320253@freefall.freebsd.org> X-Mailer: VM 6.92 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid >>>>> "m" == mike <mike@FreeBSD.org> writes: m> Synopsis: disk usage after "strip" is wrong m> State-Changed-From-To: open->feedback m> State-Changed-By: mike m> State-Changed-When: Sat Jul 21 11:22:45 PDT 2001 m> State-Changed-Why: m> Does this problem still occur in newer versions of FreeBSD, m> such as 4.3-RELEASE? No. The multiple df's below are to allow softupdates plenty of time to do their thing, but it doesn't seem to be changing, and the disk is idle... it takes a really long time for that to happen. I think that might have been the issue before. I just didn't wait long enough, and I expected sync to flush out the softupdate changes like it used to on BSD/OS. [root@onceler]# ls -l wine -rwxr-xr-x 1 root wheel 182152 Jul 23 15:16 wine* [root@onceler]# df . Filesystem 512-blocks Used Avail Capacity Mounted on /dev/ad0s1g 20802940 7929970 11208736 41% /u/onceler1 [root@onceler]# strip wine [root@onceler]# df . Filesystem 512-blocks Used Avail Capacity Mounted on /dev/ad0s1g 20802940 7930000 11208706 41% /u/onceler1 [root@onceler]# df . Filesystem 512-blocks Used Avail Capacity Mounted on /dev/ad0s1g 20802940 7930000 11208706 41% /u/onceler1 [root@onceler]# sync [root@onceler]# df . Filesystem 512-blocks Used Avail Capacity Mounted on /dev/ad0s1g 20802940 7930000 11208706 41% /u/onceler1 [root@onceler]# df . Filesystem 512-blocks Used Avail Capacity Mounted on /dev/ad0s1g 20802940 7930000 11208706 41% /u/onceler1 [root@onceler]# ls -l wine -rwxr-xr-x 1 root wheel 15152 Jul 23 15:18 wine* [root@onceler]# df . Filesystem 512-blocks Used Avail Capacity Mounted on /dev/ad0s1g 20802940 7930000 11208706 41% /u/onceler1 [root@onceler]# uname -a FreeBSD onceler.kciLink.com 4.3-STABLE FreeBSD 4.3-STABLE #13: Thu Jul 5 16:49:55 EDT 2001 khera@onceler.kciLink.com:/u/onceler1/usr/src/sys/compile/ONCELER i386 [root@onceler]# df . Filesystem 512-blocks Used Avail Capacity Mounted on /dev/ad0s1g 20802940 7929616 11209090 41% /u/onceler1 ----- End forwarded message ----- State Changed From-To: feedback->closed The originator believes, and I tend to agree, that this is just normal soft-updates behaviour and it could take a while for disk changes to show up in df. |