[lkml]   [1999]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Deletion of big files...
Rik van Riel wrote:

> > Looks to me like the unlink syscall is somewhat synchronous, and it
> > shouldn't, or does it? For this concrete issue, it could be easily
> > solved by the unlink syscall starting a thread to unlink the big file,
> Cosmetics.
> $ rm bigfile&
> will achieve exactly the same thing at no kernel
> cost...

No it won't. Try this in a partition with enough free space:

dd if=/dev/zero of=test bs=1k count=800000

rm test &

The last ls won't show inmediately. In fact, it will be blocked till the
rm finishes - which is the behaviour I think we need to suppress...

Try it...

Jorge Gonzalez <> -o)
ICAI - Universidad Pontificia Comillas /\\
Administrador de Sistemas _\_v

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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