lkml.org 
[lkml]   [1998]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectWEIRD ext2fs dir size BUG?
hi!

i did some weird testing on ext2fs (2.0.33) and encountered the following
problem:

after touching 10000 files in a dir (all size 0), i deleted those files.
after the deletion of the files the directory size is far too big.

paul@snoopy:/home/paul > ls -ld test
drwxr-xr-x 2 paul users 313344 Mar 1 21:07 test

the script i used to create the files was:

=================
#!/bin/sh


i=0
while test "$i" != "1000" ; do
touch test.$i
let i=$i+1 ;
done

echo 1000

i=0
while test "$i" != "1000" ; do
touch test.$i
let i=$i+1 ;
done
echo 2000
.
.
.
.
echo 8000
while test "$i" != "9999" ; do
touch test.$i
let i=$i+1 ;
done
echo 9999
==============

kind regards, http://stud2.tuwien.ac.at/~e9525748/
Peter-Paul Witta mailto:e9525748@student.tuwien.ac.at FIDO 2:310/22.264
SAMBA SUPPORT - FAX SOLUTIONS - INTRANET / EXTRANET - DBMS SQL SOLUTIONS



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.041 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site